ChatPrediction

@Serializable
data class ChatPrediction(val content: Content, val type: String = "content")

Predicted output content used to accelerate responses with a known prefix.

Constructors

Link copied to clipboard
constructor(content: String)

Predict a complete text output.

constructor(content: Content, type: String = "content")

Properties

Link copied to clipboard
@SerialName(value = "content")
val content: Content

Predicted string or text content parts.

Link copied to clipboard
@EncodeDefault
@SerialName(value = "type")
val type: String

Prediction kind; the API currently supports content.