We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68b7dc6 + 3aaa8cf commit 0a5a235Copy full SHA for 0a5a235
examples/use_off_the_shelf_agent.py
@@ -5,13 +5,15 @@
5
"""
6
import asyncio
7
8
+from metagpt.context import Context
9
from metagpt.logs import logger
10
from metagpt.roles.product_manager import ProductManager
11
12
13
async def main():
14
msg = "Write a PRD for a snake game"
- role = ProductManager()
15
+ context = Context() # Used to share repo path information between multiple actions within the role.
16
+ role = ProductManager(context=context)
17
result = await role.run(msg)
18
logger.info(result.content[:100])
19
0 commit comments