Message

data class Message(val id: String, val type: String, val role: String, val content: List<AnthropicSseData.ContentBlock> = emptyList(), val model: String, val stopReason: String? = null, val stopSequence: String? = null, val usage: AnthropicSseData.Usage)(source)

Message object contained in message_start event

Constructors

Link copied to clipboard
constructor(id: String, type: String, role: String, content: List<AnthropicSseData.ContentBlock> = emptyList(), model: String, stopReason: String? = null, stopSequence: String? = null, usage: AnthropicSseData.Usage)

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "stop_reason")
val stopReason: String?
Link copied to clipboard
@SerialName(value = "stop_sequence")
val stopSequence: String?
Link copied to clipboard
Link copied to clipboard