Interoperable

Interoperable(*args, **kwargs)

A Protocol defining the interoperability interface for tool conversion.
This protocol ensures that any class implementing it provides the method convert_tool to convert a given tool into a desired format or type.

Parameters:
NameDescription
*args
**kwargs

Static Methods

convert_tool

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

Converts a given tool to a desired format or type.
This method should be implemented by any class adhering to the Interoperable protocol.

Parameters:
NameDescription
toolThe tool object to be converted.

Type: Any
**kwargsAdditional parameters to pass during the conversion process.

Type: Any
Returns:
TypeDescription
ToolTool: The converted tool in the desired format or type.

get_unsupported_reason

get_unsupported_reason() -> str | None

Returns the reason for the tool being unsupported.
This method should be implemented by any class adhering to the Interoperable protocol.
Returns:
str: The reason for the interoperability class being unsupported.

Returns:
TypeDescription
str | Nonestr: The reason for the interoperability class being unsupported.