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
13 lines • 446 B
TypeScript
/**
* Bulkhead Pattern - Resource isolation with concurrency control
*/
import { BulkheadOptions, BulkheadStats } from "../types/bulkhead";
/**
* Define a bulkhead with Vercel-style callable API
*/
export declare function defineBulkhead<TResult = any>(options: BulkheadOptions<TResult>): {
(): Promise<TResult>;
getStats(): BulkheadStats;
};
export declare const bulkhead: typeof defineBulkhead;
//# sourceMappingURL=bulkhead.d.ts.map