UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

10 lines 502 B
export interface FetchWithRetryOptions { shouldRetryResponse?: (response: Response) => boolean; } /** * Performs a fetch request with automatic retries using exponential backoff. * Network failures are always retried. Non-OK responses are retried unless * `shouldRetryResponse` returns false. */ export declare function fetchWithRetry(url: string, options?: RequestInit, maxRetries?: number, retryOptions?: FetchWithRetryOptions): Promise<Response>; //# sourceMappingURL=fetchWithRetry.d.ts.map