Merge branch 'feature/teacher' into feature/fork_meta_role

This commit is contained in:
莘权 马 2023-08-16 19:08:02 +08:00
commit 145ffc7048
66 changed files with 2093 additions and 547 deletions

16
examples/research.py Normal file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env python
import asyncio
from metagpt.roles.researcher import RESEARCH_PATH, Researcher
async def main():
topic = "dataiku vs. datarobot"
role = Researcher(language="en-us")
await role.run(topic)
print(f"save report to {RESEARCH_PATH / f'{topic}.md'}.")
if __name__ == '__main__':
asyncio.run(main())