ChatInputPart

@Serializable
sealed interface ChatInputPart

Independent multimodal input part hierarchy.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "input_audio")
data class Audio(val inputAudio: ChatInputAudio, val promptCacheBreakpoint: PromptCacheBreakpoint? = null) : ChatInputPart

Base64-encoded audio input.

Link copied to clipboard
@Serializable
@SerialName(value = "file")
data class File(val file: ChatInputFile, val promptCacheBreakpoint: PromptCacheBreakpoint? = null) : ChatInputPart

Uploaded or inline file input.

Link copied to clipboard
@Serializable
@SerialName(value = "image_url")
data class Image(val imageUrl: ImagePart.ImageURL, val promptCacheBreakpoint: PromptCacheBreakpoint? = null) : ChatInputPart

Image input and optional cache boundary.

Link copied to clipboard
@Serializable
@SerialName(value = "text")
data class Text(val text: String, val promptCacheBreakpoint: PromptCacheBreakpoint? = null) : ChatInputPart

Text input and optional cache boundary.