Call
data class Call(val id: String?, val tool: String, val parts: List<ContentPart.Text>, val metaInfo: ResponseMetaInfo) : Message.Tool, Message.Response(source)
Represents a tool call message sent as a response.
Constructors
Properties
Link copied to clipboard
The textual content of the message aggregated from all ContentPart.Text parts joined to String separated by newlines.
Link copied to clipboard
Lazily parses the content of the tool call as a JSON object.
Link copied to clipboard
Metadata related to the response, including token counts and timestamp.
Link copied to clipboard
The parts of the tool call. Only the ContentPart.Text part is allowed.
Link copied to clipboard
The role associated with the message.
Functions
Link copied to clipboard
Creates a copy of the current Response instance with updated metadata.
Link copied to clipboard
Checks weather the message consists of attachments.
Link copied to clipboard
Checks weather the message consists of only sungle text content.
Link copied to clipboard
Converts a Message.Response to a StreamFrame.