update requirement and example, recover legacy code

This commit is contained in:
yzlin 2024-03-12 16:43:24 +08:00
parent a680a1a82f
commit e960ac8dc8
4 changed files with 30 additions and 6 deletions

View file

@ -4,7 +4,7 @@ from metagpt.roles.di.data_interpreter import DataInterpreter
async def main(requirement: str):
role = DataInterpreter(tools=["<all>"])
role = DataInterpreter(use_reflection=True, tools=["<all>"])
await role.run(requirement)