Files
letta-server/letta/functions/mcp_client/exceptions.py
Kian Jones b8e9a80d93 merge this (#4759)
* wait I forgot to comit locally

* cp the entire core directory and then rm the .git subdir
2025-09-17 15:47:40 -07:00

7 lines
313 B
Python

class MCPTimeoutError(RuntimeError):
"""Custom exception raised when an MCP operation times out."""
def __init__(self, operation: str, server_name: str, timeout: float):
message = f"Timed out while {operation} for MCP server {server_name} (timeout={timeout}s)."
super().__init__(message)