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

AxPlaybookOptions

TypeScript
type AxPlaybookOptions = object;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/playbook.ts#L21

Options for playbook.

A playbook grows an evolving body of task knowledge (“context engineering”) and renders it into a program’s context. The underlying evolution engine is an implementation detail (currently ACE — the Agentic Context Engineering loop) and is intentionally absent from this surface, mirroring how optimize hides its optimizer.

Properties

allowDynamicSections?

TypeScript
optional allowDynamicSections: boolean;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/playbook.ts#L41

Allow the playbook to grow new sections on its own.


auto?

TypeScript
optional auto: "light" | "medium" | "heavy";

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/playbook.ts#L45

Intensity preset applied at construction.


initialPlaybook?

TypeScript
optional initialPlaybook: AxACEPlaybook;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/playbook.ts#L43

Seed the playbook with existing content.


maxEpochs?

TypeScript
optional maxEpochs: number;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/playbook.ts#L35

Max passes over the dataset during AxPlaybook.evolve.


maxReflectorRounds?

TypeScript
optional maxReflectorRounds: number;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/playbook.ts#L37

Max reflection refinement rounds per example.


maxSectionSize?

TypeScript
optional maxSectionSize: number;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/playbook.ts#L39

Max bullets per section before pruning kicks in.


seed?

TypeScript
optional seed: number;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/playbook.ts#L33


studentAI

TypeScript
studentAI: AxAIService;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/playbook.ts#L23

Model that runs the program while the playbook is grown.


teacherAI?

TypeScript
optional teacherAI: AxAIService;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/playbook.ts#L25

Model used to reflect on rollouts and curate the playbook. Defaults to studentAI.


teacherOptions?

TypeScript
optional teacherOptions: AxAIServiceOptions;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/playbook.ts#L31

AI service options for the reflection and curation calls, including when they fall back to studentAI. Set useExpensiveModel: 'yes' to use a teacher model marked isExpensive.


verbose?

TypeScript
optional verbose: boolean;

Defined in: https://github.com/ax-llm/ax/blob/3d5aa8dac28a2637e4150f022dcd02e6fc3309f0/src/ax/dsp/playbook.ts#L32

Docs