Theia API Documentation v1.65.0
    Preparing search index...

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

    Hierarchy (View Summary)

    Index

    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.

    onDidChange: Event<void> = ...

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

    Accessors

    • get agentId(): undefined | string

      The agent who produced the response content, if there is one.

      Returns undefined | string

    • 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

    • get requestId(): string

      The unique identifier of the request model this response is associated with

      Returns string

    Methods