SendStreamingMessageRequestBuilder
Builder class for creating SendStreamingMessageRequest instances.
This builder provides a fluent API for creating SendStreamingMessageRequest objects, making it easier to configure streaming message requests according to the A2A protocol.
Example usage:
val request = sendStreamingMessageRequest {
id = "request-789"
params {
message {
role = Message.Role.user
parts = listOf(
TextPart(text = "Generate a detailed report")
)
}
streamResponse = true
}
}Content copied to clipboard
See also
Properties
Functions
Link copied to clipboard
Builds a SendStreamingMessageRequest instance with the configured parameters.
Link copied to clipboard
Sets the ID of the request.
Link copied to clipboard
Configures the message send params using a Java-friendly Consumer.
Configures the message send params using a lambda with receiver.