Reasoning
Represents a reasoning message exchanged in a chat system, encapsulating the content, role, and associated metadata, with an optional reference to the original thinking process.
Constructors
Single content part reasoning message constructor
Properties
The textual content of the message aggregated from all ContentPart.Text parts joined to String separated by newlines.
Metadata associated with the reasoning, captured as a ResponseMetaInfo instance. Provides details such as token usage and timestamps.
The parts of the reasoning message. Only the ContentPart.Text part is allowed.
The Role of the message, indicating its source or function in the chat (e.g., assistant, user). Defaults to Role.Assistant.
An optional summary of the reasoning process. Only the ContentPart.Text part is allowed.
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.