pydantic_ai.ext
Bases: FunctionToolset
A toolset that wraps LangChain tools.
def tool_from_langchain(langchain_tool: LangChainTool) -> Tool
Creates a Pydantic AI tool proxy from a LangChain tool.
Tool — A Pydantic AI tool that corresponds to the LangChain tool.
The LangChain tool to wrap.
Bases: FunctionToolset
A toolset that wraps ACI.dev tools.
def tool_from_aci(aci_function: str, linked_account_owner_id: str) -> Tool
Creates a Pydantic AI tool proxy from an ACI.dev function.
Tool — A Pydantic AI tool that corresponds to the ACI.dev tool.
aci_function : str
The ACI.dev function to wrap.
linked_account_owner_id : str
The ACI user ID to execute the function on behalf of.