AxAgentOptimizeOptions
type AxAgentOptimizeOptions<_IN, _OUT> = object & Pick<AxOptimizerArgs,
| "numTrials"
| "minibatch"
| "minibatchSize"
| "earlyStoppingTrials"
| "minImprovementThreshold"
| "sampleCount"
| "seed">;Type declaration
| Name | Type | Description |
|---|---|---|
apply? | boolean | - |
bootstrap? | | boolean | AxGEPABootstrapOptions | - |
debugOptimizer? | boolean | - |
judgeAI? | Readonly<AxAIService> | Optional separate judge model. Defaults to the agent’s judgeAI, then teacherAI, then the student model. |
judgeOptions? | AxAgentJudgeOptions | - |
maxMetricCalls? | number | - |
metric? | AxMetricFn | Optional deterministic scorer. If omitted, optimize() uses the built-in LLM judge. |
onEarlyStop()? | (reason: string, stats: Readonly<AxOptimizationStats>) => void | - |
onProgress()? | (progress: Readonly<AxOptimizationProgress>) => void | - |
optimizerLogger? | AxOptimizerLoggerFunction | - |
studentAI? | Readonly<AxAIService> | - |
target? | AxAgentOptimizeTarget | Optional optimization scope. Defaults to 'actor'. |
teacherAI? | Readonly<AxAIService> | - |
verbose? | boolean | - |
Type Parameters
| Type Parameter | Default type |
|---|---|
_IN extends AxGenIn | AxGenIn |
_OUT extends AxGenOut | AxGenOut |