UserMessage

@Serializable
@SerialName(value = "user")
class UserMessage(val content: String?, val name: String? = null) : ChatMessage

User-role message — the end-user's input to the conversation.

Constructors

Link copied to clipboard
constructor(content: String?, name: String? = null)

Properties

Link copied to clipboard
open override val content: String?

User's message text. May be null only in unusual cases such as a follow-up turn that carries no new text.

Link copied to clipboard
val name: String?

Optional participant name forwarded to the model.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String