interop
autogen.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.
Class Attributes
registry
Static Methods
convert_tool
Converts a given tool to an instance of a specified interoperability type.
Name | Description |
---|---|
tool | The tool object to be converted. Type: Any |
type | The type of interoperability to convert the tool to. Type: str |
**kwargs | Additional arguments to be passed during conversion. Type: Any |
Type | Description |
---|---|
Tool | Tool: The converted tool. |
get_interoperability_class
Retrieves the interoperability class corresponding to the specified type.
Name | Description |
---|---|
type | The type of the interoperability class to retrieve. Type: str |
Type | Description |
---|---|
type[Interoperable] | type[Interoperable]: The interoperability class 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.
Type | Description |
---|---|
list[str] | List[str]: A sorted list of strings representing the supported interoperability types. |