import { BaseLanguageModel } from "../base_language/index.js"; import { CallbackManager } from "../callbacks/manager.js"; import { StructuredTool, Tool } from "../tools/base.js"; 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/index.js"; type AgentType = "zero-shot-react-description" | "chat-zero-shot-react-description" | "chat-conversational-react-description"; /** * @deprecated use initializeAgentExecutorWithOptions instead */ export declare const initializeAgentExecutor: (tools: Tool[], llm: BaseLanguageModel, _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); /** * @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 * @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: StructuredTool[], llm: BaseLanguageModel, options: InitializeAgentExecutorOptionsStructured): Promise; export declare function initializeAgentExecutorWithOptions(tools: Tool[], llm: BaseLanguageModel, options?: InitializeAgentExecutorOptions): Promise; export {};