Assistant
constructor(parts: List<MessagePart.ResponsePart>, metaInfo: ResponseMetaInfo, finishReason: String? = null, rawResponse: JsonObject? = null, id: String? = null)(source)
constructor(part: MessagePart.ResponsePart, metaInfo: ResponseMetaInfo, finishReason: String? = null, rawResponse: JsonObject? = null, id: String? = null)(source)
Convenience constructor that wraps a single MessagePart.ResponsePart in a list.
constructor(content: String, metaInfo: ResponseMetaInfo, finishReason: String? = null, rawResponse: JsonObject? = null, id: String? = null)(source)
Convenience constructor that creates a MessagePart.Text from a raw string.
Parameters
content
The plain-text content of the assistant message.