interop
autogen.interop.PydanticAIInteroperability
PydanticAIInteroperability
A class implementing the Interoperable
protocol for converting Pydantic AI tools
into a general Tool
format.
This class takes a PydanticAITool
and converts it into a standard Tool
object,
ensuring compatibility between Pydantic AI tools and other systems that expect
the Tool
format. It also provides a mechanism for injecting context parameters
into the tool’s function.
Static Methods
convert_tool
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
get_unsupported_reason
inject_params
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |