MessageSendParamsBuilder

Builder for creating MessageSendParams instances using a DSL approach.

Example usage:

val params = MessageSendParams.build {
message {
role = Message.Role.user
parts = listOf(
TextPart(text = "Hello, how can I help you?")
)
}
streamResponse = true
}

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Optional configuration for the send request.

Link copied to clipboard

The message to send to the agent.

Link copied to clipboard

Optional metadata for extensions.

Functions

Link copied to clipboard

Builds the MessageSendParams instance.

Link copied to clipboard

Configure the configuration using a DSL builder.

Link copied to clipboard
fun message(init: MessageBuilder.() -> Unit)

Configure the message using a DSL builder.