Class CallbackManager

Hierarchy

  • BaseCallbackManager
    • CallbackManager

Implements

  • BaseCallbackManagerMethods

Constructors

Properties

inheritableHandlers: BaseCallbackHandler[]
inheritableMetadata: Record<string, unknown> = {}
inheritableTags: string[] = []
metadata: Record<string, unknown> = {}
name: string = "callback_manager"
tags: string[] = []

Methods

  • Parameters

    • llm: Serialized
    • messages: BaseMessage[][]
    • _runId: undefined | string = undefined
    • _parentRunId: undefined | string = undefined
    • extraParams: undefined | Record<string, unknown> = undefined
    • _tags: undefined | string[] = undefined
    • _metadata: undefined | Record<string, unknown> = undefined
    • runName: undefined | string = undefined

    Returns Promise<CallbackManagerForLLMRun[]>

  • Parameters

    • llm: Serialized
    • prompts: string[]
    • _runId: undefined | string = undefined
    • _parentRunId: undefined | string = undefined
    • extraParams: undefined | Record<string, unknown> = undefined
    • _tags: undefined | string[] = undefined
    • _metadata: undefined | Record<string, unknown> = undefined
    • runName: undefined | string = undefined

    Returns Promise<CallbackManagerForLLMRun[]>

  • Parameters

    • retriever: Serialized
    • query: string
    • runId: string = ...
    • _parentRunId: undefined | string = undefined
    • _tags: undefined | string[] = undefined
    • _metadata: undefined | Record<string, unknown> = undefined
    • runName: undefined | string = undefined

    Returns Promise<CallbackManagerForRetrieverRun>

  • Parameters

    • tool: Serialized
    • input: string
    • runId: string = ...
    • _parentRunId: undefined | string = undefined
    • _tags: undefined | string[] = undefined
    • _metadata: undefined | Record<string, unknown> = undefined
    • runName: undefined | string = undefined

    Returns Promise<CallbackManagerForToolRun>

  • Parameters

    • Optional inheritableHandlers: Callbacks
    • Optional localHandlers: Callbacks
    • Optional inheritableTags: string[]
    • Optional localTags: string[]
    • Optional inheritableMetadata: Record<string, unknown>
    • Optional localMetadata: Record<string, unknown>
    • Optional options: CallbackManagerOptions

    Returns Promise<undefined | CallbackManager>

Generated using TypeDoc