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

    Implements the Anthropic language model integration for Theia. Reasoning-level translation lives in anthropicReasoningFor.

    Implements

    Index
    apiKey: () => string | undefined
    enableStreaming: boolean
    headers?: Record<string, string>
    id: string
    logger: ILogger
    maxInputTokens?: number
    maxRetries: number
    maxTokens: number
    model: string
    proxy?: string
    reasoningApi?: ReasoningApi
    reasoningSupport?: ReasoningSupport
    released?: number

    Release date (ms since epoch) as reported by the provider, where it reports one. Lets the model lists offer the newest models first instead of ordering them by name.

    serverSideCompactionEnabledByDefault: boolean
    serverSideCompactionSupport: boolean

    Whether this model supports provider-native server-side compaction (capability, distinct from whether it is activated).

    serverSideCompactionTokenThresholdByDefault?: number
    serverTools?: ServerToolDescriptor[]

    Server tools this model offers, declared code-level by the provider package. Note: If you provide these, you must also provide vendor because server tools are vendor-specific.

    toolCallExecutor: ToolCallExecutor
    url: string | undefined
    useCaching: boolean
    vendor: "anthropic" = 'anthropic'

    Provider identifier, used to key per-provider settings (e.g. server tool selections) and the capabilities UI.

    • Augments the base message-create params with the beta flag and context-management edit when server-side compaction is enabled for the given request. When disabled, the params are returned unchanged so the default (stable) path is byte-for-byte identical.

      Type Parameters

      • T extends MessageCreateParams

      Parameters

      Returns T

    • Whether requests go to a custom (API-compatible) endpoint rather than the official Anthropic API. Such gateways may strip thinking text while forwarding signatures, so empty thinking blocks are dropped on replay. Checks the client's resolved base URL, which also reflects the ANTHROPIC_BASE_URL environment variable.

      Parameters

      • anthropic: Anthropic

      Returns boolean