CrewAIInteroperability

CrewAIInteroperability()

A class implementing the Interoperable protocol for converting CrewAI tools to a general Tool format.

This class takes a CrewAITool and converts it into a standard Tool object.

Static Methods

convert_tool

convert_tool(tool: Any, **kwargs: Any) -> autogen.tools.tool.Tool

Converts a given CrewAI tool into a general Tool format.

This method ensures that the provided tool is a valid CrewAITool, sanitizes the tool’s name, processes its description, and prepares a function to interact with the tool’s arguments. It then returns a standardized Tool object.

Parameters:
NameDescription
toolThe tool to convert, expected to be an instance of CrewAITool.

Type: Any
**kwargsAdditional arguments, which are not supported by this method.

Type: Any
Returns:
TypeDescription
autogen.tools.tool.ToolTool: A standardized Tool object converted from the CrewAI tool.

get_unsupported_reason

get_unsupported_reason() -> str | None