Delete ai_event.py
Browse files- ai_event.py +0 -20
ai_event.py
DELETED
|
@@ -1,20 +0,0 @@
|
|
| 1 |
-
from datetime import datetime
|
| 2 |
-
from typing import Optional, List, Literal
|
| 3 |
-
from pydantic import Field
|
| 4 |
-
from agentic_reliability_framework.core.models.event import ReliabilityEvent
|
| 5 |
-
|
| 6 |
-
class AIEvent(ReliabilityEvent):
|
| 7 |
-
"""Extended event for AI system monitoring across multiple modalities (text, image, audio, etc.)."""
|
| 8 |
-
action_category: Literal["chat", "code", "summary", "image", "audio", "iot"] = Field(
|
| 9 |
-
..., description="Type of AI task or domain"
|
| 10 |
-
)
|
| 11 |
-
model_name: str = Field(..., description="Identifier of the AI model used")
|
| 12 |
-
model_version: str = Field(..., description="Version/tag of the model")
|
| 13 |
-
prompt: str = Field(..., description="Input prompt/query")
|
| 14 |
-
response: str = Field(..., description="Generated response")
|
| 15 |
-
response_length: int = Field(ge=0, description="Number of tokens/characters")
|
| 16 |
-
confidence: float = Field(ge=0, le=1, description="Model's confidence score (if available)")
|
| 17 |
-
perplexity: Optional[float] = Field(None, ge=0, description="Perplexity/entropy measure")
|
| 18 |
-
retrieval_scores: Optional[List[float]] = Field(None, description="Similarity scores of retrieved documents")
|
| 19 |
-
user_feedback: Optional[bool] = Field(None, description="User thumbs up/down")
|
| 20 |
-
latency_ms: float = Field(ge=0, description="Response generation time in milliseconds")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|