Type Alias: ForecastBody
@kortexya/reasoninglayer / ForecastBody
Type Alias: ForecastBody
Section titled “Type Alias: ForecastBody”ForecastBody =
object&GroupedRankForecast|object&CrossSectionForecast
Defined in: src/types/forecast.ts:246
The domain-shaped prediction carried by a committed forecast.
Remarks
Section titled “Remarks”A union discriminated by shape — one variant per outcome shape. Switch on
shape to reach the shape-specific payload.
Example
Section titled “Example”switch (forecast.body.shape) { case 'grouped_rank': console.log(forecast.body.competitors); break; case 'cross_section': console.log(forecast.body.ranked); break;}