Record Class TaskArtifactUpdateEvent_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.TaskArtifactUpdateEvent_v0_3
- All Implemented Interfaces:
Event_v0_3, EventKind_v0_3, StreamingEventKind_v0_3, UpdateEvent_v0_3
public record TaskArtifactUpdateEvent_v0_3(String taskId, @Nullable Boolean append, @Nullable Boolean lastChunk, Artifact_v0_3 artifact, String contextId, Map<String,Object> metadata, String kind)
extends Record
implements EventKind_v0_3, StreamingEventKind_v0_3, UpdateEvent_v0_3
An event sent by the agent to notify the client that an artifact has been
generated or updated. This is typically used in streaming models.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTaskArtifactUpdateEvent_v0_3(String taskId, @Nullable Boolean append, @Nullable Boolean lastChunk, Artifact_v0_3 artifact, String contextId, @Nullable Map<String, Object> metadata, String kind) Creates an instance of aTaskArtifactUpdateEvent_v0_3record class.TaskArtifactUpdateEvent_v0_3(String taskId, Artifact_v0_3 artifact, String contextId, @Nullable Boolean append, @Nullable Boolean lastChunk, @Nullable Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescription@Nullable Booleanappend()Returns the value of theappendrecord component.artifact()Returns the value of theartifactrecord component.Returns the value of thecontextIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.@Nullable BooleanReturns the value of thelastChunkrecord component.metadata()Returns the value of themetadatarecord component.taskId()Returns the value of thetaskIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
KIND
- See Also:
-
-
Constructor Details
-
TaskArtifactUpdateEvent_v0_3
public TaskArtifactUpdateEvent_v0_3(String taskId, @Nullable Boolean append, @Nullable Boolean lastChunk, Artifact_v0_3 artifact, String contextId, @Nullable Map<String, Object> metadata, String kind) Creates an instance of aTaskArtifactUpdateEvent_v0_3record class.- Parameters:
taskId- the value for thetaskIdrecord componentappend- the value for theappendrecord componentlastChunk- the value for thelastChunkrecord componentartifact- the value for theartifactrecord componentcontextId- the value for thecontextIdrecord componentmetadata- the value for themetadatarecord componentkind- the value for thekindrecord component
-
TaskArtifactUpdateEvent_v0_3
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
append
Returns the value of theappendrecord component.- Returns:
- the value of the
appendrecord component
-
lastChunk
Returns the value of thelastChunkrecord component.- Returns:
- the value of the
lastChunkrecord component
-
artifact
Returns the value of theartifactrecord component.- Returns:
- the value of the
artifactrecord component
-
contextId
Returns the value of thecontextIdrecord component.- Returns:
- the value of the
contextIdrecord component
-
metadata
-
kind
Returns the value of thekindrecord component.- Specified by:
kindin interfaceEventKind_v0_3- Specified by:
kindin interfaceStreamingEventKind_v0_3- Returns:
- the value of the
kindrecord component
-