Record Class Task_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.Task_v0_3
- All Implemented Interfaces:
Event_v0_3, EventKind_v0_3, StreamingEventKind_v0_3
public record Task_v0_3(String id, String contextId, TaskStatus_v0_3 status, List<Artifact_v0_3> artifacts, List<Message_v0_3> history, @Nullable Map<String,Object> metadata, String kind)
extends Record
implements EventKind_v0_3, StreamingEventKind_v0_3
Represents a single, stateful operation or conversation between a client and an agent.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTask_v0_3(String id, String contextId, TaskStatus_v0_3 status, List<Artifact_v0_3> artifacts, List<Message_v0_3> history, @Nullable Map<String, Object> metadata) Task_v0_3(String id, String contextId, TaskStatus_v0_3 status, List<Artifact_v0_3> artifacts, List<Message_v0_3> history, @Nullable Map<String, Object> metadata, String kind) Creates an instance of aTask_v0_3record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactsrecord 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.history()Returns the value of thehistoryrecord component.id()Returns the value of theidrecord component.kind()Returns the value of thekindrecord component.metadata()Returns the value of themetadatarecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
KIND
- See Also:
-
-
Constructor Details
-
Task_v0_3
public Task_v0_3(String id, String contextId, TaskStatus_v0_3 status, List<Artifact_v0_3> artifacts, List<Message_v0_3> history, @Nullable Map<String, Object> metadata, String kind) Creates an instance of aTask_v0_3record class.- Parameters:
id- the value for theidrecord componentcontextId- the value for thecontextIdrecord componentstatus- the value for thestatusrecord componentartifacts- the value for theartifactsrecord componenthistory- the value for thehistoryrecord componentmetadata- the value for themetadatarecord componentkind- the value for thekindrecord component
-
Task_v0_3
public Task_v0_3(String id, String contextId, TaskStatus_v0_3 status, List<Artifact_v0_3> artifacts, List<Message_v0_3> history, @Nullable Map<String, Object> metadata)
-
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
contextId
Returns the value of thecontextIdrecord component.- Returns:
- the value of the
contextIdrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
artifacts
Returns the value of theartifactsrecord component.- Returns:
- the value of the
artifactsrecord component
-
history
Returns the value of thehistoryrecord component.- Returns:
- the value of the
historyrecord 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
-