chore: add sleeptime example + better error handling + upgrade client SDK (#1809)

This commit is contained in:
Sarah Wooders
2025-04-21 00:09:50 -07:00
committed by GitHub
parent 1f98ddf3de
commit 55c3fbba3f
10 changed files with 228 additions and 33 deletions

View File

@@ -204,3 +204,13 @@ class InvalidInnerMonologueError(LettaMessageError):
"""Error raised when a message has a malformed inner monologue."""
default_error_message = "The message has a malformed inner monologue."
class HandleNotFoundError(LettaError):
"""Error raised when a handle is not found."""
def __init__(self, handle: str, available_handles: List[str]):
super().__init__(
message=f"Handle {handle} not found, must be one of {available_handles}",
code=ErrorCode.NOT_FOUND,
)