Skip to content

Commit

Permalink
Update website/blog/2024-11-15-CaptainAgent/index.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Qingyun Wu <[email protected]>
  • Loading branch information
LeoLjl and qingyun-wu authored Nov 19, 2024
1 parent 7e5099d commit d9ed46b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/blog/2024-11-15-CaptainAgent/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ result = user_proxy.initiate_chat(captain_agent, message=query)

# Using CaptainAgent with pre-specified agent/tool libraries
To use CaptainAgent with pre-specified agent/tool libraries, we just need to specify the path to the agent library and tool library. The two libraries are independent, so you can choose to use one of the libraries or both.
The tool library we provide requires subscribing to specific apis, please refer to the [docs](https://ag2ai.github.io/ag2/docs/topics/captainagent) for details. The following example does not necessarily requires tool usage.
The tool library we provide requires subscribing to specific APIs, please refer to the [docs](https://ag2ai.github.io/ag2/docs/topics/captainagent) for details. The following example does not necessarily require tool usage, so it's fine if you are subscribing to them.

To use agents from an agent library, you just need to specify a `library_path` sub-field or a `autobuild_tool_config` field in CaptainAgent's configuration.

```python
from autogen.agentchat.contrib.captain_agent import CaptainAgent
Expand Down

0 comments on commit d9ed46b

Please sign in to comment.