⚠️ Deprecated ⚠️

Renamed to RunnableMultiActionAgent.

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

It is not recommended for use.

Hierarchy

  • RunnableMultiActionAgent
    • RunnableAgent

Constructors

Properties

ToolType: StructuredToolInterface<ZodObject<any, any, any, any, {}>>
defaultRunName: string = "RunnableAgent"
runnable: Runnable<ChainValues & {
    steps: AgentStep[];
}, AgentAction | AgentFinish | AgentAction[], RunnableConfig>
streamRunnable: boolean = true
stop?: string[]

Accessors

  • get allowedTools(): undefined | string[]
  • Returns undefined | string[]

Methods

  • Parameters

    • steps: AgentStep[]
    • inputs: ChainValues
    • Optional callbackManager: CallbackManager
    • Optional config: RunnableConfig

    Returns Promise<AgentFinish | AgentAction[]>

  • Prepare the agent for output, if needed

    Parameters

    • _returnValues: Record<string, any>
    • _steps: AgentStep[]

    Returns Promise<Record<string, any>>

  • Return response when agent has been stopped due to max iterations

    Parameters

    • earlyStoppingMethod: StoppingMethod
    • _steps: AgentStep[]
    • _inputs: ChainValues
    • Optional _callbackManager: CallbackManager

    Returns Promise<AgentFinish>

Generated using TypeDoc