Response
Properties
The textual content of the message aggregated from all ContentPart.Text parts joined to String separated by newlines.
Stores metadata information for the current message instance, such as token count and timestamp.
The content parts of the message. By default, if the message is a single text message, it will contain a single ContentPart.Text part. If the message contains multiple parts, it will contain an ordered list of ContentPart.Text and ContentPart.Attachment instances.
The role associated with the message.
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.