allow di to use terminal tool, add tool log fn, expand truncate len

This commit is contained in:
yzlin 2024-03-30 17:11:11 +08:00
parent 3e10d34468
commit 53240b91f2
7 changed files with 118 additions and 2 deletions

View file

@ -0,0 +1,18 @@
import asyncio
from metagpt.roles.di.data_interpreter import DataInterpreter
USE_GOT_REPO_REQ = """
This is a link to the GOT github repo: https://github.com/spcl/graph-of-thoughts.git.
Clone it, read the README to understand the usage, install it, and finally run the quick start example.
**Note the config for LLM is at `config/config_got.json`, use this path directly.** Don't write all codes in one response, each time, just write code for one step.
"""
async def main():
di = DataInterpreter(tools=["Terminal"])
await di.run(USE_GOT_REPO_REQ)
if __name__ == "__main__":
asyncio.run(main())