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

convert_tool(*args, **kwargs) -> 

Call self as a function.

Parameters:
NameDescription
*args
**kwargs

get_unsupported_reason

get_unsupported_reason() -> str | None

inject_params

inject_params(*args, **kwargs) -> 

Call self as a function.

Parameters:
NameDescription
*args
**kwargs