Theia API Documentation v1.73.0
    Preparing search index...
    interface LanguageModelRequest {
        clientSettings?: { keepThinking: boolean; keepToolCalls: boolean };
        deferredToolIds?: string[];
        messages: LanguageModelMessage[];
        reasoning?: ReasoningSettings;
        response_format?:
            | { type: "text" }
            | { type: "json_object" }
            | ResponseFormatJsonSchema;
        serverTools?: string[];
        settings?: { [key: string]: unknown };
        tools?: ToolRequest<ToolInvocationContext>[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    clientSettings?: { keepThinking: boolean; keepToolCalls: boolean }
    deferredToolIds?: string[]

    Ids of tools whose definitions should be deferred and discovered on-demand via the provider's built-in tool search mechanism. Providers that do not support deferred loading should ignore this field.

    reasoning?: ReasoningSettings

    Provider-agnostic reasoning configuration; providers translate it to their native API.

    response_format?:
        | { type: "text" }
        | { type: "json_object" }
        | ResponseFormatJsonSchema
    serverTools?: string[]

    Ids of the provider's server tools (see ServerToolDescriptor) that are enabled for this request. Each provider translates the enabled ids into its native server tool configuration.

    settings?: { [key: string]: unknown }