Package org.a2aproject.sdk.spec
Class MessageSendParams.Builder
java.lang.Object
org.a2aproject.sdk.spec.MessageSendParams.Builder
- Enclosing class:
- MessageSendParams
Builder for constructing
MessageSendParams instances.
Provides a fluent API for building message send parameters with optional configuration and metadata.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theMessageSendParams.configuration(@Nullable MessageSendConfiguration configuration) Sets the optional configuration for message processing.Sets the message to send to the agent.Sets optional metadata for the request.Sets optional tenant for the request.
-
Method Details
-
message
Sets the message to send to the agent.- Parameters:
message- the message (required)- Returns:
- this builder
-
configuration
Sets the optional configuration for message processing.- Parameters:
configuration- the message send configuration- Returns:
- this builder
-
metadata
Sets optional metadata for the request.- Parameters:
metadata- arbitrary key-value metadata- Returns:
- this builder
-
tenant
Sets optional tenant for the request.- Parameters:
tenant- arbitrary key-value metadata- Returns:
- this builder
-
build
Builds theMessageSendParams.- Returns:
- a new message send parameters instance
- Throws:
IllegalArgumentException- if message is null
-