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

    Constructors
    Constructor
    Description
    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 a AgentTaskAssignment record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the agentTaskId record component.
    Returns the value of the attemptId record component.
    Returns the value of the attemptToken record component.
    Returns the value of the command record component.
    Returns the value of the contextUrl record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the generation record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the nodeId record component.
    byte[]
    Returns the value of the payload record component.
    Returns the value of the runId record component.
    Returns the value of the sessionId record component.
    Returns the value of the taskToken record component.
    long
    Returns the value of the timestamp record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a AgentTaskAssignment record class.
      Parameters:
      attemptId - the value for the attemptId record component
      agentTaskId - the value for the agentTaskId record component
      runId - the value for the runId record component
      nodeId - the value for the nodeId record component
      generation - the value for the generation record component
      command - the value for the command record component
      contextUrl - the value for the contextUrl record component
      taskToken - the value for the taskToken record component
      attemptToken - the value for the attemptToken record component
      sessionId - the value for the sessionId record component
      payload - the value for the payload record component
      timestamp - the value for the timestamp record component
  • Method Details

    • payload

      public byte[] payload()
      Returns the value of the payload record component.
      Returns:
      the value of the payload record component
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • attemptId

      public String attemptId()
      Returns the value of the attemptId record component.
      Returns:
      the value of the attemptId record component
    • agentTaskId

      public String agentTaskId()
      Returns the value of the agentTaskId record component.
      Returns:
      the value of the agentTaskId record component
    • runId

      public String runId()
      Returns the value of the runId record component.
      Returns:
      the value of the runId record component
    • nodeId

      public String nodeId()
      Returns the value of the nodeId record component.
      Returns:
      the value of the nodeId record component
    • generation

      public long generation()
      Returns the value of the generation record component.
      Returns:
      the value of the generation record component
    • command

      public String command()
      Returns the value of the command record component.
      Returns:
      the value of the command record component
    • contextUrl

      public String contextUrl()
      Returns the value of the contextUrl record component.
      Returns:
      the value of the contextUrl record component
    • taskToken

      public String taskToken()
      Returns the value of the taskToken record component.
      Returns:
      the value of the taskToken record component
    • attemptToken

      public String attemptToken()
      Returns the value of the attemptToken record component.
      Returns:
      the value of the attemptToken record component
    • sessionId

      public String sessionId()
      Returns the value of the sessionId record component.
      Returns:
      the value of the sessionId record component
    • timestamp

      public long timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component