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/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/agent/agentInternal/agentOptimizeTypes.ts#L126

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-
mcpEvaluation?| Readonly<{ mcp?: | AxMCPClient | readonly AxMCPClient[]; mode: "replay"; ucp?: | AxUCPClient | readonly AxUCPClient[]; }> | Readonly<{ mcp?: | AxMCPClient | readonly AxMCPClient[]; mode: "live"; ucp?: | AxUCPClient | readonly AxUCPClient[]; }>Evaluation defaults to replay/sandbox clients. Live mode must be explicit because optimizers evaluate the same task repeatedly.
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