Spaces:
Runtime error
Runtime error
Update ai_event.py
Browse files- ai_event.py +5 -2
ai_event.py
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
from datetime import datetime
|
| 2 |
-
from typing import Optional, List,
|
| 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."""
|
|
|
|
|
|
|
|
|
|
| 8 |
model_name: str = Field(..., description="Identifier of the AI model used")
|
| 9 |
model_version: str = Field(..., description="Version/tag of the model")
|
| 10 |
prompt: str = Field(..., description="Input prompt/query")
|
|
|
|
| 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")
|