Ask a question to get started
Enter to sendā¢Shift+Enter new line
Handle REST API errors specifically.
handle_rest_api_error( error: Exception, tool_name: str, operation: str, endpoint: Optional[str] = None, logger_instance: Optional[logging.Logger] = None ) -> str
error
Exception
The REST API exception that occurred
tool_name
str
Name of the tool making the API call
operation
Description of the operation
endpoint
Optional[str]
None
API endpoint if applicable
logger_instance
Optional[logging.Logger]
Specific logger to use