Assistant

@Serializable
data class Assistant(val content: String, val finishReason: String? = null) : Message.Response(source)

Represents a message generated by the assistant as a response.

Constructors

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

Properties

Link copied to clipboard
open override val content: String

The content of the assistant's message.

Link copied to clipboard
val finishReason: String? = null

The reason the generation stopped here

Link copied to clipboard
open override val role: Message.Role

The role associated with the message.