import { ZeroShotAgent } from "./mrkl/index.js"; import { AgentExecutor, AgentExecutorInput } from "./executor.js"; import { ChatAgent } from "./chat/index.js"; import { ChatConversationalAgent } from "./chat_convo/index.js"; import { StructuredChatAgent } from "./structured_chat/index.js"; import { OpenAIAgent } from "./openai_functions/index.js"; import { XMLAgent } from "./xml/index.js"; import { StructuredToolInterface, ToolInterface } from "@langchain/core/tools"; import { BaseLanguageModelInterface } from "@langchain/core/language_models/base"; import { CallbackManager } from "@langchain/core/callbacks/manager"; //#region src/agents/initialize.d.ts /** * 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"; declare function initializeAgentExecutor(tools: ToolInterface[], llm: BaseLanguageModelInterface, _agentType?: AgentType, _verbose?: boolean, _callbackManager?: CallbackManager): Promise; /** * @interface */ 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 */ 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. * @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 */ declare function initializeAgentExecutorWithOptions(tools: StructuredToolInterface[], llm: BaseLanguageModelInterface, options: InitializeAgentExecutorOptionsStructured): Promise; declare function initializeAgentExecutorWithOptions(tools: ToolInterface[], llm: BaseLanguageModelInterface, options?: InitializeAgentExecutorOptions): Promise; //#endregion export { InitializeAgentExecutorOptions, InitializeAgentExecutorOptionsStructured, initializeAgentExecutor, initializeAgentExecutorWithOptions }; //# sourceMappingURL=initialize.d.ts.map