类 TaskArtifactUpdateEvent
java.lang.Object
io.github.a2ap.core.model.TaskArtifactUpdateEvent
- 所有已实现的接口:
SendStreamingMessageResponse
Event for task artifact updates.
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明builder()Returns a builder for TaskArtifactUpdateEventbooleanGets whether this appends to a previous artifactGets the artifactGets the context IDGets whether this is the final updategetKind()Gets the kindGets whether this is the last chunkGets the metadataGets the task IDinthashCode()voidSets whether this appends to a previous artifactvoidsetArtifact(Artifact artifact) Sets the artifactvoidsetContextId(String contextId) Sets the context IDvoidsetIsFinal(Boolean isFinal) Sets whether this is the final updatevoidSets the kindvoidsetLastChunk(Boolean lastChunk) Sets whether this is the last chunkvoidsetMetadata(Map<String, Object> metadata) Sets the metadatavoidSets the task IDtoString()
-
构造器详细资料
-
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 IDcontextId- The context IDkind- The kindartifact- The artifactisFinal- Whether this is the final updateappend- Whether this appends to a previous artifactlastChunk- Whether this is the last chunkmetadata- 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
-
getArtifact
Gets the artifact- 返回:
- The artifact
-
setArtifact
Sets the artifact- 参数:
artifact- The artifact 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
-
getAppend
Gets whether this appends to a previous artifact- 返回:
- Whether this appends to a previous artifact
-
setAppend
Sets whether this appends to a previous artifact- 参数:
append- Whether this appends to a previous artifact
-
getLastChunk
Gets whether this is the last chunk- 返回:
- Whether this is the last chunk
-
setLastChunk
Sets whether this is the last chunk- 参数:
lastChunk- Whether this is the last chunk
-
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 TaskArtifactUpdateEvent- 返回:
- A new builder instance
-