Record Class TaskRunSpec.RemoteTaskRunSpec

java.lang.Object
java.lang.Record
io.agentscope.harness.agent.subagent.task.TaskRunSpec.RemoteTaskRunSpec
All Implemented Interfaces:
TaskRunSpec
Enclosing interface:
TaskRunSpec

public static record TaskRunSpec.RemoteTaskRunSpec(String baseUrl, Map<String,String> headers, String agentId, String input, RemoteSubmitContext context) extends Record implements TaskRunSpec
Remote HTTP task execution. The taskId is chosen by the client and used as the remote task key end-to-end. context carries submission-time metadata (streaming preference, propagated deny rules, parent identity); defaults to RemoteSubmitContext.empty() for callers that predate this field.
  • Constructor Details

    • RemoteTaskRunSpec

      public RemoteTaskRunSpec(String baseUrl, Map<String,String> headers, String agentId, String input)
    • RemoteTaskRunSpec

      public RemoteTaskRunSpec(String baseUrl, Map<String,String> headers, String agentId, String input, RemoteSubmitContext context)
      Creates an instance of a RemoteTaskRunSpec record class.
      Parameters:
      baseUrl - the value for the baseUrl record component
      headers - the value for the headers record component
      agentId - the value for the agentId record component
      input - the value for the input record component
      context - the value for the context record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • baseUrl

      public String baseUrl()
      Returns the value of the baseUrl record component.
      Returns:
      the value of the baseUrl record component
    • headers

      public Map<String,String> headers()
      Returns the value of the headers record component.
      Returns:
      the value of the headers record component
    • agentId

      public String agentId()
      Returns the value of the agentId record component.
      Returns:
      the value of the agentId record component
    • input

      public String input()
      Returns the value of the input record component.
      Returns:
      the value of the input record component
    • context

      public RemoteSubmitContext context()
      Returns the value of the context record component.
      Returns:
      the value of the context record component