AxBalancerOptions
type AxBalancerOptions<TModelKey> = object;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/balance.ts#L42
Options for the balancer.
Type Parameters
Type Parameter | Default type |
---|---|
TModelKey | string |
Properties
comparator()?
optional comparator: (a: AxAIService<unknown, unknown, TModelKey>, b: AxAIService<unknown, unknown, TModelKey>) => number;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/balance.ts#L43
Parameters
Parameter | Type |
---|---|
a | AxAIService <unknown , unknown , TModelKey > |
b | AxAIService <unknown , unknown , TModelKey > |
Returns
number
debug?
optional debug: boolean;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/balance.ts#L47
initialBackoffMs?
optional initialBackoffMs: number;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/balance.ts#L48
maxBackoffMs?
optional maxBackoffMs: number;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/balance.ts#L49
maxRetries?
optional maxRetries: number;
Defined in: https://github.com/ax-llm/ax/blob/8dfd0ce02b8cb386fb2c93fa280a2ec0da2d6011/src/ax/ai/balance.ts#L50