ContentPart
Represents a content part in a message.
Content can be text, images, audio, or other media types. Each content part has a type field that identifies its structure.
See also
Inheritors
Types
Link copied to clipboard
Image URL content part.
Link copied to clipboard
data class InputAudio(val type: String = "input_audio", val inputAudio: AudioInputObject) : ContentPart
Input audio content part.
Link copied to clipboard
data class OutputText(val type: String = "output_text", val text: String, val annotations: List<String> = emptyList()) : ContentPart
Output text content part (used in assistant responses).
Link copied to clipboard
Text content part.