LiveHistoryItem

@Serializable
data class LiveHistoryItem(val role: String, val content: List<LiveHistoryText>, val id: String? = null, val status: String? = null)

One text-only initial history message.

Constructors

Link copied to clipboard
constructor(role: String, content: List<LiveHistoryText>, id: String? = null, status: String? = null)

Properties

Link copied to clipboard

Exactly one role-appropriate text part.

Link copied to clipboard
val id: String? = null

Optional history identifier.

Link copied to clipboard

developer, user or assistant.

Link copied to clipboard
val status: String? = null

Optional supplied message status.

Link copied to clipboard
@EncodeDefault
val type: String

History item type.