MCPcopy Create free account
hub / github.com/apache/maka / providerErrorTarget

Function providerErrorTarget

packages/runtime/src/provider-error-classification.ts:75–79  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

73]);
74
75function providerErrorTarget(error: unknown): unknown {
76 return RetryError.isInstance(error) && error.lastError !== undefined && error.lastError !== error
77 ? error.lastError
78 : error;
79}
80
81function responseHeadersFromError(error: unknown): Record<string, string> | undefined {
82 if (typeof error !== 'object' || error === null) return undefined;

Callers 2

normalizeProviderErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected