Package org.a2aproject.sdk.spec
Class TaskStatusUpdateEvent.Builder
java.lang.Object
org.a2aproject.sdk.spec.TaskStatusUpdateEvent.Builder
- Enclosing class:
- TaskStatusUpdateEvent
Builder for constructing
TaskStatusUpdateEvent instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the TaskStatusUpdateEvent.Sets the context identifier.Sets the metadata.status(TaskStatus status) Sets the task status.Sets the task identifier.
-
Method Details
-
taskId
Sets the task identifier.- Parameters:
id- the task ID- Returns:
- this builder for method chaining
-
status
Sets the task status.- Parameters:
status- the task status- Returns:
- this builder for method chaining
-
contextId
Sets the context identifier.- Parameters:
contextId- the context ID- Returns:
- this builder for method chaining
-
metadata
Sets the metadata.- Parameters:
metadata- the metadata map- Returns:
- this builder for method chaining
-
build
Builds the TaskStatusUpdateEvent.- Returns:
- a new TaskStatusUpdateEvent instance
-