Skip to content
项目

关于

Official code for paper "Learning to Use Tools via Cooperative and Interactive Agents"

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

CoAgents

The code for "cooperative and interactive agents framework"

We propose the ConAgents, a Cooperative and interactive agents framework . The grounding agent generates tool-use instructions while execution agent executes selected tools. The observing agent extracts relevant values from execution results. When receiving feedback from the tool environment, the execution agent and observing agent adapt themselves iteratively.

image-20240324212748206

image-20240324212928539

Quick start

  • install the main library via pip install
langchain==0.0.338 # new version is also allowed
colorama==0.4.6
tiktoken==0.5.1
openai==1.7.1
  • register the TMDB platform to get the access token to access the TMDB APIs. Once you get the access token, please make a new file named access_token.txt and add your token into this file.

  • get the OpenAI API to use the gpt-3.5-turbo (or other models)

    Once your get the APIs, please add your APIs into the list in ./utilize/apis.py.

    api_keys_list = [
        'add your APIs'
    ]
    

    You can add multiple APIs since we will randomly select one APIs from api_keys_list to request the OpenAI backend for each API request. The Random selection strategy is employed to improve the quota limitation for one API (see the OpenAI quota for the details).

    You can also configure the base URL for your OpenAI APIs

    BASE_URL = 'customize your own API base url' # https://api.openai.com/v1
    
  • Run our demo run_tmdb.py

python run_tmdb.py \
--model_name 'gpt-3.5-turbo' \
--log_file './log_file.json'  \
--data_file <your dataset file> \
--access_token_file <the file containing your access token of the TMDB platform>

Todo

We will add more details as soon as possible.

citation

@article{shi2024learning,
  title={Learning to Use Tools via Cooperative and Interactive Agents},
  author={Shi, Zhengliang and Gao, Shen and Chen, Xiuyi and Yan, Lingyong and Shi, Haibo and Yin, Dawei and Chen, Zhumin and Ren, Pengjie and Verberne, Suzan and Ren, Zhaochun},
  journal={arXiv preprint arXiv:2403.03031},
  year={2024}
}

探索相关项目

加载中…