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

    Interface ServerToolCallChatResponseContent

    A tool the provider executed on its own infrastructure (a server tool). Unlike ToolCallChatResponseContent, it has no confirmation members because it is auto-approved/server-executed; the invocation and its result are surfaced together.

    interface ServerToolCallChatResponseContent {
        arguments?: string;
        data?: Record<string, string>;
        finished: boolean;
        id?: string;
        kind: "serverToolCall";
        name?: string;
        result?: ToolCallResult;
        asDisplayString(): undefined | string;
        asString(): undefined | string;
        merge(nextChatResponseContent: ChatResponseContent): boolean;
        toLanguageModelMessage(): LanguageModelMessage | LanguageModelMessage[];
        toSerializable(): SerializableChatResponseContentData;
    }

    Hierarchy

    Implemented by

    Index

    Properties

    arguments?: string
    data?: Record<string, string>

    Provider-specific metadata needed to faithfully reconstruct the server tool on replay.

    finished: boolean
    id?: string
    kind: "serverToolCall"
    name?: string

    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 undefined | string