Record Class TaskRunSpec.LocalTaskRunSpec
java.lang.Object
java.lang.Record
io.agentscope.harness.agent.subagent.task.TaskRunSpec.LocalTaskRunSpec
- All Implemented Interfaces:
TaskRunSpec
- Enclosing interface:
- TaskRunSpec
public static record TaskRunSpec.LocalTaskRunSpec(Supplier<String> execution)
extends Record
implements TaskRunSpec
In-process execution via
Supplier.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.agentscope.harness.agent.subagent.task.TaskRunSpec
TaskRunSpec.AdoptedTaskRunSpec, TaskRunSpec.LocalTaskRunSpec, TaskRunSpec.RemoteTaskRunSpec -
Constructor Summary
ConstructorsConstructorDescriptionLocalTaskRunSpec(Supplier<String> execution) Creates an instance of aLocalTaskRunSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexecutionrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalTaskRunSpec
Creates an instance of aLocalTaskRunSpecrecord class.- Parameters:
execution- the value for theexecutionrecord 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). -
execution
Returns the value of theexecutionrecord component.- Returns:
- the value of the
executionrecord component
-