MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / shouldStop

Function shouldStop

packages/providers/src/retry.ts:286–288  ·  view source on GitHub ↗
(decision: RetryDecision, attempt: number, maxRetries: number)

Source from the content-addressed store, hash-verified

284}
285
286function shouldStop(decision: RetryDecision, attempt: number, maxRetries: number): boolean {
287 return !decision.retry || attempt >= maxRetries;
288}
289
290export interface BackoffOptions {
291 /** Total attempts (initial + retries). Default 3. */

Callers 2

withBackoffFunction · 0.85
completeWithRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected