autogen_ext.tools#
- class autogen_ext.tools.LangChainToolAdapter(langchain_tool: LangChainTool)[source]#
Bases:
BaseTool
[BaseModel
,Any
]Allows you to wrap a LangChain tool and make it available to AutoGen.
Note
This class requires the
langchain
extra for theautogen-ext
package.- Parameters:
langchain_tool (LangChainTool) – A LangChain tool to wrap
- async run(args: BaseModel, cancellation_token: CancellationToken) Any [source]#