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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _arguments?: string
    _confirmationRejecter?: (reason?: unknown) => void
    _confirmationResolver?: (value: boolean) => void
    _confirmed: Promise<boolean>
    _data?: Record<string, string>
    _finished?: boolean
    _finishedResolver?: () => void
    _id?: string
    _name?: string
    _result?: ToolCallResult
    _whenFinished: Promise<void>
    kind: "toolCall"
    type: "codex-tool-call" = 'codex-tool-call'

    Accessors

    • get arguments(): undefined | string

      Returns undefined | string

    • get confirmed(): Promise<boolean>

      Returns Promise<boolean>

    • get data(): undefined | Record<string, string>

      Returns undefined | Record<string, string>

    • get finished(): boolean

      Returns boolean

    • get id(): undefined | string

      Returns undefined | string

    • get name(): undefined | string

      Returns undefined | string

    • get result(): ToolCallResult

      Returns ToolCallResult

    • get whenFinished(): Promise<void>

      Returns Promise<void>

    Methods

    • Represents the content as a string. Returns undefined if the content is purely informational and/or visual and should not be included in the overall representation of the response.

      Returns string

    • 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