AxAgentPlaybookEvolveOptions
type AxAgentPlaybookEvolveOptions = object;Properties
abortSignal?
optional abortSignal: AbortSignal;apply?
optional apply: boolean;Keep accepted bullets on the live playbook (default). With false, the
playbook is rolled back at the end and the result’s playbookSnapshot
carries the accepted state for a later getPlaybook()?.load(...).
epsilon?
optional epsilon: number;Tolerated held-out drop when accepting a proposal (verify). Default 0.01.
judgeAI?
optional judgeAI: Readonly<AxAIService>;Scores runs via the built-in judge. Resolution mirrors optimize().
judgeOptions?
optional judgeOptions: AxAgentJudgeOptions;maxMetricCalls?
optional maxMetricCalls: number;Budget counting (agent run + judge) pairs across baseline and re-evaluations. Default `max(100, (maxProposals + 1) * (train + validation)
- runsPerTask)`.
maxProposals?
optional maxProposals: number;Maximum weaknesses mined / proposals evaluated. Default 4.
metric?
optional metric: AxMetricFn;Optional deterministic scorer replacing the LLM judge.
minHeldInGain?
optional minHeldInGain: number;Required held-in improvement to accept a proposal (verify). Default 0.05.
onProgress()?
optional onProgress: (event: Readonly<AxAgentPlaybookEvolveProgressEvent>) => void;Parameters
| Parameter | Type |
|---|---|
event | Readonly<AxAgentPlaybookEvolveProgressEvent> |
Returns
void
runsPerTask?
optional runsPerTask: number;Times each task runs per evaluation, with scores averaged. Default 1. Use 2-3 when the dataset is small: accept/reject compares mean scores, and on a handful of tasks a single lucky or unlucky run can otherwise decide the gate. Each repeat spends budget.
scoreThreshold?
optional scoreThreshold: number;Records scoring below this count as failures for mining. Default 0.7.
studentAI?
optional studentAI: Readonly<AxAIService>;Runs the agent during evaluation. Defaults to the agent’s ai.
teacherAI?
optional teacherAI: Readonly<AxAIService>;Mines weaknesses. Defaults to judgeAI, then the student.
teacherOptions?
optional teacherOptions: AxAIServiceOptions;AI service options for the weakness miner’s calls. Set
useExpensiveModel: 'yes' for a teacher marked isExpensive. The
reflection and curation calls that apply each proposal use the
playbook’s own teacherOptions (from agent.playbook(...) or the
playbook config).
verbose?
optional verbose: boolean;verify?
optional verify: boolean;Keep only proposals that provably help — re-score train + held-out after
each candidate bullet and accept only on a held-in gain without a
held-out regression, else roll it back. Default true. With false,
mined lessons are applied without the gate (fast trust-batch).