Skip to content

Interface: PredictionErrorDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / PredictionErrorDto

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

A prediction error detected.

actual: string

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

Actual outcome.


errorMagnitude: number

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

Error magnitude (0.0 to 1.0).


goalId: string

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

Goal that was predicted on (UUID).


isSurprise: boolean

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

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


predicted: string

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

Predicted outcome.