Model/backend/app/modelling/schemas.py
Khalim Conn-Kowlessar 489e2b5d47 Trigger-run fans out one sub_task and message per scenario batch 🟥
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 12:02:12 +00:00

18 lines
603 B
Python

"""Request contract for the Modelling Run Distributor (ADR-0055/0056)."""
from uuid import UUID
from pydantic import BaseModel
from backend.app.modelling.property_filters import PropertyGroupFilters
class TriggerRunRequest(BaseModel):
"""Exactly what the app sends: the app-created task, the portfolio scope,
the scenarios to model, and the property-group filters ({} = everything).
Anything else the distributor might want is readable from the task row."""
task_id: UUID
portfolio_id: int
scenario_ids: list[int]
filters: PropertyGroupFilters = PropertyGroupFilters()