Skip to content

Interface: PredictionErrorDto

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Cognitive / PredictionErrorDto

Interface: PredictionErrorDto

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

A prediction error detected.

Properties

actual

actual: string

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

Actual outcome.


errorMagnitude

errorMagnitude: number

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

Error magnitude (0.0 to 1.0).


goalId

goalId: string

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

Goal that was predicted on (UUID).


isSurprise

isSurprise: boolean

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

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


predicted

predicted: string

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

Predicted outcome.