Text

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

A text content part.

Constructors

Link copied to clipboard
constructor(text: String)

Properties

Link copied to clipboard

The text content.

Functions

Link copied to clipboard
open override fun map(): ContentPart
Link copied to clipboard
open override fun toContentPart(): ContentPart

Converts this to a core ContentPart.