1 parent d301b63 commit 044076eCopy full SHA for 044076e
1 file changed
src/utils/agents/error_handler.py
@@ -1,7 +1,5 @@
1
"""Error mapping for agent inference failures to structured API error responses."""
2
3
-from typing import TypeAlias
4
-
5
from ogx_client import APIConnectionError, APIStatusError
6
from pydantic_ai.exceptions import (
7
AgentRunError,
@@ -26,7 +24,7 @@
26
24
is_context_length_error,
27
25
)
28
29
-AgentInferenceError: TypeAlias = (
+type AgentInferenceError = (
30
AgentRunError | APIStatusError | APIConnectionError | RuntimeError
31
32
0 commit comments