UNPKG

ai-utils.js

Version:

Build AI applications, chatbots, and agents with JavaScript and TypeScript.

8 lines (7 loc) 276 B
import { ThrottleFunction } from "./ThrottleFunction.js"; /** * The `throttleMaxConcurrency` strategy limits the number of parallel API calls. */ export declare function throttleMaxConcurrency({ maxConcurrentCalls, }: { maxConcurrentCalls: number; }): ThrottleFunction;