Spaces:
Paused
Paused
Download schemas/system.py from TeamError404/nexus: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/spaces/TeamError404/nexus/resolve/main/schemas/system.py
- Command line
-
hf download hf://spaces/TeamError404/nexus/schemas/system.py
-
curl -L -o system.py https://huggingface.co/spaces/TeamError404/nexus/resolve/main/schemas/system.py
1.2 kB
| from typing import Optional, List, Dict, Any | |
| from uuid import UUID | |
| from datetime import datetime | |
| from pydantic import BaseModel, ConfigDict | |
| from models.meta_infra_health import ServiceStatus | |
| class AIWorkflowRead(BaseModel): | |
| """Schema for reading AI Workflow traces in the monitor.""" | |
| id: UUID | |
| entity_id: UUID | |
| workflow_type: str | |
| current_stage: str | |
| steps: List[Dict[str, Any]] | |
| total_duration_ms: float | |
| updated_at: datetime | |
| model_config = ConfigDict(from_attributes=True) | |
| class AIInteractionRead(BaseModel): | |
| """Schema for granular agent interactions (raw node traces).""" | |
| id: UUID | |
| ticket_id: Optional[UUID] | |
| agent_name: str | |
| status: str | |
| duration_ms: Optional[Dict[str, Any]] = None | |
| input_data: Dict[str, Any] | |
| output_data: Dict[str, Any] | |
| created_at: datetime | |
| model_config = ConfigDict(from_attributes=True) | |
| class MetaInfraHealthRead(BaseModel): | |
| """Schema for reading historical infrastructure health records.""" | |
| id: UUID | |
| service_name: str | |
| status: ServiceStatus | |
| latency_ms: float | |
| metrics: Optional[Dict[str, Any]] = None | |
| created_at: datetime | |
| model_config = ConfigDict(from_attributes=True) | |