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 explanationmatchConfidence- deterministic engine confidence 0..1; null for unsupported plansresolutionPath- "deterministic" or "ai-fallback" or null for unsupported plans
-
Constructor Summary
ConstructorsConstructorDescriptionNaturalActionPlan(String plannerId, String intent, List<NaturalActionStep> steps, double trust, String explanation, Double matchConfidence, String resolutionPath) 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 thematchConfidencerecord component.static NaturalActionPlanof(String plannerId, String intent, List<NaturalActionStep> steps, double trust, String explanation) Creates a plan with backward compatibility (without confidence/resolutionPath).static NaturalActionPlanof(String plannerId, String intent, List<NaturalActionStep> steps, double trust, String explanation, Double matchConfidence, String resolutionPath) Creates a plan with all fields.Returns the value of theplannerIdrecord component.Returns the value of theresolutionPathrecord 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
-
-
Method Details
-
unsupported
Creates an unsupported zero-trust plan.- Parameters:
plannerId- planner identifierintent- original intentexplanation- safe explanation- Returns:
- unsupported plan
-
of
public static NaturalActionPlan of(String plannerId, String intent, List<NaturalActionStep> steps, double trust, String explanation) Creates a plan with backward compatibility (without confidence/resolutionPath).- Parameters:
plannerId- planner identifierintent- original intentsteps- executable stepstrust- aggregate trustexplanation- explanation- Returns:
- plan
-
of
public static NaturalActionPlan of(String plannerId, String intent, List<NaturalActionStep> steps, double trust, String explanation, Double matchConfidence, String resolutionPath) Creates a plan with all fields.- Parameters:
plannerId- planner identifierintent- original intentsteps- executable stepstrust- aggregate trustexplanation- explanationmatchConfidence- deterministic confidenceresolutionPath- deterministic or ai-fallback- Returns:
- 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
-
matchConfidence
Returns the value of thematchConfidencerecord component.- Returns:
- the value of the
matchConfidencerecord component
-
resolutionPath
Returns the value of theresolutionPathrecord component.- Returns:
- the value of the
resolutionPathrecord component
-