interop
autogen.interop.register_interoperable_class
register_interoperable_class
Register an Interoperable class in the global registry.
Returns:
Callable[[InteroperableClass], InteroperableClass]: Decorator function
Example:
python @register_interoperable_class("myinterop") class MyInteroperability(Interoperable): <br/> def convert_tool(self, tool: Any) -> Tool: <br/> # implementation ...<br/>
Name | Description |
---|---|
short_name | Type: str |
Type | Description |
---|---|
Callable[[~InteroperableClass], ~InteroperableClass] | Callable[[InteroperableClass], InteroperableClass]: Decorator function |