Skip to content

Interface: BayesianPredictResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / BayesianPredictResponse

Defined in: src/types/inference.ts:1059

Response from Bayesian prediction.

degree: number

Defined in: src/types/inference.ts:1061

Combined confidence/degree.


optional derivationComplete?: 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.


optional effect?: BayesianEffectDto | null

Defined in: src/types/inference.ts:1063

Merged FuzzyNumber (posterior).


optional goalId?: 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: string[]

Defined in: src/types/inference.ts:1073

Proof trace explaining the prediction.


queryTimeMs: number

Defined in: src/types/inference.ts:1075

Query time in milliseconds.


sourcesMerged: number

Defined in: src/types/inference.ts:1077

Number of sources merged.


success: boolean

Defined in: src/types/inference.ts:1079

Whether prediction was successful.