import type { BaseLanguageModelInterface } from "@langchain/core/language_models/base"; import type { StructuredToolInterface, ToolInterface } from "@langchain/core/tools"; import { CallbackManager } from "@langchain/core/callbacks/manager"; import { ChatAgent } from "./chat/index.js"; import { ChatConversationalAgent } from "./chat_convo/index.js"; import { StructuredChatAgent } from "./structured_chat/index.js"; import { AgentExecutor, AgentExecutorInput } from "./executor.js"; import { ZeroShotAgent } from "./mrkl/index.js"; import { OpenAIAgent } from "./openai_functions/index.js"; import { XMLAgent } from "./xml/index.js"; /** * Represents the type of an agent in LangChain. It can be * "zero-shot-react-description", "chat-zero-shot-react-description", or * "chat-conversational-react-description". */ type AgentType = "zero-shot-react-description" | "chat-zero-shot-react-description" | "chat-conversational-react-description"; /** * @deprecated See {@link https://js.langchain.com/docs/modules/agents/agent_types/ | new agent creation docs}. */ export declare const initializeAgentExecutor: (tools: ToolInterface[], llm: BaseLanguageModelInterface, _agentType?: AgentType, _verbose?: boolean, _callbackManager?: CallbackManager) => Promise; /** * @interface */ export type InitializeAgentExecutorOptions = ({ agentType: "zero-shot-react-description"; agentArgs?: Parameters[2]; memory?: never; } & Omit) | ({ agentType: "chat-zero-shot-react-description"; agentArgs?: Parameters[2]; memory?: never; } & Omit) | ({ agentType: "chat-conversational-react-description"; agentArgs?: Parameters[2]; } & Omit) | ({ agentType: "xml"; agentArgs?: Parameters[2]; } & Omit); /** * @interface */ export type InitializeAgentExecutorOptionsStructured = ({ agentType: "structured-chat-zero-shot-react-description"; agentArgs?: Parameters[2]; } & Omit) | ({ agentType: "openai-functions"; agentArgs?: Parameters[2]; } & Omit); /** * Initialize an agent executor with options. * @deprecated See {@link https://js.langchain.com/docs/modules/agents/agent_types/ | new agent creation docs}. * @param tools Array of tools to use in the agent * @param llm LLM or ChatModel to use in the agent * @param options Options for the agent, including agentType, agentArgs, and other options for AgentExecutor.fromAgentAndTools * @returns AgentExecutor */ export declare function initializeAgentExecutorWithOptions(tools: StructuredToolInterface[], llm: BaseLanguageModelInterface, options: InitializeAgentExecutorOptionsStructured): Promise; /** @deprecated See {@link https://js.langchain.com/docs/modules/agents/agent_types/ | new agent creation docs}. */ export declare function initializeAgentExecutorWithOptions(tools: ToolInterface[], llm: BaseLanguageModelInterface, options?: InitializeAgentExecutorOptions): Promise; export {};