Record Class HealingConfiguration
java.lang.Object
java.lang.Record
com.shaft.heal.HealingConfiguration
- Record Components:
minimumConfidence- minimum accepted scoreambiguityMargin- required top-candidate separationevidenceCategories- enabled deterministic evidence categoriestestIdAttributes- configured test ID attributeshistoryEnabled- whether local history is enabledhistoryPath- local history pathhistoryMaxEntries- maximum history recordshistoryRetention- history retentionvisualEnabled- whether optional visual evidence is enabledaiEnabled- whether optional provider reranking is enabledaiTrigger- when optional provider reranking may runsourcePatchEnabled- whether reviewed source-patch proposals are permitted
public record HealingConfiguration(double minimumConfidence, double ambiguityMargin, Set<String> evidenceCategories, List<String> testIdAttributes, boolean historyEnabled, Path historyPath, int historyMaxEntries, Duration historyRetention, boolean visualEnabled, boolean aiEnabled, HealingConfiguration.AiTrigger aiTrigger, boolean sourcePatchEnabled)
extends Record
Immutable current-thread SHAFT Heal configuration snapshot.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumOptional provider reranking trigger. -
Constructor Summary
ConstructorsConstructorDescriptionHealingConfiguration(double minimumConfidence, double ambiguityMargin, Set<String> evidenceCategories, List<String> testIdAttributes, boolean historyEnabled, Path historyPath, int historyMaxEntries, Duration historyRetention, boolean visualEnabled, boolean aiEnabled, boolean sourcePatchEnabled) Backward-compatible constructor with the default AI trigger.HealingConfiguration(double minimumConfidence, double ambiguityMargin, Set<String> evidenceCategories, List<String> testIdAttributes, boolean historyEnabled, Path historyPath, int historyMaxEntries, Duration historyRetention, boolean visualEnabled, boolean aiEnabled, HealingConfiguration.AiTrigger aiTrigger, boolean sourcePatchEnabled) Creates a normalized configuration. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theaiEnabledrecord component.Returns the value of theaiTriggerrecord component.doubleReturns the value of theambiguityMarginrecord component.static HealingConfigurationcurrent()Reads the effective current-thread configuration.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevidenceCategoriesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehistoryEnabledrecord component.intReturns the value of thehistoryMaxEntriesrecord component.Returns the value of thehistoryPathrecord component.Returns the value of thehistoryRetentionrecord component.doubleReturns the value of theminimumConfidencerecord component.booleanReturns the value of thesourcePatchEnabledrecord component.Returns the value of thetestIdAttributesrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thevisualEnabledrecord component.
-
Constructor Details
-
HealingConfiguration
public HealingConfiguration(double minimumConfidence, double ambiguityMargin, Set<String> evidenceCategories, List<String> testIdAttributes, boolean historyEnabled, Path historyPath, int historyMaxEntries, Duration historyRetention, boolean visualEnabled, boolean aiEnabled, boolean sourcePatchEnabled) Backward-compatible constructor with the default AI trigger. -
HealingConfiguration
public HealingConfiguration(double minimumConfidence, double ambiguityMargin, Set<String> evidenceCategories, List<String> testIdAttributes, boolean historyEnabled, Path historyPath, int historyMaxEntries, Duration historyRetention, boolean visualEnabled, boolean aiEnabled, HealingConfiguration.AiTrigger aiTrigger, boolean sourcePatchEnabled) Creates a normalized configuration.
-
-
Method Details
-
current
Reads the effective current-thread configuration.- Returns:
- configuration snapshot
-
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. -
minimumConfidence
public double minimumConfidence()Returns the value of theminimumConfidencerecord component.- Returns:
- the value of the
minimumConfidencerecord component
-
ambiguityMargin
public double ambiguityMargin()Returns the value of theambiguityMarginrecord component.- Returns:
- the value of the
ambiguityMarginrecord component
-
evidenceCategories
Returns the value of theevidenceCategoriesrecord component.- Returns:
- the value of the
evidenceCategoriesrecord component
-
testIdAttributes
Returns the value of thetestIdAttributesrecord component.- Returns:
- the value of the
testIdAttributesrecord component
-
historyEnabled
public boolean historyEnabled()Returns the value of thehistoryEnabledrecord component.- Returns:
- the value of the
historyEnabledrecord component
-
historyPath
Returns the value of thehistoryPathrecord component.- Returns:
- the value of the
historyPathrecord component
-
historyMaxEntries
public int historyMaxEntries()Returns the value of thehistoryMaxEntriesrecord component.- Returns:
- the value of the
historyMaxEntriesrecord component
-
historyRetention
Returns the value of thehistoryRetentionrecord component.- Returns:
- the value of the
historyRetentionrecord component
-
visualEnabled
public boolean visualEnabled()Returns the value of thevisualEnabledrecord component.- Returns:
- the value of the
visualEnabledrecord component
-
aiEnabled
-
aiTrigger
-
sourcePatchEnabled
public boolean sourcePatchEnabled()Returns the value of thesourcePatchEnabledrecord component.- Returns:
- the value of the
sourcePatchEnabledrecord component
-