Class ErrorChatResponseModel

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

Hierarchy (view full)

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

    • get errorObject(): undefined | Error
    • An optional error object that caused the response to be in an error state.

      Returns undefined | Error

    • get isCanceled(): boolean
    • Indicates whether this response is canceled. No further changes are expected if 'true'.

      Returns boolean

    • get isComplete(): boolean
    • Indicates whether this response is complete. No further changes are expected if 'true'.

      Returns boolean

    • get isError(): boolean
    • Indicates whether an error occurred when processing the response. No further changes are expected if 'true'.

      Returns boolean

    • get isWaitingForInput(): boolean
    • Some agents might need to wait for user input to continue. This flag indicates that.

      Returns boolean

    Methods