类 TaskArtifactUpdateEvent

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

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

    • TaskArtifactUpdateEvent

      public TaskArtifactUpdateEvent()
      Default constructor
    • TaskArtifactUpdateEvent

      public TaskArtifactUpdateEvent(String taskId, String contextId, String kind, Artifact artifact, Boolean isFinal, Boolean append, Boolean lastChunk, Map<String,Object> metadata)
      Constructor with all properties
      参数:
      taskId - The task ID
      contextId - The context ID
      kind - The kind
      artifact - The artifact
      isFinal - Whether this is the final update
      append - Whether this appends to a previous artifact
      lastChunk - Whether this is the last chunk
      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
    • getArtifact

      public Artifact getArtifact()
      Gets the artifact
      返回:
      The artifact
    • setArtifact

      public void setArtifact(Artifact artifact)
      Sets the artifact
      参数:
      artifact - The artifact 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
    • getAppend

      public Boolean getAppend()
      Gets whether this appends to a previous artifact
      返回:
      Whether this appends to a previous artifact
    • setAppend

      public void setAppend(Boolean append)
      Sets whether this appends to a previous artifact
      参数:
      append - Whether this appends to a previous artifact
    • getLastChunk

      public Boolean getLastChunk()
      Gets whether this is the last chunk
      返回:
      Whether this is the last chunk
    • setLastChunk

      public void setLastChunk(Boolean lastChunk)
      Sets whether this is the last chunk
      参数:
      lastChunk - Whether this is the last chunk
    • 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 TaskArtifactUpdateEvent.Builder builder()
      Returns a builder for TaskArtifactUpdateEvent
      返回:
      A new builder instance