interop
interop.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.
convert_tool
Converts a given tool to an instance of a specified interoperability type.
Arguments:
tool
Any - The tool object to be converted.type
str - The type of interoperability to convert the tool to.**kwargs
Any - Additional arguments to be passed during conversion.
Returns:
Tool
- The converted tool.
Raises:
ValueError
- If the interoperability class for the provided type is not found.
get_interoperability_class
Retrieves the interoperability class corresponding to the specified type.
Arguments:
type
str - The type of the interoperability class to retrieve.
Returns:
Type[Interoperable]
- The interoperability class type.
Raises:
ValueError
- If no interoperability class is found for the provided type.
get_supported_types
Returns a sorted list of all supported interoperability types.
Returns:
List[str]
- A sorted list of strings representing the supported interoperability types.