Ask a question to get started
Enter to sendā¢Shift+Enter new line
handle_tool_error( error: Exception, tool_name: str, operation: str, query: Optional
error
Exception
The exception that occurred
tool_name
str
Name of the tool that failed
operation
Description of the operation (e.g., "analyze sentiment")
query
Optional[str]
None
logger_instance
Optional[logging.Logger]
Handle tool execution errors with standardized format.
Original query/input if applicable
Specific logger to use