Skip to content

Interface: PredictionErrorDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Cognitive / PredictionErrorDto

Interface: PredictionErrorDto

Defined in: src/types/cognitive.ts:921

A prediction error detected.

Properties

actual

actual: string

Defined in: src/types/cognitive.ts:923

Actual outcome.


errorMagnitude

errorMagnitude: number

Defined in: src/types/cognitive.ts:925

Error magnitude (0.0 to 1.0).


goalId

goalId: string

Defined in: src/types/cognitive.ts:927

Goal that was predicted on (UUID).


isSurprise

isSurprise: boolean

Defined in: src/types/cognitive.ts:929

Whether this was a “surprise” (error > threshold).


predicted

predicted: string

Defined in: src/types/cognitive.ts:931

Predicted outcome.