Call
Represents a tool call message sent as a response.
Constructors
Properties
The textual content of the message aggregated from all ContentPart.Text parts joined to String separated by newlines.
Lazily parses the content of the tool call as a JSON object. Can throw an exception when parsing fails.
Lazily parses and caches the result of parsing content as a JSON object.
Metadata related to the response, including token counts and timestamp.
The parts of the tool call. Only the ContentPart.Text part is allowed.
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.