Class MutableChatResponseModel

The ChatResponseModel wraps the actual ChatResponse with additional information like the current state, progress messages, a unique id etc.

Hierarchy (view full)

Implements

Constructors

Properties

_agentId?: string
_cancellationToken: CancellationTokenSource
_errorObject: undefined | Error
_id: string
_isComplete: boolean
_isError: boolean
_isWaitingForInput: boolean
_onDidChangeEmitter: Emitter<void> = ...
_progressMessages: ChatProgressMessage[]
_requestId: string
_response: ChatResponseImpl
data: {} = {}

Some functionality might want to store some data associated with the response. This can be used to store and retrieve such data.

Type declaration

    onDidChange: Event<void> = ...

    Use this to be notified for any change in the response model

    Accessors

    Methods