Skip to content

Interface: PredictionErrorDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Cognitive / PredictionErrorDto

Interface: PredictionErrorDto

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

A prediction error detected.

Properties

actual

actual: string

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

Actual outcome.


errorMagnitude

errorMagnitude: number

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

Error magnitude (0.0 to 1.0).


goalId

goalId: string

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

Goal that was predicted on (UUID).


isSurprise

isSurprise: boolean

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

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


predicted

predicted: string

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

Predicted outcome.