Interface: BayesianPredictResponse
@kortexya/reasoninglayer / BayesianPredictResponse
Interface: BayesianPredictResponse
Section titled “Interface: BayesianPredictResponse”Defined in: src/types/inference.ts:1059
Response from Bayesian prediction.
Properties
Section titled “Properties”degree
Section titled “degree”degree:
number
Defined in: src/types/inference.ts:1061
Combined confidence/degree.
derivationComplete?
Section titled “derivationComplete?”
optionalderivationComplete?:boolean
Defined in: src/types/inference.ts:1086
Whether the underlying source derivation completed without pending constraints or exhausted search limits. A posterior over an incomplete derivation uses only the sources found so far; the absence of a prediction is then not a refutation.
effect?
Section titled “effect?”
optionaleffect?:BayesianEffectDto|null
Defined in: src/types/inference.ts:1063
Merged FuzzyNumber (posterior).
goalId?
Section titled “goalId?”
optionalgoalId?:string|null
Defined in: src/types/inference.ts:1071
Goal ID if the goal was saved (when saveGoal is true).
The engine stores the saved goal apart from the tenant’s facts: it is
not visible to MATCH or to getFacts, and it is reached through
listGoals / getGoal / deleteGoal.
proofTrace
Section titled “proofTrace”proofTrace:
string[]
Defined in: src/types/inference.ts:1073
Proof trace explaining the prediction.
queryTimeMs
Section titled “queryTimeMs”queryTimeMs:
number
Defined in: src/types/inference.ts:1075
Query time in milliseconds.
sourcesMerged
Section titled “sourcesMerged”sourcesMerged:
number
Defined in: src/types/inference.ts:1077
Number of sources merged.
success
Section titled “success”success:
boolean
Defined in: src/types/inference.ts:1079
Whether prediction was successful.