SystemMessageBuilder

Builder for creating Message.System instances from Java code.

Usage from Java:

Message.System message = MessageBuilder.system()
.content("You are a helpful assistant.")
.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.System instance.

Link copied to clipboard

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

Link copied to clipboard

Sets the metadata.

Link copied to clipboard

Sets the timestamp using java.time.Instant.

Sets the timestamp using kotlin.time.Instant.