UserMessageBuilder

Builder for creating Message.User instances from Java code.

Usage from Java:

Message.User message = MessageBuilder.user()
.content("Hello, world!")
.timestamp(Instant.now())
.build();

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Adds a content part to the message.

Link copied to clipboard

Builds a new Message.User 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.