Chat Completion Delta
@Serializable
A chat completion delta generated by streamed model responses.
Each streaming chunk's ChatChoiceChunk.delta carries only the fields that changed on this step. Clients reconstruct the full assistant message by concatenating content and reasoningContent across chunks, and by merging toolCalls by ToolCallDelta.index.
Constructors
Link copied to clipboard
constructor(role: String? = null, content: String? = null, reasoningContent: String? = null, toolCalls: List<ToolCallDelta>? = null)