Interface: ForecastDomain
@kortexya/reasoninglayer / ForecastDomain
Interface: ForecastDomain
Section titled “Interface: ForecastDomain”Defined in: src/types/forecast.ts:392
One registered prediction domain.
Remarks
Section titled “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
Section titled “Example”const { domains } = await client.forecast.listForecastDomains();const trained = domains.filter((d) => d.modelAvailable);Properties
Section titled “Properties”eventSort
Section titled “eventSort”eventSort:
string
Defined in: src/types/forecast.ts:400
KB sort naming the predictable event.
market?
Section titled “market?”
optionalmarket?:string
Defined in: src/types/forecast.ts:406
Implied-price market, when the domain has one.
modelAvailable
Section titled “modelAvailable”modelAvailable:
boolean
Defined in: src/types/forecast.ts:412
Whether a trained artifact is currently loadable for this domain.
name:
string
Defined in: src/types/forecast.ts:394
Domain name (the {domain} path segment).
outcome
Section titled “outcome”outcome:
string
Defined in: src/types/forecast.ts:397
Outcome shape tag (grouped_rank, cross_section, binary, scalar, …).
participantLink?
Section titled “participantLink?”
optionalparticipantLink?:string
Defined in: src/types/forecast.ts:403
KB sort naming the competitor↔event link (grouped outcomes).
psiTerm
Section titled “psiTerm”psiTerm:
string
Defined in: src/types/forecast.ts:409
The homoiconic prediction_domain(...) Ψ-term this descriptor renders to.