Start fixing forecast service API 3
This commit is contained in:
@@ -24,14 +24,7 @@ class ForecastRequest(BaseModel):
|
||||
"""Request schema for generating forecasts"""
|
||||
tenant_id: str = Field(..., description="Tenant ID")
|
||||
product_name: str = Field(..., description="Product name")
|
||||
location: str = Field(..., description="Location identifier")
|
||||
forecast_date: date = Field(..., description="Date for which to generate forecast")
|
||||
business_type: BusinessType = Field(BusinessType.INDIVIDUAL, description="Business model type")
|
||||
|
||||
# Optional context
|
||||
include_weather: bool = Field(True, description="Include weather data in forecast")
|
||||
include_traffic: bool = Field(True, description="Include traffic data in forecast")
|
||||
confidence_level: float = Field(0.8, ge=0.5, le=0.95, description="Confidence level for intervals")
|
||||
|
||||
@validator('forecast_date')
|
||||
def validate_forecast_date(cls, v):
|
||||
|
||||
Reference in New Issue
Block a user