enums.py
1 """ 2 Enumerations used throughout the application. 3 """ 4 5 from enum import Enum 6 7 8 class SenderType(str, Enum): 9 """Types of message senders.""" 10 USER = "user" 11 AGENT = "agent" 12 SYSTEM = "system" 13 14 15 class TaskStatus(str, Enum): 16 """Task execution status.""" 17 PENDING = "pending" 18 RUNNING = "running" 19 COMPLETED = "completed" 20 FAILED = "failed" 21 CANCELLED = "cancelled" 22 23 24 25 26 class MessageType(str, Enum): 27 """Types of messages.""" 28 TEXT = "text" 29 FILE = "file" 30 IMAGE = "image" 31 DOCUMENT = "document" 32 33 34 class ValidationErrorType(str, Enum): 35 """Types of validation errors.""" 36 REQUIRED_FIELD = "required_field" 37 INVALID_FORMAT = "invalid_format" 38 OUT_OF_RANGE = "out_of_range" 39 DUPLICATE_VALUE = "duplicate_value" 40 BUSINESS_RULE = "business_rule"