os1ai
  • os1
  • Maintainers
  • NOTICE
  • os1: Responsible AI FAQs
  • Devcontainer Configurations for os1
  • .github
    • ISSUE_TEMPLATE
    • PULL_REQUEST_TEMPLATE
  • notebook
    • Contributing
  • Website
  • OS1
    • agentchat
      • contrib
        • agent_eval
        • captainagent
          • tools
Powered by GitBook
On this page
  • Introduction
  • Directory Layout
  • How to use
  1. OS1
  2. agentchat
  3. contrib
  4. captainagent

tools

Introduction

This directory contains a library of manually created python tools. These tools have three categories: math, data_analysis and information_retrieval.

Directory Layout

tools
├── README.md
├── data_analysis
│   ├── calculate_correlation.py
│   └── ...
├── information_retrieval
│   ├── arxiv_download.py
│   ├── arxiv_search.py
│   └── ...
├── math
│   ├── calculate_circle_area_from_diameter.py
│   └── ...
└── tool_description.tsv

Tools can be imported from tools/{category}/{tool_name}.py with exactly the same function name.

tool_description.tsv contains descriptions of tools for retrieval.

How to use

To install the requirements for running tools, use pip install.

pip install -r autogen/agentchat/contrib/captainagent/tools/requirements.txt

Whenever you run the tool-related code, remember to export the api keys to system variables.

export BING_API_KEY=""
export RAPID_API_KEY=""

or

import os
os.environ["BING_API_KEY"] = ""
os.environ["RAPID_API_KEY"] = ""
Previouscaptainagent

Last updated 4 months ago

Some tools require Bing Search API key and RapidAPI key. For Bing API, you can read more about how to get an API on the page. For RapidAPI, you can and subscribe to these two links(, ). These apis have free billing options and there is no need to worry about extra costs.

Bing Web Search API
sign up
link1
link2