underlyingError The underlying error that was thrown during a tool call. Declarationvar underlyingError: any Error