Record Class AgentTaskAssignment
java.lang.Object
java.lang.Record
io.agentscope.extensions.aistio.model.AgentTaskAssignment
public record AgentTaskAssignment(String attemptId, String agentTaskId, String runId, String nodeId, long generation, String command, String contextUrl, String taskToken, String attemptToken, String sessionId, byte[] payload, long timestamp)
extends Record
Immutable ASDP execution envelope for one durable AgentTask.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentTaskAssignment(String attemptId, String agentTaskId, String runId, String nodeId, long generation, String command, String contextUrl, String taskToken, String attemptToken, String sessionId, byte[] payload, long timestamp) Creates an instance of aAgentTaskAssignmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentTaskIdrecord component.Returns the value of theattemptIdrecord component.Returns the value of theattemptTokenrecord component.command()Returns the value of thecommandrecord component.Returns the value of thecontextUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thegenerationrecord component.final inthashCode()Returns a hash code value for this object.nodeId()Returns the value of thenodeIdrecord component.byte[]payload()Returns the value of thepayloadrecord component.runId()Returns the value of therunIdrecord component.Returns the value of thesessionIdrecord component.Returns the value of thetaskTokenrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentTaskAssignment
public AgentTaskAssignment(String attemptId, String agentTaskId, String runId, String nodeId, long generation, String command, String contextUrl, String taskToken, String attemptToken, String sessionId, byte[] payload, long timestamp) Creates an instance of aAgentTaskAssignmentrecord class.- Parameters:
attemptId- the value for theattemptIdrecord componentagentTaskId- the value for theagentTaskIdrecord componentrunId- the value for therunIdrecord componentnodeId- the value for thenodeIdrecord componentgeneration- the value for thegenerationrecord componentcommand- the value for thecommandrecord componentcontextUrl- the value for thecontextUrlrecord componenttaskToken- the value for thetaskTokenrecord componentattemptToken- the value for theattemptTokenrecord componentsessionId- the value for thesessionIdrecord componentpayload- the value for thepayloadrecord componenttimestamp- the value for thetimestamprecord component
-
-
Method Details
-
payload
public byte[] payload()Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
attemptId
Returns the value of theattemptIdrecord component.- Returns:
- the value of the
attemptIdrecord component
-
agentTaskId
Returns the value of theagentTaskIdrecord component.- Returns:
- the value of the
agentTaskIdrecord component
-
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
nodeId
Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
generation
public long generation()Returns the value of thegenerationrecord component.- Returns:
- the value of the
generationrecord component
-
command
Returns the value of thecommandrecord component.- Returns:
- the value of the
commandrecord component
-
contextUrl
Returns the value of thecontextUrlrecord component.- Returns:
- the value of the
contextUrlrecord component
-
taskToken
Returns the value of thetaskTokenrecord component.- Returns:
- the value of the
taskTokenrecord component
-
attemptToken
Returns the value of theattemptTokenrecord component.- Returns:
- the value of the
attemptTokenrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-