Renamed to RunnableMultiActionAgent.

Hierarchy

  • RunnableMultiActionAgent
    • RunnableAgent

Constructors

Properties

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

Accessors

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

Methods

  • Decide what to do, given some input.

    Parameters

    • steps: AgentStep[]

      Steps the LLM has taken so far, along with observations from each.

    • inputs: ChainValues

      User inputs.

    • OptionalcallbackManager: CallbackManager

      Callback manager.

    • Optionalconfig: RunnableConfig<Record<string, any>>

    Returns Promise<AgentFinish | AgentAction[]>

    Actions specifying what tools to use.

  • 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>

  • Returns Serialized