Interface InitializeAgentExecutorOptions

interface InitializeAgentExecutorOptions {
    agentArgs?:
        | ZeroShotCreatePromptArgs & AgentArgs
        | ChatCreatePromptArgs & AgentArgs
        | ChatConversationalCreatePromptArgs & AgentArgs
        | XMLAgentInput & Pick<AgentArgs, "callbacks">;
    agentType:
        | "zero-shot-react-description"
        | "chat-zero-shot-react-description"
        | "chat-conversational-react-description"
        | "xml";
    callbackManager?: CallbackManager;
    callbacks?: Callbacks;
    earlyStoppingMethod?: StoppingMethod;
    handleParsingErrors?: string | boolean | ((e: OutputParserException | ToolInputParsingException) => string);
    handleToolRuntimeErrors?: ((e: Error) => string);
    maxIterations?: number;
    memory?: BaseMemory;
    metadata?: Record<string, unknown>;
    returnIntermediateSteps?: boolean;
    tags?: string[];
    verbose?: boolean;
}

Properties

agentType:
    | "zero-shot-react-description"
    | "chat-zero-shot-react-description"
    | "chat-conversational-react-description"
    | "xml"
callbackManager?: CallbackManager

Use callbacks instead

callbacks?: Callbacks
earlyStoppingMethod?: StoppingMethod
handleParsingErrors?: string | boolean | ((e: OutputParserException | ToolInputParsingException) => string)
handleToolRuntimeErrors?: ((e: Error) => string)
maxIterations?: number
memory?: BaseMemory
metadata?: Record<string, unknown>
returnIntermediateSteps?: boolean
tags?: string[]
verbose?: boolean