Assistant
Represents a message generated by the assistant as a response.
Constructors
Properties
The textual content of the message aggregated from all ContentPart.Text parts joined to String separated by newlines.
An optional explanation for why the assistant's response was finalized. Defaults to null if not provided.
Metadata related to the response, including token counts and timestamp.
The parts of the assistant's response.
The role associated with the response, which is fixed as Role.Assistant.
Functions
Creates a copy of the current Response instance with updated metadata.
Checks weather the message consists of attachments.
Checks weather the message consists of only sungle text content.
Converts a Message.Response to a list of StreamFrame. First it emits the delta frames for each content part for each message, then complete frame with the full message content.