runs and jobs [LET-4634] (#5427)

runs and jobs

Co-authored-by: Ari Webb <ari@letta.com>
This commit is contained in:
Ari Webb
2025-10-14 14:14:00 -07:00
committed by Caren Thomas
parent 9e94c344b8
commit 4431b06881
4 changed files with 48 additions and 61 deletions

View File

@@ -19,6 +19,7 @@ class ErrorCode(Enum):
RATE_LIMIT_EXCEEDED = "RATE_LIMIT_EXCEEDED"
TIMEOUT = "TIMEOUT"
CONFLICT = "CONFLICT"
EXPIRED = "EXPIRED"
class LettaError(Exception):
@@ -141,6 +142,13 @@ class LettaUnexpectedStreamCancellationError(LettaError):
"""Error raised when a streaming request is terminated unexpectedly."""
class LettaExpiredError(LettaError):
"""Error raised when a resource has expired."""
def __init__(self, message: str):
super().__init__(message=message, code=ErrorCode.EXPIRED)
class LLMError(LettaError):
pass