@nomyx/assistant
Version:
A powerful assistant library and cli for your AI projects. works with Vertex AI (Claude and Gemini)
9 lines (8 loc) • 337 B
TypeScript
import { RetryStrategy } from '../types';
export declare class ExponentialBackoffRetryStrategy implements RetryStrategy {
private maxRetries;
private baseDelay;
constructor(maxRetries?: number, baseDelay?: number);
shouldRetry(error: Error, attemptNumber: number): boolean;
getDelay(attemptNumber: number): number;
}