Data models
The SDK relies on Pydantic models to validate payloads. Import them fromsimulacrum.models when you need structured access.
ForecastRequest
| Field | Type | Notes |
|---|---|---|
series | list[float] | Automatically normalised from numpy arrays or sequences. |
horizon | int | Must be positive. |
model | str | None | Optional identifier sent to the API. |
model_dump() before sending requests manually.
ForecastResponse
| Field | Type | Notes |
|---|---|---|
forecast | list[float] | Horizon-length values returned by the API. |
model_used | str | Backend model chosen by the service. |
get_forecast() to convert the list into a numpy array for downstream analysis.
ValidateAPIKeyResponse
expires_at is optional and absent when the platform does not expose expiry information.