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/b50783a160295ce34ac10dcaf3bd8fff4a01d535/src/ax/ai/types.ts#L360
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>>