AxOptimizedProgramImpl
Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/optimizer.ts#L859
Type Parameters
| Type Parameter | Default type |
|---|---|
OUT | any |
Implements
AxOptimizedProgram<OUT>
Constructors
Constructor
new AxOptimizedProgramImpl<OUT>(config: object): AxOptimizedProgramImpl<OUT>;Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/optimizer.ts#L887
Parameters
| Parameter | Type |
|---|---|
config | { artifactFormatVersion?: number; bestScore: number; componentMap?: Record<string, string>; configurationHistory?: Record<string, unknown>[]; converged: boolean; demos?: AxProgramDemos<any, OUT>[]; examples?: AxExample[]; instructionSchema?: string; modelConfig?: { [key: string]: unknown; frequencyPenalty?: number; maxTokens?: number; presencePenalty?: number; stop?: string | string[]; temperature?: number; topK?: number; topP?: number; }; optimizationTime: number; optimizerType: string; scoreHistory?: number[]; selectorState?: Record<string, AxGEPAComponentBanditState>; stats: AxOptimizationStats; totalRounds: number; } |
config.artifactFormatVersion? | number |
config.bestScore | number |
config.componentMap? | Record<string, string> |
config.configurationHistory? | Record<string, unknown>[] |
config.converged | boolean |
config.demos? | AxProgramDemos<any, OUT>[] |
config.examples? | AxExample[] |
config.instructionSchema? | string |
config.modelConfig? | { [key: string]: unknown; frequencyPenalty?: number; maxTokens?: number; presencePenalty?: number; stop?: string | string[]; temperature?: number; topK?: number; topP?: number; } |
config.modelConfig.frequencyPenalty? | number |
config.modelConfig.maxTokens? | number |
config.modelConfig.presencePenalty? | number |
config.modelConfig.stop? | string | string[] |
config.modelConfig.temperature? | number |
config.modelConfig.topK? | number |
config.modelConfig.topP? | number |
config.optimizationTime | number |
config.optimizerType | string |
config.scoreHistory? | number[] |
config.selectorState? | Record<string, AxGEPAComponentBanditState> |
config.stats | AxOptimizationStats |
config.totalRounds | number |
Returns
AxOptimizedProgramImpl<OUT>
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
artifactFormatVersion? | readonly | number | - |
bestScore | readonly | number | - |
componentMap? | readonly | Record<string, string> | Generic component map produced by reflective optimizers (e.g. GEPA). Keys follow the ${programId}::${kind}[:${subKey}] grammar from AxOptimizableComponent. Applied via program.applyOptimizedComponents. |
configurationHistory? | readonly | Record<string, unknown>[] | - |
converged | readonly | boolean | - |
demos? | readonly | AxProgramDemos<any, OUT>[] | - |
examples? | readonly | AxExample[] | - |
instructionSchema? | readonly | string | - |
modelConfig? | readonly | object | - |
modelConfig.frequencyPenalty? | public | number | - |
modelConfig.maxTokens? | public | number | - |
modelConfig.presencePenalty? | public | number | - |
modelConfig.stop? | public | string | string[] | - |
modelConfig.temperature? | public | number | - |
modelConfig.topK? | public | number | - |
modelConfig.topP? | public | number | - |
optimizationTime | readonly | number | - |
optimizerType | readonly | string | - |
scoreHistory? | readonly | number[] | - |
selectorState? | readonly | Record<string, AxGEPAComponentBanditState> | - |
stats | readonly | AxOptimizationStats | - |
totalRounds | readonly | number | - |
Methods
applyTo()
applyTo<IN, T>(program: AxGen<IN, T>): void;Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/optimizer.ts#L921
Type Parameters
| Type Parameter |
|---|
IN |
T extends AxGenOut |
Parameters
| Parameter | Type |
|---|---|
program | AxGen<IN, T> |
Returns
void