Interface defining the structure of input data for creating an AgentExecutor. It extends ChainInputs and includes additional properties specific to agent execution.

interface AgentExecutorInput {
    agent: BaseSingleActionAgent | BaseMultiActionAgent | Runnable<ChainValues & {
        steps?: AgentStep[];
    }, AgentAction | AgentFinish | AgentAction[], RunnableConfig>;
    tools: (StructuredToolInterface<ZodObject<any, any, any, any, {}>> | StructuredToolInterface<ZodObject<any, any, any, any, {}>>)[];
    callbackManager?: CallbackManager;
    earlyStoppingMethod?: "force" | "generate";
    handleParsingErrors?: string | boolean | ((e) => string);
    maxIterations?: number;
    memory?: BaseMemory;
    returnIntermediateSteps?: boolean;
}

Hierarchy (view full)

Properties

agent: BaseSingleActionAgent | BaseMultiActionAgent | Runnable<ChainValues & {
    steps?: AgentStep[];
}, AgentAction | AgentFinish | AgentAction[], RunnableConfig>
tools: (StructuredToolInterface<ZodObject<any, any, any, any, {}>> | StructuredToolInterface<ZodObject<any, any, any, any, {}>>)[]
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