Record Class TaskStatusUpdateEvent_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.TaskStatusUpdateEvent_v0_3
- All Implemented Interfaces:
Event_v0_3, EventKind_v0_3, StreamingEventKind_v0_3, UpdateEvent_v0_3
public record TaskStatusUpdateEvent_v0_3(String taskId, TaskStatus_v0_3 status, String contextId, boolean isFinal, 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 of a change in a task's status.
This is typically used in streaming or subscription models.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTaskStatusUpdateEvent_v0_3(String taskId, TaskStatus_v0_3 status, String contextId, boolean isFinal, @Nullable Map<String, Object> metadata) TaskStatusUpdateEvent_v0_3(String taskId, TaskStatus_v0_3 status, String contextId, boolean isFinal, @Nullable Map<String, Object> metadata, String kind) Creates an instance of aTaskStatusUpdateEvent_v0_3record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.booleanisFinal()Returns the value of theisFinalrecord component.kind()Returns the value of thekindrecord component.metadata()Returns the value of themetadatarecord component.status()Returns the value of thestatusrecord 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
-
TaskStatusUpdateEvent_v0_3
public TaskStatusUpdateEvent_v0_3(String taskId, TaskStatus_v0_3 status, String contextId, boolean isFinal, @Nullable Map<String, Object> metadata, String kind) Creates an instance of aTaskStatusUpdateEvent_v0_3record class.- Parameters:
taskId- the value for thetaskIdrecord componentstatus- the value for thestatusrecord componentcontextId- the value for thecontextIdrecord componentisFinal- the value for theisFinalrecord componentmetadata- the value for themetadatarecord componentkind- the value for thekindrecord component
-
TaskStatusUpdateEvent_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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
taskId
Returns the value of thetaskIdrecord component.- Returns:
- the value of the
taskIdrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
contextId
Returns the value of thecontextIdrecord component.- Returns:
- the value of the
contextIdrecord component
-
isFinal
@SerializedName("final") public boolean isFinal()Returns the value of theisFinalrecord component.- Returns:
- the value of the
isFinalrecord 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
-