AxBalancerCostContext
type AxBalancerCostContext<TModelKey> = Readonly<{
expectedTokens: | AxBalancerExpectedTokens
| undefined;
logicalModel: string;
resolvedModel: string;
routeKey: string;
service: AxAIService<unknown, unknown, TModelKey>;
serviceIndex: number;
}>;Defined in: https://github.com/ax-llm/ax/blob/781623e58befc00a555cf73ccbac598a72bb700c/src/ax/ai/balance_adaptive.ts#L82
Context supplied when overriding a route’s estimated request cost.
Type Parameters
| Type Parameter | Default type |
|---|---|
TModelKey | string |