/ examples / di / use_github_repo.py
use_github_repo.py
 1  import asyncio
 2  
 3  from metagpt.roles.di.data_interpreter import DataInterpreter
 4  
 5  USE_GOT_REPO_REQ = """
 6  This is a link to the GOT github repo: https://github.com/spcl/graph-of-thoughts.git.
 7  Clone it, read the README to understand the usage, install it, and finally run the quick start example.
 8  **Note the config for LLM is at `config/config_got.json`, it's outside the repo path, before using it, you need to copy it into graph-of-thoughts.
 9  ** Don't write all codes in one response, each time, just write code for one step.
10  """
11  
12  
13  async def main():
14      di = DataInterpreter(tools=["Terminal"])
15      await di.run(USE_GOT_REPO_REQ)
16  
17  
18  if __name__ == "__main__":
19      asyncio.run(main())