User

@Serializable
@SerialName(value = "user")
data class User(val text: String, val attachments: List<Attachment> = emptyList()) : ChatMessage

What the user said.

Constructors

Link copied to clipboard
constructor(text: String, attachments: List<Attachment> = emptyList())

Properties

Link copied to clipboard

files that go to the model with text, such as images or PDFs.

Link copied to clipboard
open override val text: String

The text of the message. Empty for an assistant message that only asks for tools.