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

AxBestOfNOptions

TypeScript
type AxBestOfNOptions<IN, OUT> = object;

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

Type Parameters

Type Parameter
IN
OUT extends AxGenOut

Properties

failCount?

TypeScript
optional failCount: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/refine.ts#L59


modelConfig?

TypeScript
optional modelConfig: Partial<AxModelConfig>;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/refine.ts#L60


n

TypeScript
n: number;

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


onAttempt()?

TypeScript
optional onAttempt: (attempt: Readonly<AxAttempt<IN, OUT>>) => void | Promise<void>;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/refine.ts#L62

Parameters

ParameterType
attemptReadonly<AxAttempt<IN, OUT>>

Returns

void | Promise<void>


rewardFn

TypeScript
rewardFn: AxRewardFn<IN, OUT>;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/refine.ts#L57


strategy?

TypeScript
optional strategy: AxRefineStrategy;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/refine.ts#L61


threshold?

TypeScript
optional threshold: number;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/refine.ts#L58

Docs