21 lines
820 B
Python
21 lines
820 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from typing import Any
|
||
|
|
|
||
|
|
from pydantic import BaseModel, Field
|
||
|
|
|
||
|
|
|
||
|
|
class SystemDashboardRead(BaseModel):
|
||
|
|
window_days: int
|
||
|
|
generated_at: str
|
||
|
|
has_real_data: bool
|
||
|
|
totals: dict[str, Any] = Field(default_factory=dict)
|
||
|
|
agent_daily_ratio: dict[str, Any] = Field(default_factory=dict)
|
||
|
|
login_wave: dict[str, Any] = Field(default_factory=dict)
|
||
|
|
token_daily_wave: dict[str, Any] = Field(default_factory=dict)
|
||
|
|
user_token_usage: list[dict[str, Any]] = Field(default_factory=list)
|
||
|
|
accuracy_comparison: dict[str, Any] = Field(default_factory=dict)
|
||
|
|
usage_duration_summary: dict[str, Any] = Field(default_factory=dict)
|
||
|
|
feedback_summary: list[dict[str, Any]] = Field(default_factory=list)
|
||
|
|
tool_detail_rows: list[dict[str, Any]] = Field(default_factory=list)
|