Handler called when tool execution throws.
Return content to surface the error to the model as an error ToolMessage.
Return nothing to propagate the original error.
ToolErrorHandler: (
error: unknown,
request: ToolCallRequest
) => MessageContent | void | Promise<MessageContent | void>