Interface InitializeAgentExecutorOptions

interface InitializeAgentExecutorOptions {
    agentType: "xml" | "zero-shot-react-description" | "chat-zero-shot-react-description" | "chat-conversational-react-description";
    agentArgs?: ChatCreatePromptArgs & AgentArgs | ChatConversationalCreatePromptArgs & AgentArgs | ZeroShotCreatePromptArgs & AgentArgs | XMLAgentInput & Pick<AgentArgs, "callbacks">;
    callbackManager?: any;
    earlyStoppingMethod?: "force" | "generate";
    handleParsingErrors?: string | boolean | ((e) => string);
    maxIterations?: number;
    memory?: any;
    returnIntermediateSteps?: boolean;
}

Properties

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

⚠️ Deprecated ⚠️

Use callbacks instead

This feature is deprecated and will be removed in the future.

It is not recommended for use.

earlyStoppingMethod?: "force" | "generate"
handleParsingErrors?: string | boolean | ((e) => string)

Type declaration

    • (e): string
    • Parameters

      • e: any

      Returns string

maxIterations?: number
memory?: any
returnIntermediateSteps?: boolean

Generated using TypeDoc