ChatStreamDelta - Go SDK

ChatStreamDelta type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Delta changes in streaming response

Fields

FieldTypeRequiredDescriptionExample
Audio*components.ChatAudioOutputN/A{"data": "UklGRnoGAABXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YQoGAACBhYqFbF1f","expires_at": 1677652400,"id": "audio_abc123","transcript": "Hello! How can I help you today?"}
Contentoptionalnullable.OptionalNullable[string]Message content deltaHello
Reasoningoptionalnullable.OptionalNullable[string]Reasoning content deltaI need to
ReasoningDetails[]components.ReasoningDetailUnionReasoning details for extended thinking models[
{"text": "Let me think about this...","type": "text"}
]
Refusaloptionalnullable.OptionalNullable[string]Refusal message delta<nil>
Role*components.ChatStreamDeltaRoleThe role of the message authorassistant
ToolCalls[]components.ChatStreamToolCallTool calls delta