MetaGPT/examples/research.py

17 lines
339 B
Python
Raw Normal View History

2023-08-08 23:02:15 +08:00
#!/usr/bin/env python
import asyncio
from metagpt.roles.researcher import RESEARCH_PATH, Researcher
async def main():
topic = "dataiku vs. datarobot"
2023-08-08 23:02:15 +08:00
role = Researcher(language="en-us")
await role.run(topic)
print(f"save report to {RESEARCH_PATH / f'{topic}.md'}.")
2023-11-22 16:26:48 +08:00
if __name__ == "__main__":
2023-08-08 23:02:15 +08:00
asyncio.run(main())