tools
autogen.tools.Toolkit
Toolkit
A class representing a set of tools that can be used by an agent for various tasks.
Create a new Toolkit object.
Name | Description |
---|---|
tools | Type: list[Tool] |
Instance Attributes
tools
Get the list of tools in the set.
Instance Methods
get_tool
Get a tool from the set by name.
Name | Description |
---|---|
tool_name | The name of the tool to get. Type: str |
Type | Description |
---|---|
Tool | Tool: The tool with the given name. |
register_for_execution
Register the tools in the set with an agent for
Parameters:Name | Description |
---|---|
agent | The agent to register the tools with. Type: ConversableAgent |
register_for_llm
Register the tools in the set with an LLM agent.
Name | Description |
---|---|
agent | The LLM agent to register the tools with. Type: ConversableAgent |
remove_tool
Remove a tool from the set by name.
Name | Description |
---|---|
tool_name | The name of the tool to remove. Type: str |
set_tool
Set a tool in the set.
Name | Description |
---|---|
tool | The tool to set. Type: Tool |