OpenAIChatCompletionContentPart

@Serializable
sealed interface OpenAIChatCompletionContentPart

An individual content part in an OpenAI multi-part message.

Inheritors

Types

Link copied to clipboard
@SerialName(value = "image_url")
@Serializable
data class Image(val imageUrl: OpenAIImageUrl, val detail: OpenAIDetail? = null) : OpenAIChatCompletionContentPart, Mapper<ContentPart>

An image content part.

Link copied to clipboard
@SerialName(value = "text")
@Serializable
data class Text(val text: String) : OpenAIChatCompletionContentPart, Mapper<ContentPart>

A text content part.

Functions

Link copied to clipboard
abstract fun toContentPart(): ContentPart

Converts this to a core ContentPart.