Mcpixir.Adapters.LangChainAdapter (Mcpixir v0.1.0)

View Source

Adapter to convert MCP tools to LangChain compatible tools.

Summary

Functions

Converts a single MCP tool to LangChain format.

Converts MCP tools to LangChain format.

Processes the result from a tool execution to match LangChain expectations.

Functions

convert_tool(tool, agent)

Converts a single MCP tool to LangChain format.

convert_tools(mcp_tools, agent)

Converts MCP tools to LangChain format.

process_tool_result(result)

Processes the result from a tool execution to match LangChain expectations.