Interface: BayesianPredictResponse
@kortexya/reasoninglayer / BayesianPredictResponse
Interface: BayesianPredictResponse
Section titled “Interface: BayesianPredictResponse”Defined in: src/types/inference.ts:1308
Response from Bayesian prediction.
Properties
Section titled “Properties”degree
Section titled “degree”degree:
number
Defined in: src/types/inference.ts:1310
Combined confidence/degree.
derivationComplete?
Section titled “derivationComplete?”
optionalderivationComplete?:boolean
Defined in: src/types/inference.ts:1335
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:1312
Merged FuzzyNumber (posterior).
goalId?
Section titled “goalId?”
optionalgoalId?:string|null
Defined in: src/types/inference.ts:1320
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:1322
Proof trace explaining the prediction.
queryTimeMs
Section titled “queryTimeMs”queryTimeMs:
number
Defined in: src/types/inference.ts:1324
Query time in milliseconds.
sourcesMerged
Section titled “sourcesMerged”sourcesMerged:
number
Defined in: src/types/inference.ts:1326
Number of sources merged.
success
Section titled “success”success:
boolean
Defined in: src/types/inference.ts:1328
Whether prediction was successful.