Skip to content

Interface: ForecastDomain

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Forecast / ForecastDomain

Interface: ForecastDomain

Defined in: src/types/forecast.ts:393

One registered prediction domain.

Remarks

outcome is the domain’s outcome-shape tag. The tags the backend emits today are grouped_rank, cross_section, binary and scalar; it is typed as string because the backend publishes the field as an open tag rather than a schema enum, so a shape added server-side must not break clients built against an older spec snapshot. A committed forecast’s ForecastBody carries its own closed shape discriminator.

modelAvailable is false for a registered-but-untrained domain — forecasting it returns an honest abstention (HTTP 200), not an error.

Example

const { domains } = await client.forecast.listForecastDomains();
const trained = domains.filter((d) => d.modelAvailable);

Properties

eventSort

eventSort: string

Defined in: src/types/forecast.ts:401

KB sort naming the predictable event.


market?

optional market: string

Defined in: src/types/forecast.ts:407

Implied-price market, when the domain has one.


modelAvailable

modelAvailable: boolean

Defined in: src/types/forecast.ts:413

Whether a trained artifact is currently loadable for this domain.


name

name: string

Defined in: src/types/forecast.ts:395

Domain name (the {domain} path segment).


outcome

outcome: string

Defined in: src/types/forecast.ts:398

Outcome shape tag (grouped_rank, cross_section, binary, scalar, …).


optional participantLink: string

Defined in: src/types/forecast.ts:404

KB sort naming the competitor↔event link (grouped outcomes).


psiTerm

psiTerm: string

Defined in: src/types/forecast.ts:410

The homoiconic prediction_domain(...) Ψ-term this descriptor renders to.