Skip to content

Commit

Permalink
Added pip install corrections / instructions to notebook and blog for…
Browse files Browse the repository at this point in the history
… CaptainAgent
  • Loading branch information
marklysze committed Nov 23, 2024
1 parent 0806609 commit d797af1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebook/agentchat_captainagent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"\n",
"````{=mdx}\n",
":::info Requirements\n",
"Install `ag2`:\n",
"Install `ag2` with CaptainAgent:\n",
"```bash\n",
"pip install ag2[autobuild]\n",
"pip install ag2[captainagent]\n",
"```\n",
"\n",
"For more information, please refer to the [installation guide](/docs/installation/).\n",
Expand Down Expand Up @@ -522,7 +522,7 @@
"\n",
"For agent library, refer to [`captainagent_expert_library.json`](https://github.com/ag2ai/ag2/blob/main/notebook/captainagent_expert_library.json) for samples. You can refer to [docs](https://ag2ai.github.io/ag2/docs/topics/captainagent/agent_library) on how to customize your own expert library.\n",
"\n",
"For tool library, we provide a set of tools [here](https://github.com/ag2ai/ag2/tree/main/autogen/agentchat/contrib/captainagent/tools/README.md), the tools are categorized into three types: data analysis, information_retrieval, math."
"For tool library, we provide a set of tools [here](https://github.com/ag2ai/ag2/tree/main/autogen/agentchat/contrib/captainagent/tools/README.md), the tools are categorized into three types: data analysis, information_retrieval, math. If you are using the tools, you should [install the requirements](https://github.com/ag2ai/ag2/tree/main/autogen/agentchat/contrib/captainagent/tools/README.md#how-to-use) for them."
]
},
{
Expand Down
6 changes: 6 additions & 0 deletions website/blog/2024-11-15-CaptainAgent/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ CaptainAgent iterates over the following two steps until the problem is successf

The design of CaptainAgent allows it to leverage agents and tools from a pre-specified agent library and tool library. In the following section, we demonstrate how to use CaptainAgent with or without the provided library.

To install AG2 with CaptainAgent:

```bash
pip install ag2[captainagent]
```

# Using CaptainAgent without pre-specified agent/tool libraries
CaptainAgent can serve as a drop-in replacement for the general `AssistantAgent` class in AG2. To do that we just need to add a few lines of configurations for the group chat involved.
Without the agent library and tool library, CaptainAgent will automatically generate a set of agents into a group chat.
Expand Down

0 comments on commit d797af1

Please sign in to comment.