类 TaskStatusUpdateEvent
java.lang.Object
io.github.a2ap.core.model.TaskStatusUpdateEvent
- 所有已实现的接口:
SendStreamingMessageResponse
Event for task status updates.
-
嵌套类概要
嵌套类 -
构造器概要
构造器构造器说明Default constructorTaskStatusUpdateEvent(String taskId, String contextId, String kind, TaskStatus status, Boolean isFinal, Map<String, Object> metadata) Constructor with all properties -
方法概要
修饰符和类型方法说明builder()Returns a builder for TaskStatusUpdateEventbooleanGets the context IDGets whether this is the final updategetKind()Gets the kindGets the metadataGets the task statusGets the task IDinthashCode()voidsetContextId(String contextId) Sets the context IDvoidsetIsFinal(Boolean isFinal) Sets whether this is the final updatevoidSets the kindvoidsetMetadata(Map<String, Object> metadata) Sets the metadatavoidsetStatus(TaskStatus status) Sets the task statusvoidSets the task IDtoString()
-
构造器详细资料
-
TaskStatusUpdateEvent
public TaskStatusUpdateEvent()Default constructor -
TaskStatusUpdateEvent
public TaskStatusUpdateEvent(String taskId, String contextId, String kind, TaskStatus status, Boolean isFinal, Map<String, Object> metadata) Constructor with all properties- 参数:
taskId- The task IDcontextId- The context IDkind- The kindstatus- The task statusisFinal- Whether this is the final updatemetadata- Additional metadata
-
-
方法详细资料
-
getTaskId
Gets the task ID- 返回:
- The task ID
-
setTaskId
Sets the task ID- 参数:
taskId- The task ID to set
-
getContextId
Gets the context ID- 返回:
- The context ID
-
setContextId
Sets the context ID- 参数:
contextId- The context ID to set
-
getKind
Gets the kind- 返回:
- The kind
-
setKind
Sets the kind- 参数:
kind- The kind to set
-
getStatus
Gets the task status- 返回:
- The task status
-
setStatus
Sets the task status- 参数:
status- The task status to set
-
getIsFinal
Gets whether this is the final update- 返回:
- Whether this is the final update
-
setIsFinal
Sets whether this is the final update- 参数:
isFinal- Whether this is the final update
-
getMetadata
Gets the metadata- 返回:
- The metadata
-
setMetadata
Sets the metadata- 参数:
metadata- The metadata to set
-
equals
-
hashCode
public int hashCode() -
toString
-
builder
Returns a builder for TaskStatusUpdateEvent- 返回:
- A new builder instance
-