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

AxAgentOptimizeOptions

TypeScript
type AxAgentOptimizeOptions<_IN, _OUT> = object & Pick<AxOptimizerArgs, 
  | "numTrials"
  | "minibatch"
  | "minibatchSize"
  | "earlyStoppingTrials"
  | "minImprovementThreshold"
  | "sampleCount"
| "seed">;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/agent/agentInternal/agentOptimizeTypes.ts#L115

Type declaration

NameTypeDescription
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?AxMetricFnOptional 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?AxAgentOptimizeTargetOptional optimization scope. Defaults to 'actor'.
teacherAI?Readonly<AxAIService>-
verbose?boolean-

Type Parameters

Type ParameterDefault type
_IN extends AxGenInAxGenIn
_OUT extends AxGenOutAxGenOut
Docs