Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.
Assistant message for requests and responses

Fields

FieldTypeRequiredDescriptionExample
Audio*components.ChatAudioOutput:heavy_minus_sign:Audio output data or reference{"data": "UklGRnoGAABXQVZFZm10IBAAAAABAAEAQB8AAEAfAAABAAgAZGF0YQoGAACBhYqFbF1f","expires_at": 1677652400,"id": "audio_abc123","transcript": "Hello! How can I help you today?"}
Contentoptionalnullable.OptionalNullable[components.ChatAssistantMessageContent]:heavy_minus_sign:Assistant message content
Images[]components.ChatAssistantImages:heavy_minus_sign:Generated images from image generation models[
{"image_url": {"url": "data:image/png;base64,iVBORw0KGgo..."}
}
]
Name*string:heavy_minus_sign:Optional name for the assistant
Reasoningoptionalnullable.OptionalNullable[string]:heavy_minus_sign:Reasoning output
ReasoningDetails[]components.ReasoningDetailUnion:heavy_minus_sign:Reasoning details for extended thinking models[
{"thinking": "Let me work through this step by step...","type": "thinking"}
]
Refusaloptionalnullable.OptionalNullable[string]:heavy_minus_sign:Refusal message if content was refused
Rolecomponents.ChatAssistantMessageRole:heavy_check_mark:N/A
ToolCalls[]components.ChatToolCall:heavy_minus_sign:Tool calls made by the assistant