Interoperability

Interoperability()

A class to handle interoperability between different tool types.
This class allows the conversion of tools to various interoperability classes and provides functionality for retrieving and registering interoperability classes.

Class Attributes

registry



Static Methods

convert_tool

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

Converts a given tool to an instance of a specified interoperability type.

Parameters:
NameDescription
toolThe tool object to be converted.

Type: Any
typeThe type of interoperability to convert the tool to.

Type: str
**kwargsAdditional arguments to be passed during conversion.

Type: Any
Returns:
TypeDescription
ToolTool: The converted tool.

get_interoperability_class

get_interoperability_class(type: str) -> type[Interoperable]

Retrieves the interoperability class corresponding to the specified type.

Parameters:
NameDescription
typeThe type of the interoperability class to retrieve.

Type: str
Returns:
TypeDescription
type[Interoperable]type[Interoperable]: The interoperability class type.

get_supported_types

get_supported_types() -> list[str]

Returns a sorted list of all supported interoperability types.
Returns:
List[str]: A sorted list of strings representing the supported interoperability types.

Returns:
TypeDescription
list[str]List[str]: A sorted list of strings representing the supported interoperability types.