Assistant
data class Assistant(val content: String, val metaInfo: ResponseMetaInfo, val mediaContent: MediaContent? = null, 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, metaInfo: ResponseMetaInfo, mediaContent: MediaContent? = null, finishReason: String? = null)
Properties
Link copied to clipboard
An optional explanation for why the assistant's response was finalized. Defaults to null if not provided.
Link copied to clipboard
Optional media content attached to the message.
Link copied to clipboard
Metadata related to the response, including token counts and timestamp.
Link copied to clipboard
The role associated with the response, which is fixed as Role.Assistant
.