Skip to content

Interface: PredictFromDiscoveryResponse

@kortexya/reasoninglayer


@kortexya/reasoninglayer / PredictFromDiscoveryResponse

Defined in: src/types/discovery.ts:296

Response from discovery-based prediction: a historical-neighbour comparison, with support and uncertainty status kept apart.

uncertaintyStatus is not_calibrated: overlapping windows and outcomes remain dependent, so no summary here is a calibrated forecast.

avgSimilarity: number

Defined in: src/types/discovery.ts:298

Average distance similarity; not a probability or confidence level.


optional changeMode?: DiscoveryChangeMode | null

Defined in: src/types/discovery.ts:308

The change quantity, or null when no model was found.


optional effectUnit?: string | null

Defined in: src/types/discovery.ts:310

The change unit; null also represents an unspecified absolute unit.


optional modelSnapshot?: string | null

Defined in: src/types/discovery.ts:312

Identity of the loaded model payload, or null when no model was found.


predictions: Record<string, EffectPredictionDto>

Defined in: src/types/discovery.ts:300

Change summaries keyed effect_hN.


queryTimeMs: number

Defined in: src/types/discovery.ts:302

Query duration in milliseconds, including artifact retrieval.


selectedAnchors: number[]

Defined in: src/types/discovery.ts:316

Chronological positions of every selected historical window.


similarTerms: number

Defined in: src/types/discovery.ts:304

Number of distinct historical windows selected.


optional sourceSnapshot?: string | null

Defined in: src/types/discovery.ts:314

Input snapshot of the loaded model, or null when no model was found.


success: boolean

Defined in: src/types/discovery.ts:306

Whether at least one horizon met the configured outcome-sample threshold.


support: Record<string, PredictionSupport>

Defined in: src/types/discovery.ts:318

Observed and missing support for every selected model horizon, keyed by horizon.


uncertaintyStatus: string

Defined in: src/types/discovery.ts:320

not_calibrated.