isToolPairingProviderError function
Whether a provider errorMessage belongs to the tool-pairing error
family (the loop uses this to trigger the one-shot repair-and-retry).
Implementation
bool isToolPairingProviderError(String? errorMessage) {
if (errorMessage == null || errorMessage.isEmpty) return false;
final normalized = errorMessage.toLowerCase();
for (final signature in _pairingErrorSignatures) {
if (normalized.contains(signature)) return true;
}
return false;
}