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

    Interface for ChatResponseContent parts that require user interaction. Content parts that implement this interface can be tracked by the delegation renderer without content-type-specific checks.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _arguments?: string
    _confirmationRejecter?: (reason?: unknown) => void
    _confirmationResolver?: (value: boolean) => void
    _confirmationTimeout?: number
    _confirmed: Promise<boolean>
    _data?: Record<string, string>
    _finished?: boolean
    _finishedResolver?: () => void
    _id?: string
    _name?: string
    _needsUserConfirmation: Promise<void>
    _needsUserConfirmationResolver?: () => void
    _onDidChangeEmitter: Emitter<void> = ...
    _result?: ToolCallResult
    _whenFinished: Promise<void>
    kind: "toolCall" = 'toolCall'
    onDidChange: Event<void> = ...

    Fires when the serialized form of this tool call changes outside of the agent's stream (e.g. after a renderer persists intermediate state via updateResult). The parent ChatResponse forwards this event so chat-session auto-save picks up the change.

    Accessors

    Methods

    • Mark the tool call as completed with the given result.

      This is used to update the UI immediately when a tool finishes execution, without waiting for all parallel tool calls to complete. The language model batches tool results (via Promise.all) before yielding them to the stream, so without this early completion signal, the UI wouldn't update until all tools finish. The values set here will be overwritten by merge() when the language model eventually yields the results, but they should be identical.

      Parameters

      Returns void

    • Update the tool call's result without marking it finished. Use this to persist intermediate state for long-running tools (e.g. the user-interaction wizard) so progress survives chat-session reloads. On restore the tool call is always marked finished (no live handler exists anymore), so a partial result must be self-describing; consumers should not rely on finished to tell partial from final.

      Parameters

      Returns void