GEPA, Pareto, artifact, and optimizer APIs.
Advanced / internals / full reference AxAgentDemosDemo traces for AxAgent’s split architecture.
Actor demos use the runtime code field (javascriptCode for JavaScript,
<language>Code for other runtimes such as pythonCode).
Responder demos use the agent’s output type + optional input fields.
Field Value Kind typealiasForm AxAgentDemosSource source
Call Shape type AxAgentDemos < IN , OUT , PREFIX > =
| {
programId : ` ${ PREFIX } .actor` ;
traces : Record < string , AxFieldValue >[];
}
| {
programId : ` ${ PREFIX } .responder` ;
traces : OUT & Partial < IN >[];
}; Full reference
AxAgentOptimizationTargetDescriptorTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxAgentOptimizationTargetDescriptorSource source
Call Shape type AxAgentOptimizationTargetDescriptor = object ; Full reference
AxAgentOptimizeOptionsTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxAgentOptimizeOptionsSource source
Call Shape type AxAgentOptimizeOptions < _IN , _OUT > = object & Pick < AxOptimizerArgs ,
| "numTrials"
| "minibatch"
| "minibatchSize"
| "earlyStoppingTrials"
| "minImprovementThreshold"
| "sampleCount"
| "seed" >; Full reference
AxAgentOptimizeResultTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxAgentOptimizeResultSource source
Call Shape type AxAgentOptimizeResult < OUT > = AxParetoResult < OUT >; Full reference
AxAgentOptimizeTargetTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxAgentOptimizeTargetSource source
Call Shape type AxAgentOptimizeTarget = "actor" | "responder" | "all" | readonly string []; Full reference
AxBaseOptimizerAbstract base class for optimizers that provides common functionality
and standardized handling of AxOptimizerArgs
Field Value Kind classForm AxBaseOptimizerSource source
Call Shape new AxBaseOptimizer ( args : Readonly < AxOptimizerArgs >) : AxBaseOptimizer ; Full reference
AxBootstrapOptimizerOptionsTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxBootstrapOptimizerOptionsSource source
Full reference
axCreateDefaultOptimizerColorLoggerFactory function to create a default optimizer logger with color formatting
Call Shape function axCreateDefaultOptimizerColorLogger ( output : ( message : string ) => void ) : AxOptimizerLoggerFunction ; Arguments And Options Name Type Description output(message: string) => void
Full reference
axCreateDefaultOptimizerTextLoggerFactory function to create a text-only optimizer logger (no colors)
Call Shape function axCreateDefaultOptimizerTextLogger ( output : ( message : string ) => void ) : AxOptimizerLoggerFunction ; Arguments And Options Name Type Description output(message: string) => void
Full reference
axDefaultOptimizerLoggerDefault optimizer logger instance with color formatting
Field Value Kind variableForm axDefaultOptimizerLoggerSource source
Call Shape const axDefaultOptimizerLogger : AxOptimizerLoggerFunction ; Full reference
axDefaultOptimizerMetricsConfigTypeScript variable exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind variableForm axDefaultOptimizerMetricsConfigSource source
Call Shape const axDefaultOptimizerMetricsConfig : AxOptimizerMetricsConfig ; Full reference
axDeserializeOptimizedProgramTypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
Call Shape function axDeserializeOptimizedProgram < OUT >( serialized : Readonly < AxSerializedOptimizedProgram < OUT >>) : AxOptimizedProgramImpl < OUT >; Arguments And Options Full reference
AxGEPAAdapterTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxGEPAAdapterSource source
Call Shape evaluate (
batch : readonly Datum [],
candidate : Readonly < Record < string , string >>,
captureTraces? : boolean ) :
| AxGEPAEvaluationBatch < Traj , Out >
| Promise < AxGEPAEvaluationBatch < Traj , Out >>; Full reference
AxGEPABatchEvaluationTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxGEPABatchEvaluationSource source
Call Shape type AxGEPABatchEvaluation = object ; Full reference
AxGEPABatchRowTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxGEPABatchRowSource source
Call Shape type AxGEPABatchRow = object ; Full reference
AxGEPABootstrapOptionsTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxGEPABootstrapOptionsSource source
Full reference
AxGEPAComponentBanditStateTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxGEPAComponentBanditStateSource source
Call Shape type AxGEPAComponentBanditState = object ; Full reference
AxGEPAComponentSelectorTypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.
Field Value Kind classForm AxGEPAComponentSelectorSource source
Call Shape new AxGEPAComponentSelector ( targets : readonly AxGEPAComponentTarget [], initialState? : Readonly < Record < string , AxGEPAComponentBanditState >>) : AxGEPAComponentSelector ; Full reference
AxGEPAComponentTargetTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxGEPAComponentTargetSource source
Call Shape type AxGEPAComponentTarget = object ; Full reference
AxGEPAEvaluationBatchTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxGEPAEvaluationBatchSource source
Full reference
AxGEPAEvaluationStateTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxGEPAEvaluationStateSource source
Call Shape type AxGEPAEvaluationState = object ; Full reference
AxGEPAOptimizationReportStructured optimization report
Field Value Kind interfaceForm AxGEPAOptimizationReportSource source
Full reference
AxGEPAReflectiveTupleTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxGEPAReflectiveTupleSource source
Call Shape type AxGEPAReflectiveTuple = object ; Full reference
AxGEPATraceSummaryTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxGEPATraceSummarySource source
Call Shape type AxGEPATraceSummary = object ; Full reference
AxGEPATraceSummaryCallTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxGEPATraceSummaryCallSource source
Call Shape type AxGEPATraceSummaryCall = object ; Full reference
axGetOptimizerMetricsConfigTypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
Call Shape function axGetOptimizerMetricsConfig () : AxOptimizerMetricsConfig ; Full reference
AxOptimizationCheckpointTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxOptimizationCheckpointSource source
Full reference
AxOptimizationProgressTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxOptimizationProgressSource source
Full reference
AxOptimizationStatsTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxOptimizationStatsSource source
Full reference
AxOptimizedProgramImplTypeScript class exported by @ax-llm/ax. See the constructor, methods, and full reference below.
Field Value Kind classForm AxOptimizedProgramImplSource source
Call Shape new AxOptimizedProgramImpl < OUT >( config : object ) : AxOptimizedProgramImpl < OUT >; Full reference
AxOptimizeOptionsTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxOptimizeOptionsSource source
Call Shape type AxOptimizeOptions = AxOptimizerArgs & Omit < AxCompileOptions , "bootstrap" > & object ; Full reference
AxOptimizerInterface for optimizing AI programs through automated prompt tuning.
Field Value Kind interfaceForm AxOptimizerSource source
Call Shape const optimizer = new AxBootstrapFewShot ({ maxDemos : 4 });
const result = await optimizer . compile (
program ,
trainingExamples ,
({ prediction , example }) => prediction . answer === example . expectedAnswer ? 1 : 0
);
// Apply optimized demos to program
program . setDemos ( result . demos ); Full reference
AxOptimizerArgsTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxOptimizerArgsSource source
Call Shape type AxOptimizerArgs = object ; Full reference
AxOptimizerLoggerDataTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxOptimizerLoggerDataSource source
Call Shape type AxOptimizerLoggerData =
| {
name : "OptimizationStart" ;
value : {
config : Record < string , unknown >;
exampleCount : number ;
optimizerType : string ;
validationCount : number ;
};
}
| {
name : "RoundProgress" ;
value : {
bestScore : number ;
configuration : Record < string , unknown >;
currentScore : number ;
round : number ;
totalRounds : number ;
};
}
| {
name : "EarlyStopping" ;
value : {
finalScore : number ;
reason : string ;
round : number ;
};
}
| {
name : "OptimizationComplete" ;
value : {
bestConfiguration : Record < string , unknown >;
bestScore : number ;
explanation? : string ;
optimizerType? : string ;
performanceAssessment? : string ;
recommendations? : string [];
stats : AxOptimizationStats ;
successRate? : string ;
totalCalls? : number ;
};
}
| {
name : "ConfigurationProposal" ;
value : {
count : number ;
proposals : string [] | Record < string , unknown >[];
type : "instructions" | "demos" | "general" ;
};
}
| {
name : "BootstrappedDemos" ;
value : {
count : number ;
demos : unknown [];
};
}
| {
name : "BestConfigFound" ;
value : {
config : Record < string , unknown >;
score : number ;
};
}; Full reference
AxOptimizerLoggerFunctionTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxOptimizerLoggerFunctionReturns voidSource source
Call Shape type AxOptimizerLoggerFunction = ( data : AxOptimizerLoggerData ) => void ; Arguments And Options Full reference
AxOptimizerMetricsConfigTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxOptimizerMetricsConfigSource source
Full reference
AxOptimizerMetricsInstrumentsTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxOptimizerMetricsInstrumentsSource source
Full reference
AxOptimizerResultTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxOptimizerResultSource source
Full reference
AxParetoResultTypeScript interface exported by @ax-llm/ax. See the fields and full reference below.
Field Value Kind interfaceForm AxParetoResultSource source
Full reference
AxProgramDemosTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxProgramDemosSource source
Call Shape type AxProgramDemos < IN , OUT , ID > = object ; Full reference
AxSerializedOptimizedProgramTypeScript typealias exported by @ax-llm/ax. See the full reference for complete details.
Field Value Kind typealiasForm AxSerializedOptimizedProgramSource source
Call Shape type AxSerializedOptimizedProgram < OUT > = Omit < AxOptimizedProgram < OUT >, "applyTo" >; Full reference
axSerializeOptimizedProgramTypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
Call Shape function axSerializeOptimizedProgram < OUT >( optimizedProgram : Readonly < AxOptimizedProgram < OUT >>) : AxSerializedOptimizedProgram < OUT >; Arguments And Options Full reference
axUpdateOptimizerMetricsConfigTypeScript function exported by @ax-llm/ax. See the call shape, arguments, and full reference below.
Field Value Kind functionForm axUpdateOptimizerMetricsConfigReturns voidSource source
Call Shape function axUpdateOptimizerMetricsConfig ( config : Readonly < Partial < AxOptimizerMetricsConfig >>) : void ; Arguments And Options Full reference