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