Theia API Documentation v1.74.0
    Preparing search index...
    • Transforms Theia language model messages to Anthropic API format

      Parameters

      • messages: readonly LanguageModelMessage[]

        Array of LanguageModelRequestMessage to transform

      • addCacheControl: boolean = true

        whether to add prompt-cache control to the system message

      • compactionEnabled: boolean = false

        whether the request will use the beta endpoint, so compaction replay blocks may be emitted

      Returns { messages: MessageParam[]; systemMessage?: TextBlockParam[] }

      Object containing transformed messages and optional system message