UNPKG

ai-patterns

Version:

Production-ready TypeScript patterns to build solid and robust AI applications. Retry logic, circuit breakers, rate limiting, human-in-the-loop escalation, prompt versioning, response validation, context window management, and more—all with complete type

10 lines 394 B
/** * Retry Pattern - Automatically retry failed operations with intelligent backoff */ import { RetryOptions, RetryResult, RetryPredicates } from "../types/retry"; export { RetryPredicates }; /** * Retry Pattern - Execute function with retry logic */ export declare function retry<TResult>(options: RetryOptions<TResult>): Promise<RetryResult<TResult>>; //# sourceMappingURL=retry.d.ts.map