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.