import type { StructuredToolInterface } from "@langchain/core/tools"; import type { Tool as MCPTool, Resource, Prompt } from "@modelcontextprotocol/client"; import type { BaseConnector } from "@mcp-use/client"; import { BaseAdapter } from "./base.js"; /** Converts MCP tools, resources, and prompts into LangChain structured tools. */ export declare class LangChainAdapter extends BaseAdapter { private usedToolNames; /** * @param disallowedTools - MCP tool names to omit during conversion. */ constructor(disallowedTools?: string[]); private reserveName; /** * Converts MCP tools from all connectors and resets name deduplication. * * @param connectors - Connected MCP connectors. * @returns LangChain structured tools. */ createToolsFromConnectors(connectors: BaseConnector[]): Promise; /** * Convert a single MCP tool specification into a LangChainJS structured tool. */ protected convertTool(mcpTool: MCPTool, connector: BaseConnector): StructuredToolInterface | null; /** * Convert a single MCP resource into a LangChainJS structured tool. * Each resource becomes an async tool that returns its content when called. */ protected convertResource(mcpResource: Resource, connector: BaseConnector): StructuredToolInterface | null; /** * Convert a single MCP prompt into a LangChainJS structured tool. * The resulting tool executes getPrompt on the connector with the prompt's name * and the user-provided arguments (if any). */ protected convertPrompt(mcpPrompt: Prompt, connector: BaseConnector): StructuredToolInterface | null; } //# sourceMappingURL=langchain_adapter.d.ts.map