Record Class NaturalActionPlan
java.lang.Object
java.lang.Record
com.shaft.gui.internal.natural.NaturalActionPlan
- Record Components:
plannerId- planner identifierintent- original user intentsteps- ordered engine-executable stepstrust- aggregate plan trust score from 0.0 to 1.0explanation- safe human-readable explanation
-
Constructor Summary
ConstructorsConstructorDescriptionNaturalActionPlan(String plannerId, String intent, List<NaturalActionStep> steps, double trust, String explanation) Creates an immutable plan. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexplanationrecord component.final inthashCode()Returns a hash code value for this object.intent()Returns the value of theintentrecord component.Returns the value of theplannerIdrecord component.steps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.doubletrust()Returns the value of thetrustrecord component.static NaturalActionPlanunsupported(String plannerId, String intent, String explanation) Creates an unsupported zero-trust plan.
-
Constructor Details
-
NaturalActionPlan
public NaturalActionPlan(String plannerId, String intent, List<NaturalActionStep> steps, double trust, String explanation) Creates an immutable plan.
-
-
Method Details
-
unsupported
Creates an unsupported zero-trust plan.- Parameters:
plannerId- planner identifierintent- original intentexplanation- safe explanation- Returns:
- unsupported plan
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
plannerId
-
intent
-
steps
-
trust
-
explanation
Returns the value of theexplanationrecord component.- Returns:
- the value of the
explanationrecord component
-