Record Class Hitl.Decision
java.lang.Object
java.lang.Record
ai.badmonkey.agentspaces.connect.hitl.Hitl.Decision
- Record Components:
invocationId- the ask it answersverdict- one ofHitl.VERDICTS, orrefusedwhen the desk could not take the askby- the deciders, as the channel proved themproof- how each was provedvalidUntil- until when a source accepts it as proof
- Enclosing class:
Hitl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this decision lets a call with this arguments' hash run now.Returns the value of theamendedArgumentsrecord component.booleanapproves()Whether a person approved: approved, or amended (the call then runs with the amended arguments).argsHash()Returns the value of theargsHashrecord component.by()Returns the value of thebyrecord component.channel()Returns the value of thechannelrecord component.Returns the value of thedecidedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinvocationIdrecord component.static Hitl.DecisionThe decision a desk's result carries; a result withok=falseis a refused ask.proof()Returns the value of theproofrecord component.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidUntilrecord component.verdict()Returns the value of theverdictrecord component.
-
Constructor Details
-
Decision
public Decision(String invocationId, String verdict, List<String> by, String proof, String channel, String reason, String argsHash, String amendedArguments, Instant decidedAt, Instant validUntil, String error) Creates an instance of aDecisionrecord class.- Parameters:
invocationId- the value for theinvocationIdrecord componentverdict- the value for theverdictrecord componentby- the value for thebyrecord componentproof- the value for theproofrecord componentchannel- the value for thechannelrecord componentreason- the value for thereasonrecord componentargsHash- the value for theargsHashrecord componentamendedArguments- the value for theamendedArgumentsrecord componentdecidedAt- the value for thedecidedAtrecord componentvalidUntil- the value for thevalidUntilrecord componenterror- the value for theerrorrecord component
-
-
Method Details
-
of
The decision a desk's result carries; a result withok=falseis a refused ask. -
approves
public boolean approves()Whether a person approved: approved, or amended (the call then runs with the amended arguments). -
admits
-
toString
-
hashCode
-
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). -
invocationId
Returns the value of theinvocationIdrecord component.- Returns:
- the value of the
invocationIdrecord component
-
verdict
-
by
-
proof
-
channel
Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
argsHash
Returns the value of theargsHashrecord component.- Returns:
- the value of the
argsHashrecord component
-
amendedArguments
Returns the value of theamendedArgumentsrecord component.- Returns:
- the value of the
amendedArgumentsrecord component
-
decidedAt
Returns the value of thedecidedAtrecord component.- Returns:
- the value of the
decidedAtrecord component
-
validUntil
Returns the value of thevalidUntilrecord component.- Returns:
- the value of the
validUntilrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-