Interface InitializeAgentExecutorOptionsStructured

interface InitializeAgentExecutorOptionsStructured {
    agentType: "structured-chat-zero-shot-react-description" | "openai-functions";
    agentArgs?: StructuredChatCreatePromptArgs & AgentArgs | OpenAIAgentCreatePromptArgs & Pick<AgentArgs, "callbacks">;
    callbackManager?: CallbackManager;
    earlyStoppingMethod?: "force" | "generate";
    handleParsingErrors?: string | boolean | ((e) => string);
    maxIterations?: number;
    memory?: BaseMemory;
    returnIntermediateSteps?: boolean;
}

Properties

agentType: "structured-chat-zero-shot-react-description" | "openai-functions"
callbackManager?: CallbackManager

⚠️ 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: OutputParserException | ToolInputParsingException

      Returns string

maxIterations?: number
memory?: BaseMemory
returnIntermediateSteps?: boolean

Generated using TypeDoc