langchain.js
    Preparing search index...

    Hierarchy

    • RunnableMultiActionAgent
      • RunnableAgent
    Index

    Constructors

    • Parameters

      • fields: RunnableMultiActionAgentInput

      Returns RunnableAgent

    Properties

    defaultRunName: string = "RunnableAgent"
    lc_namespace: string[] = ...
    runnable: Runnable<any, any>
    stop?: string[]
    streamRunnable: boolean = true
    ToolType: StructuredToolInterface

    Accessors

    • get allowedTools(): undefined | string[]

      Returns undefined | string[]

    • get inputKeys(): string[]

      Returns string[]

    • get returnValues(): string[]

      Returns string[]

    Methods

    • Return the string type key uniquely identifying multi or single action agents.

      Returns string

    • Return the string type key uniquely identifying this class of agent.

      Returns string

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

        Callback manager.

      • Optionalconfig: any

      Returns Promise<any>

      Actions specifying what tools to use.

    • Prepare the agent for output, if needed

      Parameters

      • _returnValues: AgentFinish
      • _steps: AgentStep[]

      Returns Promise<AgentFinish>

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

      Parameters

      • earlyStoppingMethod: StoppingMethod
      • _steps: AgentStep[]
      • _inputs: ChainValues
      • Optional_callbackManager: any

      Returns Promise<AgentFinish>