phase 1
This commit is contained in:
31
core/schema/models/detect_api.py
Normal file
31
core/schema/models/detect_api.py
Normal file
@@ -0,0 +1,31 @@
|
||||
"""
|
||||
Detection API request/response models.
|
||||
|
||||
Source of truth for detection pipeline API shapes.
|
||||
Generated to Pydantic via modelgen.
|
||||
"""
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
|
||||
@dataclass
|
||||
class RunRequest:
|
||||
"""Request body for launching a detection pipeline run."""
|
||||
video_path: str # storage key
|
||||
profile_name: str = "soccer_broadcast"
|
||||
source_asset_id: str = ""
|
||||
checkpoint: bool = True
|
||||
skip_vlm: bool = False
|
||||
skip_cloud: bool = False
|
||||
log_level: str = "INFO" # INFO | DEBUG
|
||||
|
||||
|
||||
@dataclass
|
||||
class RunResponse:
|
||||
"""Response after starting a pipeline run."""
|
||||
status: str
|
||||
job_id: str
|
||||
video_path: str
|
||||
|
||||
|
||||
DETECT_API_VIEWS = [RunRequest, RunResponse]
|
||||
Reference in New Issue
Block a user