swarmauri.core.toolkits.IToolkit module

class swarmauri.core.toolkits.IToolkit.IToolkit[source]

Bases: ABC

A class representing a toolkit used by Swarm Agents. Tools are maintained in a dictionary keyed by the tool’s name.

abstract add_tool(tool)[source]

An abstract method that should be implemented by subclasses to add a single tool to the toolkit.

abstract add_tools(tools)[source]

An abstract method that should be implemented by subclasses to add multiple tools to the toolkit.

abstract get_tool_by_name(tool_name)[source]

An abstract method that should be implemented by subclasses to retrieve a tool from the toolkit by name.

Return type:

ITool

abstract remove_tool(tool_name)[source]

An abstract method that should be implemented by subclasses to remove a tool from the toolkit by name.