Buckets:
| from __future__ import annotations | |
| from typing import Any | |
| REQUIRED_FIELDS = { | |
| "dataset_manifest": ["dataset_manifest_id", "dataset_name", "license_status", "schema", "splits"], | |
| "model_manifest": ["model_id", "base_model", "base_strategy", "provider", "train_mode", "evaluation", "lineage"], | |
| "run_manifest": ["run_id", "model_candidate", "execution", "created_at"], | |
| "deployment_manifest": ["deployment_id", "run_id", "env", "infer_provider", "status"], | |
| "promotion_manifest": ["run_id", "env", "status", "approvals", "rollback_target"], | |
| } | |
| def validate_manifest(manifest_type: str, payload: dict[str, Any]) -> list[str]: | |
| errors: list[str] = [] | |
| for field in REQUIRED_FIELDS.get(manifest_type, []): | |
| if field not in payload: | |
| errors.append(f"missing required field: {field}") | |
| return errors | |
Xet Storage Details
- Size:
- 841 Bytes
- Xet hash:
- 0f3d45cb6ca87be8c3727a3f228ada6f646e7d70421f9f061345838cffeee22e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.