类 TaskStatusUpdateEvent.Builder
java.lang.Object
io.github.a2ap.core.model.TaskStatusUpdateEvent.Builder
Builder class for TaskStatusUpdateEvent
-
方法概要
修饰符和类型方法说明build()Builds a new TaskStatusUpdateEvent instanceSets the context IDSets whether this is the final updateSets the kindSets the metadatastatus(TaskStatus status) Sets the task statusSets the task ID
-
方法详细资料
-
taskId
Sets the task ID- 参数:
taskId- The task ID- 返回:
- This builder for chaining
-
contextId
Sets the context ID- 参数:
contextId- The context ID- 返回:
- This builder for chaining
-
kind
Sets the kind- 参数:
kind- The kind- 返回:
- This builder for chaining
-
status
Sets the task status- 参数:
status- The task status- 返回:
- This builder for chaining
-
isFinal
Sets whether this is the final update- 参数:
isFinal- Whether this is the final update- 返回:
- This builder for chaining
-
metadata
Sets the metadata- 参数:
metadata- The metadata- 返回:
- This builder for chaining
-
build
Builds a new TaskStatusUpdateEvent instance- 返回:
- The built instance
-