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.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.agentscope.harness.agent.subagent.task.TaskRunSpec
TaskRunSpec.AdoptedTaskRunSpec, TaskRunSpec.LocalTaskRunSpec, TaskRunSpec.RemoteTaskRunSpec -
Constructor Summary
ConstructorsConstructorDescriptionRemoteTaskRunSpec(String baseUrl, Map<String, String> headers, String agentId, String input, RemoteSubmitContext context) Creates an instance of aRemoteTaskRunSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionagentId()Returns the value of theagentIdrecord component.baseUrl()Returns the value of thebaseUrlrecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.input()Returns the value of theinputrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RemoteTaskRunSpec
-
RemoteTaskRunSpec
public RemoteTaskRunSpec(String baseUrl, Map<String, String> headers, String agentId, String input, RemoteSubmitContext context) Creates an instance of aRemoteTaskRunSpecrecord class.- Parameters:
baseUrl- the value for thebaseUrlrecord componentheaders- the value for theheadersrecord componentagentId- the value for theagentIdrecord componentinput- the value for theinputrecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
baseUrl
Returns the value of thebaseUrlrecord component.- Returns:
- the value of the
baseUrlrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
agentId
Returns the value of theagentIdrecord component.- Returns:
- the value of the
agentIdrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-