类 TaskStatusUpdateEvent

java.lang.Object
io.github.a2ap.core.model.TaskStatusUpdateEvent
所有已实现的接口:
SendStreamingMessageResponse

public class TaskStatusUpdateEvent extends Object implements SendStreamingMessageResponse
Event for task status updates.
  • 构造器详细资料

    • 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 ID
      contextId - The context ID
      kind - The kind
      status - The task status
      isFinal - Whether this is the final update
      metadata - Additional metadata
  • 方法详细资料

    • getTaskId

      public String getTaskId()
      Gets the task ID
      返回:
      The task ID
    • setTaskId

      public void setTaskId(String taskId)
      Sets the task ID
      参数:
      taskId - The task ID to set
    • getContextId

      public String getContextId()
      Gets the context ID
      返回:
      The context ID
    • setContextId

      public void setContextId(String contextId)
      Sets the context ID
      参数:
      contextId - The context ID to set
    • getKind

      public String getKind()
      Gets the kind
      返回:
      The kind
    • setKind

      public void setKind(String kind)
      Sets the kind
      参数:
      kind - The kind to set
    • getStatus

      public TaskStatus getStatus()
      Gets the task status
      返回:
      The task status
    • setStatus

      public void setStatus(TaskStatus status)
      Sets the task status
      参数:
      status - The task status to set
    • getIsFinal

      public Boolean getIsFinal()
      Gets whether this is the final update
      返回:
      Whether this is the final update
    • setIsFinal

      public void setIsFinal(Boolean isFinal)
      Sets whether this is the final update
      参数:
      isFinal - Whether this is the final update
    • getMetadata

      public Map<String,Object> getMetadata()
      Gets the metadata
      返回:
      The metadata
    • setMetadata

      public void setMetadata(Map<String,Object> metadata)
      Sets the metadata
      参数:
      metadata - The metadata to set
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • builder

      public static TaskStatusUpdateEvent.Builder builder()
      Returns a builder for TaskStatusUpdateEvent
      返回:
      A new builder instance