get_scenario_results
Retrieve scenario prediction results and status. Use run_id to fetch a specific saved run and check completion, avoiding overwrites from newer scenarios.
Instructions
Get scenario prediction results.
Without run_id: returns the MODEL-LEVEL scenario state — status (pending/complete/failed) and, when complete, the full prediction data including predicted KPI per period, channel contributions, confidence intervals, and base components (intercept, seasonality, trend). This reflects the LATEST scenario on the model — a newer run overwrites it, so a poller can lose sight of the run it submitted.
With run_id (run_scenario's response includes it): fetches that specific
saved run, immune to later runs — keys include run_id, model_hash,
name, status, pinned, notes, tags, key_metrics, timestamps,
inputs (the submitted payload), and results. Poll THIS form when you
need to know whether your own run completed, or to disambiguate
back-to-back scenarios.
NOTE: Failed scenarios return status "failed" with an error message in the JSON body (not an HTTP error). Always check the status field.
Args: model_hash: Hash of the model the scenario was run on. run_id: Optional scenario run id ("scn_..."), from run_scenario's response or list_runs(artifact="scenario").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | No | ||
| model_hash | Yes |