Skip to content

Commit 55e45ca

Browse files
committed
fix(models): use StrEnum for error enums
1 parent 1e6ccf0 commit 55e45ca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎models/src/agent_control_models/errors.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434
"""
3535

3636
from datetime import UTC, datetime
37-
from enum import Enum
37+
from enum import StrEnum
3838
from typing import Any
3939

4040
from pydantic import Field
4141

4242
from .base import BaseModel
4343

4444

45-
class ErrorCode(str, Enum):
45+
class ErrorCode(StrEnum):
4646
"""
4747
Standardized error codes following OPA-style semantic naming.
4848
@@ -87,7 +87,7 @@ class ErrorCode(str, Enum):
8787
EVALUATION_FAILED = "EVALUATION_FAILED"
8888

8989

90-
class ErrorReason(str, Enum):
90+
class ErrorReason(StrEnum):
9191
"""
9292
Kubernetes-style reason codes for error categorization.
9393

0 commit comments

Comments
 (0)