AxRateLimiterFunction
type AxRateLimiterFunction = <T>(reqFunc: () => Promise<T | ReadableStream<T>>, info: Readonly<{
modelUsage?: AxModelUsage;
}>) => Promise<T | ReadableStream<T>>;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/types.ts#L347
Type Parameters
Type Parameter | Default type |
---|---|
T | unknown |
Parameters
Parameter | Type |
---|---|
reqFunc | () => Promise <T | ReadableStream <T >> |
info | Readonly <{ modelUsage? : AxModelUsage ; }> |
Returns
Promise
<T
| ReadableStream
<T
>>