Record Class AgentTaskOutcome
java.lang.Object
java.lang.Record
io.agentscope.extensions.aistio.adapter.AgentTaskOutcome
public record AgentTaskOutcome(String outcome, String result, String reason, List<String> pendingTaskIds)
extends Record
A business outcome submitted by the model, independently of a physical model turn ending.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classPer-dispatch storage; never stored on a shared tool or HarnessAgent instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.outcome()Returns the value of theoutcomerecord component.Returns the value of thependingTaskIdsrecord component.reason()Returns the value of thereasonrecord component.result()Returns the value of theresultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentTaskOutcome
Creates an instance of aAgentTaskOutcomerecord class.- Parameters:
outcome- the value for theoutcomerecord componentresult- the value for theresultrecord componentreason- the value for thereasonrecord componentpendingTaskIds- the value for thependingTaskIdsrecord 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). -
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
pendingTaskIds
Returns the value of thependingTaskIdsrecord component.- Returns:
- the value of the
pendingTaskIdsrecord component
-