Skip to content

Interface: ServingChatMessage

A chat message as it arrives on the serving wire, plus the extended-thinking fields Databricks-hosted Claude adds. The OpenAI-standard part of the shape is ChatMessage from @dbx-tools/shared-model; only the provider extensions this module strips are declared here.

  • ChatMessage

optional content?: string | ChatContentPart[] | null

ChatMessage.content


optional name?: string

ChatMessage.name


optional reasoning?: unknown


optional reasoning_content?: unknown


role: ChatRole | "reasoning"

Narrowed to the roles this repair pass reasons about, plus Claude’s reasoning turn.

ChatMessage.role


optional tool_call_id?: string

Set on a tool turn, keying it back to the call it answers.

ChatMessage.tool_call_id


optional tool_calls?: ChatToolCall[]

ChatMessage.tool_calls