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

AxOptimizableValidator

TypeScript
type AxOptimizableValidator = (value: string) => true | string;

Defined in: https://github.com/ax-llm/ax/blob/5b28f9093bb70863b59459bb6df5062d005bce41/src/ax/dsp/optimizable.ts#L11

Generic component-optimization surface that any AxProgrammable can implement.

GEPA (and any future reflective optimizer) discovers what can be optimized by calling getOptimizableComponents() on a program tree, mutates the returned string values, and broadcasts the updates back via applyOptimizedComponents(). The optimizer learns nothing about specific artifact kinds — each program owns its own dispatch and tree traversal.

Parameters

ParameterType
valuestring

Returns

true | string

Docs