ReasoningMessageBuilder

Builder for creating Message.Reasoning instances from Java code.

Usage from Java:

Message.Reasoning message = MessageBuilder.reasoning()
.content("Let me think about this...")
.summary("Thinking about the problem")
.build();

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Adds a text content part to the message.

Link copied to clipboard

Builds a new Message.Reasoning instance.

Link copied to clipboard

Sets a single text content for the message, replacing any previously added parts.

Link copied to clipboard

Sets the encrypted content.

Link copied to clipboard

Sets the reasoning ID.

Link copied to clipboard

Sets the input token count.

Link copied to clipboard

Sets the metadata.

Link copied to clipboard

Sets the output token count.

Link copied to clipboard

Sets the summary as a single text string.

Sets the summary as a list of text parts.

Link copied to clipboard

Sets the timestamp using java.time.Instant.

Sets the timestamp using kotlin.time.Instant.

Link copied to clipboard

Sets the total token count.