StaticanalyzeAnalyzes an error from an AI provider and returns standardized error information. This method extracts relevant details from provider-specific error formats and maps them to a consistent structure for easier handling.
The error object thrown by the provider SDK
OptionalproviderName: stringOptional name of the provider for context
Standardized error information
Utility class for analyzing errors from various AI providers and mapping them to standardized error information. This class provides a consistent way to interpret errors across different provider SDKs.
ErrorAnalyzer
Since
2.47.0
Example