MCPcopy Index your code
hub / github.com/simstudioai/sim / isRetryableErrorType

Function isRetryableErrorType

apps/sim/lib/knowledge/documents/utils.ts:37–42  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

35}
36
37function isRetryableErrorType(error: unknown): error is RetryableError {
38 if (!error) return false
39 if (error instanceof Error) return true
40 if (typeof error === 'object' && ('status' in error || 'message' in error)) return true
41 return false
42}
43
44/**
45 * Default retry condition for rate limiting errors

Callers 1

isRetryableErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected