Use this route to update online adaptive policy state and read prediction.<output_key> in the same response.
This is not the normal domain-event route. POST /api/v1/domains/{domain_id}/events records a domain event; POST /api/v1/domains/{domain_id}/adapt/events updates an adaptive policy and returns its current structured prediction.
Request body
The keys inside values must match the domain’s query_templates.adaptive_interval_policy field mapping.
Response shape
The key under prediction comes from the template’s exact output_key. Policy thresholds determine when rows appear; an empty array can be a valid current prediction.
Operational notes
- Send observations in their real order.
- Use one writer per domain/session unless interleaving is intended.
- Keep a stable
event_id for auditable retries.
- Use
POST /api/v1/domains/{domain_id}/adapt/predict to read current state without adding an observation.
- Generated language is not required to use the structured prediction.