Ask a question to get started
Enter to send•Shift+Enter new line
AOnError = Callable[[Exception, ToolCallRequest], Awaitable[str | list[ContentBlock] | None]]
Async handler: return content to surface the error as a ToolMessage; return None (or nothing) to let the exception propagate.
ToolMessage
None