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

  • Parameters

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

    Returns Promise<void>

  • Called at the end of an LLM/ChatModel run, with the output and the run ID.

    Parameters

    Returns Promise<void>

  • Called if an LLM/ChatModel run encounters an error

    Parameters

    • err: unknown

    Returns Promise<void>

  • Called when an LLM/ChatModel in streaming mode produces a new token

    Parameters

    Returns Promise<void>

""