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 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 of the message, indicating its source or function in the chat (e.g., assistant, user). Defaults to 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 StreamFrame.