pixano_inference.schemas.base
Pydantic base models for request and response.
BaseRequest(**data)
Bases: _BaseModel, ABC
Base request model.
Attributes:
| Name | Type | Description |
|---|---|---|
model |
str
|
Name of the model. |
Source code in pydantic/main.py
to_base_model(base_model)
Convert request to input type.
Source code in pixano_inference/schemas/base.py
BaseResponse(**data)
Bases: _BaseModel, ABC
Base response envelope.
Attributes:
| Name | Type | Description |
|---|---|---|
id |
str
|
ID of the task. |
status |
str
|
Status of the task. |
timestamp |
datetime
|
Timestamp of the response. |
processing_time |
float
|
Processing time of the response. |
metadata |
dict[str, Any]
|
Metadata of the response. |
data |
Any
|
Task-specific output payload. |