Base class for run manager in LangChain.

Hierarchy (view full)

Implements

  • BaseCallbackManagerMethods

Constructors

Properties

runId: string
inheritableHandlers: BaseCallbackHandler[]
inheritableMetadata: Record<string, unknown>
inheritableTags: string[]
metadata: Record<string, unknown>
tags: string[]

Accessors

Methods

  • Called when an agent is about to execute an action, with the action and the run ID.

    Parameters

    Returns Promise<void>

  • Called when an agent finishes execution, before it exits. with the final output and the run ID.

    Parameters

    Returns Promise<void>

  • Called at the end of a Chain run, with the outputs and the run ID.

    Parameters

    • output: ChainValues
    • Optional_runId: string
    • Optional_parentRunId: string
    • Optional_tags: string[]
    • Optionalkwargs: {
          inputs?: Record<string, unknown>;
      }
      • Optionalinputs?: Record<string, unknown>

    Returns Promise<void>

  • Called if a Chain run encounters an error

    Parameters

    • err: unknown
    • Optional_runId: string
    • Optional_parentRunId: string
    • Optional_tags: string[]
    • Optionalkwargs: {
          inputs?: Record<string, unknown>;
      }
      • Optionalinputs?: Record<string, unknown>

    Returns Promise<void>

  • Parameters

    • eventName: string
    • data: any
    • Optional_runId: string
    • Optional_tags: string[]
    • Optional_metadata: Record<string, any>

    Returns Promise<void>