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
}Content copied to clipboard