ChatMessageBuilder

Builder of ChatMessageBuilder instances.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The contents of the message.

Link copied to clipboard

The name and arguments of a function that should be called, as generated by the model.

Link copied to clipboard
var name: String?

The name of the author of this message. name is required if the role is `ChatRole.Function, and it should be the name of the function whose response is in the content. It May contain a-z, A-Z, 0-9, and underscores, with a maximum length of 64 characters.

Link copied to clipboard

The role of the author of this message.

Link copied to clipboard

Tool call ID.

Link copied to clipboard

The tool calls generated by the model, such as function calls.

Functions

Link copied to clipboard

Create ChatMessage instance.

Link copied to clipboard
fun content(block: ContentPartBuilder.() -> Unit)

The contents of the message.