runs and jobs [LET-4634] (#5427)
runs and jobs Co-authored-by: Ari Webb <ari@letta.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user