Skip to content

Overview / ModelInteractionHandler

ModelInteractionHandler

Extends

  • BaseCallbackHandler

Constructors

new ModelInteractionHandler()

new ModelInteractionHandler(stray, source, input?): ModelInteractionHandler

Parameters

ParameterType
strayStrayCat
sourcestring
input?BaseCallbackHandlerInput

Returns

ModelInteractionHandler

Overrides

BaseCallbackHandler.constructor

Properties

PropertyTypeDefault valueOverrides
namestring'ModelInteraction'BaseCallbackHandler.name

Methods

handleLLMEnd()

handleLLMEnd(output): Promise<void>

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

Parameters

ParameterType
outputLLMResult

Returns

Promise<void>

Overrides

BaseCallbackHandler.handleLLMEnd


handleLLMStart()

handleLLMStart(_llm, prompts): Promise<void>

Called at the start of an LLM or Chat Model run, with the prompt(s) and the run ID.

Parameters

ParameterType
_llmSerialized
promptsstring[]

Returns

Promise<void>

Overrides

BaseCallbackHandler.handleLLMStart

Released under the GPL-3.0 License.