AxBalancerOptions Generated TypeScript API reference. typescript api api/reference build/apidocs/TypeAlias.AxBalancerOptions.md type AxBalancerOptions

AxBalancerOptions

TypeScript
type AxBalancerOptions<TModelKey> = object;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/balance.ts#L48

Options for the balancer.

Type Parameters

Type ParameterDefault type
TModelKeystring

Properties

comparator()?

TypeScript
optional comparator: (a: AxAIService<unknown, unknown, TModelKey>, b: AxAIService<unknown, unknown, TModelKey>) => number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/balance.ts#L49

Parameters

ParameterType
aAxAIService<unknown, unknown, TModelKey>
bAxAIService<unknown, unknown, TModelKey>

Returns

number


debug?

TypeScript
optional debug: boolean;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/balance.ts#L53


initialBackoffMs?

TypeScript
optional initialBackoffMs: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/balance.ts#L54


maxBackoffMs?

TypeScript
optional maxBackoffMs: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/balance.ts#L55


maxRetries?

TypeScript
optional maxRetries: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/ai/balance.ts#L56

Docs