CaptainAgent
Agent Library
Library Structure
A simple agent in agent library requires three fields:
- description: This describes the functionality of the agent.
- system_message: This provides the system message of the agent for initialization.
- name: The name of the agent.
- model (optional): The backbone model of the agent.
- tags (optional): The tag of the backbone model to use.
An example of the agent library is as follows.
We provide a predefined agent library in notebook/captainagent_expert_library.json
.
Adding advanced agents
We also support adding agents with advanced capability to the library, aside from agents with customized system message. Just need to add a agent_path
field and any other arguments that needs to pass while initialization. For example, to add a WebSurferAgent:
Under the hood, the code will import the module according to the agent_path
. The core code that implements this feature is:
Make sure the correct path is provided to the config according to the code.