@ax-llm/ax 12.0.7 → 12.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.cts CHANGED
@@ -339,7 +339,7 @@ type AxInternalEmbedRequest<TEmbedModel> = Omit<AxEmbedRequest, 'embedModel'> &
339
339
  type AxRateLimiterFunction = <T = unknown>(reqFunc: () => Promise<T | ReadableStream$1<T>>, info: Readonly<{
340
340
  modelUsage?: AxModelUsage;
341
341
  }>) => Promise<T | ReadableStream$1<T>>;
342
- type AxLoggerTag = 'error' | 'warning' | 'success' | 'functionName' | 'functionArg' | 'functionEnd' | 'responseStart' | 'responseContent' | 'responseEnd' | 'requestStart' | 'requestContent' | 'requestEnd' | 'systemStart' | 'systemContent' | 'systemEnd' | 'userStart' | 'userContent' | 'userEnd' | 'assistantStart' | 'assistantContent' | 'assistantEnd' | 'discovery';
342
+ type AxLoggerTag = 'error' | 'warning' | 'success' | 'functionName' | 'functionArg' | 'functionEnd' | 'firstFunction' | 'multipleFunctions' | 'responseStart' | 'responseContent' | 'responseEnd' | 'requestStart' | 'requestContent' | 'requestEnd' | 'systemStart' | 'systemContent' | 'systemEnd' | 'userStart' | 'userContent' | 'userEnd' | 'assistantStart' | 'assistantContent' | 'assistantEnd' | 'discovery' | 'optimizer' | 'start' | 'config' | 'phase' | 'progress' | 'result' | 'complete' | 'checkpoint';
343
343
  type AxLoggerFunction = (message: string, options?: {
344
344
  tags?: AxLoggerTag[];
345
345
  }) => void;
@@ -2328,7 +2328,9 @@ type AxFieldValue = string | string[] | number | boolean | object | null | undef
2328
2328
  type AxGenIn = {
2329
2329
  [key: string]: AxFieldValue;
2330
2330
  };
2331
- type AxGenOut = Record<string, AxFieldValue>;
2331
+ type AxGenOut = {
2332
+ [key: string]: AxFieldValue;
2333
+ };
2332
2334
  type AxMessage<IN extends AxGenIn> = {
2333
2335
  role: 'user';
2334
2336
  values: IN;
@@ -2386,15 +2388,15 @@ declare class AxPromptTemplate {
2386
2388
  private defaultRenderInField;
2387
2389
  }
2388
2390
 
2389
- type AxProgramTrace = {
2390
- trace: Record<string, AxFieldValue>;
2391
+ type AxProgramTrace<IN extends AxGenIn, OUT extends AxGenOut> = {
2392
+ trace: OUT & IN;
2391
2393
  programId: string;
2392
2394
  };
2393
- type AxProgramDemos = {
2394
- traces: Record<string, AxFieldValue>[];
2395
+ type AxProgramDemos<IN extends AxGenIn, OUT extends AxGenOut> = {
2396
+ traces: (OUT & IN)[];
2395
2397
  programId: string;
2396
2398
  };
2397
- type AxProgramExamples = AxProgramDemos | AxProgramDemos['traces'];
2399
+ type AxProgramExamples<IN extends AxGenIn, OUT extends AxGenOut> = AxProgramDemos<IN, OUT> | AxProgramDemos<IN, OUT>['traces'];
2398
2400
  type AxProgramForwardOptions = {
2399
2401
  maxRetries?: number;
2400
2402
  maxSteps?: number;
@@ -2424,6 +2426,7 @@ type AxProgramForwardOptions = {
2424
2426
  asserts?: AxAssertion[];
2425
2427
  streamingAsserts?: AxStreamingAssertion[];
2426
2428
  excludeContentFromTrace?: boolean;
2429
+ strictMode?: boolean;
2427
2430
  };
2428
2431
  type AxProgramStreamingForwardOptions = Omit<AxProgramForwardOptions, 'stream'>;
2429
2432
  type AxGenDeltaOut<OUT extends AxGenOut> = {
@@ -2432,12 +2435,12 @@ type AxGenDeltaOut<OUT extends AxGenOut> = {
2432
2435
  };
2433
2436
  type AxGenStreamingOut<OUT extends AxGenOut> = AsyncGenerator<AxGenDeltaOut<OUT>, void | OUT, unknown>;
2434
2437
  type AxSetExamplesOptions = {};
2435
- interface AxTunable {
2436
- setExamples: (examples: Readonly<AxProgramExamples>, options?: Readonly<AxSetExamplesOptions>) => void;
2438
+ interface AxTunable<IN extends AxGenIn, OUT extends AxGenOut> {
2439
+ setExamples: (examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>) => void;
2437
2440
  setId: (id: string) => void;
2438
2441
  setParentId: (parentId: string) => void;
2439
- getTraces: () => AxProgramTrace[];
2440
- setDemos: (demos: readonly AxProgramDemos[]) => void;
2442
+ getTraces: () => AxProgramTrace<IN, OUT>[];
2443
+ setDemos: (demos: readonly AxProgramDemos<IN, OUT>[]) => void;
2441
2444
  }
2442
2445
  interface AxUsable {
2443
2446
  getUsage: () => AxProgramUsage[];
@@ -2450,53 +2453,53 @@ type AxProgramUsage = AxChatResponse['modelUsage'] & {
2450
2453
  interface AxProgramWithSignatureOptions {
2451
2454
  description?: string;
2452
2455
  }
2453
- declare class AxProgramWithSignature<IN extends AxGenIn, OUT extends AxGenOut> implements AxTunable, AxUsable {
2456
+ declare class AxProgramWithSignature<IN extends AxGenIn, OUT extends AxGenOut> implements AxTunable<IN, OUT>, AxUsable {
2454
2457
  protected signature: AxSignature;
2455
2458
  protected sigHash: string;
2456
- protected examples?: Record<string, AxFieldValue>[];
2459
+ protected examples?: OUT[];
2457
2460
  protected examplesOptions?: AxSetExamplesOptions;
2458
- protected demos?: Record<string, AxFieldValue>[];
2459
- protected trace?: Record<string, AxFieldValue>;
2461
+ protected demos?: OUT[];
2462
+ protected trace?: OUT;
2460
2463
  protected usage: AxProgramUsage[];
2461
2464
  private key;
2462
2465
  private children;
2463
2466
  constructor(signature: NonNullable<ConstructorParameters<typeof AxSignature>[0]>, options?: Readonly<AxProgramWithSignatureOptions>);
2464
2467
  getSignature(): AxSignature;
2465
- register(prog: Readonly<AxTunable & AxUsable>): void;
2468
+ register(prog: Readonly<AxTunable<IN, OUT> & AxUsable>): void;
2466
2469
  forward(_ai: Readonly<AxAIService>, _values: IN | AxMessage<IN>[], _options?: Readonly<AxProgramForwardOptions>): Promise<OUT>;
2467
2470
  streamingForward(_ai: Readonly<AxAIService>, _values: IN | AxMessage<IN>[], _options?: Readonly<AxProgramStreamingForwardOptions>): AxGenStreamingOut<OUT>;
2468
2471
  setId(id: string): void;
2469
2472
  setParentId(parentId: string): void;
2470
- setExamples(examples: Readonly<AxProgramExamples>, options?: Readonly<AxSetExamplesOptions>): void;
2473
+ setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
2471
2474
  private _setExamples;
2472
- getTraces(): AxProgramTrace[];
2475
+ getTraces(): AxProgramTrace<IN, OUT>[];
2473
2476
  getUsage(): AxProgramUsage[];
2474
2477
  resetUsage(): void;
2475
- setDemos(demos: readonly AxProgramDemos[]): void;
2478
+ setDemos(demos: readonly AxProgramDemos<IN, OUT>[]): void;
2476
2479
  }
2477
- declare class AxProgram<IN extends AxGenIn, OUT extends AxGenOut> implements AxTunable, AxUsable {
2478
- protected trace?: Record<string, AxFieldValue>;
2480
+ declare class AxProgram<IN extends AxGenIn, OUT extends AxGenOut> implements AxTunable<IN, OUT>, AxUsable {
2481
+ protected trace?: OUT;
2479
2482
  protected usage: AxProgramUsage[];
2480
2483
  private key;
2481
2484
  private children;
2482
2485
  constructor();
2483
- register(prog: Readonly<AxTunable & AxUsable>): void;
2486
+ register(prog: Readonly<AxTunable<IN, OUT> & AxUsable>): void;
2484
2487
  forward(_ai: Readonly<AxAIService>, _values: IN | AxMessage<IN>[], _options?: Readonly<AxProgramForwardOptions>): Promise<OUT>;
2485
2488
  streamingForward(_ai: Readonly<AxAIService>, _values: IN | AxMessage<IN>[], _options?: Readonly<AxProgramStreamingForwardOptions>): AxGenStreamingOut<OUT>;
2486
2489
  setId(id: string): void;
2487
2490
  setParentId(parentId: string): void;
2488
- setExamples(examples: Readonly<AxProgramExamples>, options?: Readonly<AxSetExamplesOptions>): void;
2489
- getTraces(): AxProgramTrace[];
2491
+ setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
2492
+ getTraces(): AxProgramTrace<IN, OUT>[];
2490
2493
  getUsage(): AxProgramUsage[];
2491
2494
  resetUsage(): void;
2492
- setDemos(demos: readonly AxProgramDemos[]): void;
2495
+ setDemos(demos: readonly AxProgramDemos<IN, OUT>[]): void;
2493
2496
  }
2494
2497
 
2495
2498
  /**
2496
2499
  * Interface for agents that can be used as child agents.
2497
2500
  * Provides methods to get the agent's function definition and features.
2498
2501
  */
2499
- interface AxAgentic extends AxTunable, AxUsable {
2502
+ interface AxAgentic<IN extends AxGenIn, OUT extends AxGenOut> extends AxTunable<IN, OUT>, AxUsable {
2500
2503
  getFunction(): AxFunction;
2501
2504
  getFeatures(): AxAgentFeatures;
2502
2505
  }
@@ -2516,7 +2519,7 @@ interface AxAgentFeatures {
2516
2519
  * An AI agent that can process inputs using an AI service and coordinate with child agents.
2517
2520
  * Supports features like smart model routing and automatic input field passing to child agents.
2518
2521
  */
2519
- declare class AxAgent<IN extends AxGenIn, OUT extends AxGenOut = AxGenOut> implements AxAgentic {
2522
+ declare class AxAgent<IN extends AxGenIn, OUT extends AxGenOut> implements AxAgentic<IN, OUT> {
2520
2523
  private ai?;
2521
2524
  private program;
2522
2525
  private functions?;
@@ -2532,14 +2535,14 @@ declare class AxAgent<IN extends AxGenIn, OUT extends AxGenOut = AxGenOut> imple
2532
2535
  description: string;
2533
2536
  definition?: string;
2534
2537
  signature: NonNullable<ConstructorParameters<typeof AxSignature>[0]>;
2535
- agents?: AxAgentic[];
2538
+ agents?: AxAgentic<IN, OUT>[];
2536
2539
  functions?: AxInputFunctionType;
2537
2540
  }>, options?: Readonly<AxAgentOptions>);
2538
- setExamples(examples: Readonly<AxProgramExamples>, options?: Readonly<AxSetExamplesOptions>): void;
2541
+ setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
2539
2542
  setId(id: string): void;
2540
2543
  setParentId(parentId: string): void;
2541
- getTraces(): AxProgramTrace[];
2542
- setDemos(demos: readonly AxProgramDemos[]): void;
2544
+ getTraces(): AxProgramTrace<IN, OUT>[];
2545
+ setDemos(demos: readonly AxProgramDemos<IN, OUT>[]): void;
2543
2546
  getUsage(): (AxModelUsage & {
2544
2547
  ai: string;
2545
2548
  model: string;
@@ -2634,6 +2637,450 @@ declare class AxBalancer implements AxAIService<unknown, unknown> {
2634
2637
  getLogger(): AxLoggerFunction;
2635
2638
  }
2636
2639
 
2640
+ type AxExample = Record<string, AxFieldValue>;
2641
+ type AxMetricFn = <T extends AxGenOut = AxGenOut>(arg0: Readonly<{
2642
+ prediction: T;
2643
+ example: AxExample;
2644
+ }>) => number | Promise<number>;
2645
+ type AxMetricFnArgs = Parameters<AxMetricFn>[0];
2646
+ type AxMultiMetricFn = <T extends AxGenOut = AxGenOut>(arg0: Readonly<{
2647
+ prediction: T;
2648
+ example: AxExample;
2649
+ }>) => Record<string, number>;
2650
+ interface AxOptimizationProgress {
2651
+ round: number;
2652
+ totalRounds: number;
2653
+ currentScore: number;
2654
+ bestScore: number;
2655
+ tokensUsed: number;
2656
+ timeElapsed: number;
2657
+ successfulExamples: number;
2658
+ totalExamples: number;
2659
+ currentConfiguration?: Record<string, unknown>;
2660
+ convergenceInfo?: {
2661
+ improvement: number;
2662
+ stagnationRounds: number;
2663
+ isConverging: boolean;
2664
+ };
2665
+ }
2666
+ interface AxCostTracker {
2667
+ trackTokens(count: number, model: string): void;
2668
+ getCurrentCost(): number;
2669
+ getTokenUsage(): Record<string, number>;
2670
+ getTotalTokens(): number;
2671
+ isLimitReached(): boolean;
2672
+ reset(): void;
2673
+ }
2674
+ interface AxOptimizationCheckpoint {
2675
+ version: string;
2676
+ timestamp: number;
2677
+ optimizerType: string;
2678
+ optimizerConfig: Record<string, unknown>;
2679
+ currentRound: number;
2680
+ totalRounds: number;
2681
+ bestScore: number;
2682
+ bestConfiguration?: Record<string, unknown>;
2683
+ scoreHistory: number[];
2684
+ configurationHistory: Record<string, unknown>[];
2685
+ stats: AxOptimizationStats;
2686
+ optimizerState: Record<string, unknown>;
2687
+ examples: readonly AxExample[];
2688
+ validationSet?: readonly AxExample[];
2689
+ }
2690
+ type AxCheckpointSaveFn = (checkpoint: Readonly<AxOptimizationCheckpoint>) => Promise<string>;
2691
+ type AxCheckpointLoadFn = (checkpointId: string) => Promise<AxOptimizationCheckpoint | null>;
2692
+ interface AxCostTrackerOptions {
2693
+ costPerModel?: Record<string, number>;
2694
+ maxCost?: number;
2695
+ maxTokens?: number;
2696
+ }
2697
+ type AxOptimizerArgs = {
2698
+ studentAI: AxAIService;
2699
+ teacherAI?: AxAIService;
2700
+ examples: readonly AxExample[];
2701
+ validationSet?: readonly AxExample[];
2702
+ minSuccessRate?: number;
2703
+ targetScore?: number;
2704
+ onProgress?: (progress: Readonly<AxOptimizationProgress>) => void;
2705
+ onEarlyStop?: (reason: string, stats: Readonly<AxOptimizationStats>) => void;
2706
+ costTracker?: AxCostTracker;
2707
+ checkpointSave?: AxCheckpointSaveFn;
2708
+ checkpointLoad?: AxCheckpointLoadFn;
2709
+ checkpointInterval?: number;
2710
+ resumeFromCheckpoint?: string;
2711
+ logger?: AxLoggerFunction;
2712
+ verbose?: boolean;
2713
+ seed?: number;
2714
+ };
2715
+ interface AxOptimizationStats {
2716
+ totalCalls: number;
2717
+ successfulDemos: number;
2718
+ estimatedTokenUsage: number;
2719
+ earlyStopped: boolean;
2720
+ earlyStopping?: {
2721
+ bestScoreRound: number;
2722
+ patienceExhausted: boolean;
2723
+ reason: string;
2724
+ };
2725
+ resourceUsage: {
2726
+ totalTokens: number;
2727
+ totalTime: number;
2728
+ avgLatencyPerEval: number;
2729
+ peakMemoryUsage?: number;
2730
+ costByModel: Record<string, number>;
2731
+ };
2732
+ convergenceInfo: {
2733
+ converged: boolean;
2734
+ finalImprovement: number;
2735
+ stagnationRounds: number;
2736
+ convergenceThreshold: number;
2737
+ };
2738
+ evaluationBreakdown?: {
2739
+ trainingScore: number;
2740
+ validationScore: number;
2741
+ crossValidationScores?: number[];
2742
+ standardDeviation?: number;
2743
+ };
2744
+ }
2745
+ interface AxOptimizerResult<OUT extends AxGenOut> {
2746
+ demos?: AxProgramDemos<AxGenIn, OUT>[];
2747
+ stats: AxOptimizationStats;
2748
+ bestScore: number;
2749
+ finalConfiguration?: Record<string, unknown>;
2750
+ scoreHistory?: number[];
2751
+ configurationHistory?: Record<string, unknown>[];
2752
+ }
2753
+ interface AxParetoResult<OUT extends AxGenOut = AxGenOut> extends AxOptimizerResult<OUT> {
2754
+ paretoFront: ReadonlyArray<{
2755
+ demos: readonly AxProgramDemos<AxGenIn, OUT>[];
2756
+ scores: Readonly<Record<string, number>>;
2757
+ configuration: Readonly<Record<string, unknown>>;
2758
+ dominatedSolutions: number;
2759
+ }>;
2760
+ hypervolume?: number;
2761
+ paretoFrontSize: number;
2762
+ convergenceMetrics?: Record<string, number>;
2763
+ }
2764
+ interface AxCompileOptions {
2765
+ maxIterations?: number;
2766
+ earlyStoppingPatience?: number;
2767
+ verbose?: boolean;
2768
+ overrideValidationSet?: readonly AxExample[];
2769
+ overrideTargetScore?: number;
2770
+ overrideCostTracker?: AxCostTracker;
2771
+ overrideTeacherAI?: AxAIService;
2772
+ overrideOnProgress?: (progress: Readonly<AxOptimizationProgress>) => void;
2773
+ overrideOnEarlyStop?: (reason: string, stats: Readonly<AxOptimizationStats>) => void;
2774
+ overrideCheckpointSave?: AxCheckpointSaveFn;
2775
+ overrideCheckpointLoad?: AxCheckpointLoadFn;
2776
+ overrideCheckpointInterval?: number;
2777
+ saveCheckpointOnComplete?: boolean;
2778
+ }
2779
+ interface AxOptimizer<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> {
2780
+ /**
2781
+ * Optimize a program using the provided metric function
2782
+ * @param program The program to optimize (moved from constructor)
2783
+ * @param metricFn Evaluation metric function to assess program performance
2784
+ * @param options Optional configuration options that can override constructor settings
2785
+ * @returns Optimization result containing demos, stats, and configuration
2786
+ */
2787
+ compile(program: Readonly<AxProgram<IN, OUT>>, metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxOptimizerResult<OUT>>;
2788
+ /**
2789
+ * Optimize a program with real-time streaming updates
2790
+ * @param program The program to optimize
2791
+ * @param metricFn Evaluation metric function
2792
+ * @param options Optional configuration options
2793
+ * @returns Async iterator yielding optimization progress
2794
+ */
2795
+ compileStream?(program: Readonly<AxProgram<IN, OUT>>, metricFn: AxMetricFn, options?: AxCompileOptions): AsyncIterableIterator<AxOptimizationProgress>;
2796
+ /**
2797
+ * Multi-objective optimization using Pareto frontier
2798
+ * @param program The program to optimize
2799
+ * @param metricFn Multi-objective metric function
2800
+ * @param options Optional configuration options
2801
+ * @returns Pareto optimization result
2802
+ */
2803
+ compilePareto?(program: Readonly<AxProgram<IN, OUT>>, metricFn: AxMultiMetricFn, options?: AxCompileOptions): Promise<AxParetoResult<OUT>>;
2804
+ /**
2805
+ * Get current optimization statistics
2806
+ * @returns Current optimization statistics
2807
+ */
2808
+ getStats(): AxOptimizationStats;
2809
+ /**
2810
+ * Cancel ongoing optimization gracefully
2811
+ * @returns Promise that resolves when cancellation is complete
2812
+ */
2813
+ cancel?(): Promise<void>;
2814
+ /**
2815
+ * Reset optimizer state for reuse with different programs
2816
+ */
2817
+ reset?(): void;
2818
+ /**
2819
+ * Get optimizer-specific configuration
2820
+ * @returns Current optimizer configuration
2821
+ */
2822
+ getConfiguration?(): Record<string, unknown>;
2823
+ /**
2824
+ * Update optimizer configuration
2825
+ * @param config New configuration to merge with existing
2826
+ */
2827
+ updateConfiguration?(config: Readonly<Record<string, unknown>>): void;
2828
+ /**
2829
+ * Validate that the optimizer can handle the given program
2830
+ * @param program Program to validate
2831
+ * @returns Validation result with any issues found
2832
+ */
2833
+ validateProgram?(program: Readonly<AxProgram<IN, OUT>>): {
2834
+ isValid: boolean;
2835
+ issues: string[];
2836
+ suggestions: string[];
2837
+ };
2838
+ }
2839
+ interface AxBootstrapOptimizerOptions {
2840
+ maxRounds?: number;
2841
+ maxExamples?: number;
2842
+ maxDemos?: number;
2843
+ batchSize?: number;
2844
+ earlyStoppingPatience?: number;
2845
+ teacherAI?: AxAIService;
2846
+ costMonitoring?: boolean;
2847
+ maxTokensPerGeneration?: number;
2848
+ verboseMode?: boolean;
2849
+ debugMode?: boolean;
2850
+ adaptiveBatching?: boolean;
2851
+ dynamicTemperature?: boolean;
2852
+ qualityThreshold?: number;
2853
+ diversityWeight?: number;
2854
+ }
2855
+ interface AxMiPROOptimizerOptions {
2856
+ numCandidates?: number;
2857
+ initTemperature?: number;
2858
+ maxBootstrappedDemos?: number;
2859
+ maxLabeledDemos?: number;
2860
+ numTrials?: number;
2861
+ minibatch?: boolean;
2862
+ minibatchSize?: number;
2863
+ minibatchFullEvalSteps?: number;
2864
+ programAwareProposer?: boolean;
2865
+ dataAwareProposer?: boolean;
2866
+ viewDataBatchSize?: number;
2867
+ tipAwareProposer?: boolean;
2868
+ fewshotAwareProposer?: boolean;
2869
+ verbose?: boolean;
2870
+ earlyStoppingTrials?: number;
2871
+ minImprovementThreshold?: number;
2872
+ bayesianOptimization?: boolean;
2873
+ acquisitionFunction?: 'expected_improvement' | 'upper_confidence_bound' | 'probability_improvement';
2874
+ explorationWeight?: number;
2875
+ }
2876
+ interface AxBootstrapCompileOptions extends AxCompileOptions {
2877
+ valset?: readonly AxExample[];
2878
+ maxDemos?: number;
2879
+ teacherProgram?: Readonly<AxProgram<AxGenIn, AxGenOut>>;
2880
+ }
2881
+ interface AxMiPROCompileOptions extends AxCompileOptions {
2882
+ valset?: readonly AxExample[];
2883
+ teacher?: Readonly<AxProgram<AxGenIn, AxGenOut>>;
2884
+ auto?: 'light' | 'medium' | 'heavy';
2885
+ instructionCandidates?: string[];
2886
+ customProposer?: (context: Readonly<{
2887
+ programSummary: string;
2888
+ dataSummary: string;
2889
+ previousInstructions: string[];
2890
+ }>) => Promise<string[]>;
2891
+ }
2892
+ declare class AxDefaultCostTracker implements AxCostTracker {
2893
+ private tokenUsage;
2894
+ private totalTokens;
2895
+ private readonly costPerModel;
2896
+ private readonly maxCost?;
2897
+ private readonly maxTokens?;
2898
+ constructor(options?: AxCostTrackerOptions);
2899
+ trackTokens(count: number, model: string): void;
2900
+ getCurrentCost(): number;
2901
+ getTokenUsage(): Record<string, number>;
2902
+ getTotalTokens(): number;
2903
+ isLimitReached(): boolean;
2904
+ reset(): void;
2905
+ }
2906
+ /**
2907
+ * Abstract base class for optimizers that provides common functionality
2908
+ * and standardized handling of AxOptimizerArgs
2909
+ */
2910
+ declare abstract class AxBaseOptimizer<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> implements AxOptimizer<IN, OUT> {
2911
+ protected readonly studentAI: AxAIService;
2912
+ protected readonly teacherAI?: AxAIService;
2913
+ protected readonly examples: readonly AxExample[];
2914
+ protected readonly validationSet?: readonly AxExample[];
2915
+ protected readonly targetScore?: number;
2916
+ protected readonly minSuccessRate?: number;
2917
+ protected readonly onProgress?: (progress: Readonly<AxOptimizationProgress>) => void;
2918
+ protected readonly onEarlyStop?: (reason: string, stats: Readonly<AxOptimizationStats>) => void;
2919
+ protected readonly costTracker?: AxCostTracker;
2920
+ protected readonly seed?: number;
2921
+ protected readonly checkpointSave?: AxCheckpointSaveFn;
2922
+ protected readonly checkpointLoad?: AxCheckpointLoadFn;
2923
+ protected readonly checkpointInterval?: number;
2924
+ protected readonly resumeFromCheckpoint?: string;
2925
+ protected readonly logger?: AxLoggerFunction;
2926
+ protected readonly verbose?: boolean;
2927
+ private currentRound;
2928
+ private scoreHistory;
2929
+ private configurationHistory;
2930
+ protected stats: AxOptimizationStats;
2931
+ constructor(args: Readonly<AxOptimizerArgs>);
2932
+ /**
2933
+ * Initialize the optimization statistics structure
2934
+ */
2935
+ protected initializeStats(): AxOptimizationStats;
2936
+ /**
2937
+ * Set up reproducible random seed if provided
2938
+ */
2939
+ protected setupRandomSeed(): void;
2940
+ /**
2941
+ * Check if optimization should stop early due to cost limits
2942
+ */
2943
+ protected checkCostLimits(): boolean;
2944
+ /**
2945
+ * Check if target score has been reached
2946
+ */
2947
+ protected checkTargetScore(currentScore: number): boolean;
2948
+ /**
2949
+ * Update resource usage statistics
2950
+ */
2951
+ protected updateResourceUsage(startTime: number, tokensUsed?: number): void;
2952
+ /**
2953
+ * Trigger early stopping with appropriate callbacks
2954
+ */
2955
+ protected triggerEarlyStopping(reason: string, bestScoreRound: number): void;
2956
+ /**
2957
+ * Get the validation set, with fallback to a split of examples
2958
+ */
2959
+ protected getValidationSet(options?: AxCompileOptions): readonly AxExample[];
2960
+ /**
2961
+ * Get the AI service to use for a specific task, preferring teacher when available
2962
+ * @param preferTeacher Whether to prefer teacher AI over student AI
2963
+ * @param options Optional compile options that may override teacher AI
2964
+ * @returns The appropriate AI service to use
2965
+ */
2966
+ protected getAIService(preferTeacher?: boolean, options?: AxCompileOptions): AxAIService;
2967
+ /**
2968
+ * Check if teacher AI is available (including overrides)
2969
+ * @param options Optional compile options that may override teacher AI
2970
+ * @returns True if teacher AI is configured or overridden
2971
+ */
2972
+ protected hasTeacherAI(options?: AxCompileOptions): boolean;
2973
+ /**
2974
+ * Get teacher AI if available, otherwise return student AI
2975
+ * @param options Optional compile options that may override teacher AI
2976
+ * @returns Teacher AI if available, otherwise student AI
2977
+ */
2978
+ protected getTeacherOrStudentAI(options?: AxCompileOptions): AxAIService;
2979
+ /**
2980
+ * Execute a task with teacher AI if available, otherwise use student AI
2981
+ * @param task Function that takes an AI service and returns a promise
2982
+ * @param preferTeacher Whether to prefer teacher AI (default: true)
2983
+ * @param options Optional compile options that may override teacher AI
2984
+ * @returns Result of the task execution
2985
+ */
2986
+ protected executeWithTeacher<T>(task: (ai: AxAIService) => Promise<T>, preferTeacher?: boolean, options?: AxCompileOptions): Promise<T>;
2987
+ /**
2988
+ * Abstract method that must be implemented by concrete optimizers
2989
+ */
2990
+ abstract compile(program: Readonly<AxProgram<IN, OUT>>, metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxOptimizerResult<OUT>>;
2991
+ /**
2992
+ * Get current optimization statistics
2993
+ */
2994
+ getStats(): AxOptimizationStats;
2995
+ /**
2996
+ * Reset optimizer state for reuse with different programs
2997
+ */
2998
+ reset(): void;
2999
+ /**
3000
+ * Basic program validation that can be extended by concrete optimizers
3001
+ */
3002
+ validateProgram(program: Readonly<AxProgram<IN, OUT>>): {
3003
+ isValid: boolean;
3004
+ issues: string[];
3005
+ suggestions: string[];
3006
+ };
3007
+ /**
3008
+ * Multi-objective optimization using Pareto frontier
3009
+ * Default implementation that leverages the single-objective compile method
3010
+ * @param program The program to optimize
3011
+ * @param metricFn Multi-objective metric function that returns multiple scores
3012
+ * @param options Optional configuration options
3013
+ * @returns Pareto optimization result with frontier of non-dominated solutions
3014
+ */
3015
+ compilePareto(program: Readonly<AxProgram<IN, OUT>>, metricFn: AxMultiMetricFn, options?: AxCompileOptions): Promise<AxParetoResult<OUT>>;
3016
+ /**
3017
+ * Generate solutions using different weighted combinations of objectives
3018
+ */
3019
+ private generateWeightedSolutions;
3020
+ /**
3021
+ * Generate solutions using constraint-based optimization
3022
+ */
3023
+ private generateConstraintSolutions;
3024
+ /**
3025
+ * Generate different weight combinations for objectives
3026
+ */
3027
+ private generateWeightCombinations;
3028
+ /**
3029
+ * Evaluate a single-objective result with multi-objective metrics
3030
+ */
3031
+ private evaluateWithMultiObjective;
3032
+ /**
3033
+ * Find the Pareto frontier from a set of solutions
3034
+ */
3035
+ private findParetoFrontier;
3036
+ /**
3037
+ * Check if solution A dominates solution B
3038
+ * A dominates B if A is better or equal in all objectives and strictly better in at least one
3039
+ */
3040
+ private dominates;
3041
+ /**
3042
+ * Calculate hypervolume of the Pareto frontier
3043
+ * Simplified implementation using reference point at origin
3044
+ */
3045
+ private calculateHypervolume;
3046
+ /**
3047
+ * Save current optimization state to checkpoint
3048
+ */
3049
+ protected saveCheckpoint(optimizerType: string, optimizerConfig: Record<string, unknown>, bestScore: number, bestConfiguration?: Record<string, unknown>, optimizerState?: Record<string, unknown>, options?: AxCompileOptions): Promise<string | undefined>;
3050
+ /**
3051
+ * Load optimization state from checkpoint
3052
+ */
3053
+ protected loadCheckpoint(checkpointId: string, options?: AxCompileOptions): Promise<AxOptimizationCheckpoint | null>;
3054
+ /**
3055
+ * Restore optimizer state from checkpoint
3056
+ */
3057
+ protected restoreFromCheckpoint(checkpoint: Readonly<AxOptimizationCheckpoint>): void;
3058
+ /**
3059
+ * Check if checkpoint should be saved
3060
+ */
3061
+ protected shouldSaveCheckpoint(round: number, options?: AxCompileOptions): boolean;
3062
+ /**
3063
+ * Update optimization progress and handle checkpointing
3064
+ */
3065
+ protected updateOptimizationProgress(round: number, score: number, configuration: Record<string, unknown>, optimizerType: string, optimizerConfig: Record<string, unknown>, bestScore: number, bestConfiguration?: Record<string, unknown>, optimizerState?: Record<string, unknown>, options?: AxCompileOptions): Promise<void>;
3066
+ /**
3067
+ * Save final checkpoint on completion
3068
+ */
3069
+ protected saveFinalCheckpoint(optimizerType: string, optimizerConfig: Record<string, unknown>, bestScore: number, bestConfiguration?: Record<string, unknown>, optimizerState?: Record<string, unknown>, options?: AxCompileOptions): Promise<void>;
3070
+ /**
3071
+ * Get the logger function with fallback hierarchy:
3072
+ * 1. Explicit logger passed to optimizer
3073
+ * 2. Logger from student AI service
3074
+ * 3. Default optimizer logger
3075
+ * 4. undefined if verbose is false
3076
+ */
3077
+ protected getLogger(options?: AxCompileOptions): AxLoggerFunction | undefined;
3078
+ /**
3079
+ * Check if logging is enabled based on verbose settings
3080
+ */
3081
+ protected isLoggingEnabled(options?: AxCompileOptions): boolean;
3082
+ }
3083
+
2637
3084
  type AxDBUpsertRequest = {
2638
3085
  id: string;
2639
3086
  text?: string;
@@ -2856,7 +3303,7 @@ interface AxResponseHandlerArgs<T> {
2856
3303
  sessionId?: string;
2857
3304
  traceId?: string;
2858
3305
  functions?: Readonly<AxFunction[]>;
2859
- fastFail?: boolean;
3306
+ strictMode?: boolean;
2860
3307
  span?: Span;
2861
3308
  }
2862
3309
  interface AxStreamingEvent<T> {
@@ -2901,7 +3348,7 @@ declare class AxGen<IN extends AxGenIn, OUT extends AxGenerateResult<AxGenOut> =
2901
3348
  version: number;
2902
3349
  delta: Partial<OUT>;
2903
3350
  }, void, unknown>;
2904
- setExamples(examples: Readonly<AxProgramExamples>, options?: Readonly<AxSetExamplesOptions>): void;
3351
+ setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
2905
3352
  private isDebug;
2906
3353
  private getLogger;
2907
3354
  }
@@ -3251,111 +3698,10 @@ declare class AxMCPStreambleHTTPTransport implements AxMCPTransport {
3251
3698
  close(): void;
3252
3699
  }
3253
3700
 
3254
- type AxExample = Record<string, AxFieldValue>;
3255
- type AxMetricFn = <T extends AxGenOut = AxGenOut>(arg0: Readonly<{
3256
- prediction: T;
3257
- example: AxExample;
3258
- }>) => number;
3259
- type AxMetricFnArgs = Parameters<AxMetricFn>[0];
3260
- type AxOptimizerArgs<IN extends AxGenIn, OUT extends AxGenOut> = {
3261
- ai: AxAIService;
3262
- program: Readonly<AxProgram<IN, OUT>>;
3263
- examples: Readonly<AxExample[]>;
3264
- options?: Record<string, unknown>;
3265
- };
3266
- interface AxOptimizationStats {
3267
- totalCalls: number;
3268
- successfulDemos: number;
3269
- estimatedTokenUsage: number;
3270
- earlyStopped: boolean;
3271
- earlyStopping?: {
3272
- bestScoreRound: number;
3273
- patienceExhausted: boolean;
3274
- };
3275
- }
3276
- interface AxOptimizerResult<IN extends AxGenIn, OUT extends AxGenOut> {
3277
- program?: Readonly<AxProgram<IN, OUT>>;
3278
- demos?: AxProgramDemos[];
3279
- stats?: AxOptimizationStats;
3280
- }
3281
- interface AxOptimizer<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> {
3282
- /**
3283
- * Main optimization method that optimizes the program using the provided metric function
3284
- * @param metricFn Evaluation metric function to assess program performance
3285
- * @param options Optional configuration options specific to the optimizer
3286
- * @returns Optimization result containing the optimized program, demos, and/or stats
3287
- */
3288
- compile(metricFn: AxMetricFn, options?: Record<string, unknown>): Promise<AxOptimizerResult<IN, OUT>>;
3289
- /**
3290
- * Get optimization statistics if available
3291
- * @returns Optimization statistics or undefined if not supported
3292
- */
3293
- getStats?(): AxOptimizationStats | undefined;
3294
- }
3295
- interface AxBootstrapOptimizerOptions {
3296
- maxRounds?: number;
3297
- maxExamples?: number;
3298
- maxDemos?: number;
3299
- batchSize?: number;
3300
- earlyStoppingPatience?: number;
3301
- teacherAI?: AxAIService;
3302
- costMonitoring?: boolean;
3303
- maxTokensPerGeneration?: number;
3304
- verboseMode?: boolean;
3305
- debugMode?: boolean;
3306
- }
3307
- interface AxMiPROOptimizerOptions {
3308
- numCandidates?: number;
3309
- initTemperature?: number;
3310
- maxBootstrappedDemos?: number;
3311
- maxLabeledDemos?: number;
3312
- numTrials?: number;
3313
- minibatch?: boolean;
3314
- minibatchSize?: number;
3315
- minibatchFullEvalSteps?: number;
3316
- programAwareProposer?: boolean;
3317
- dataAwareProposer?: boolean;
3318
- viewDataBatchSize?: number;
3319
- tipAwareProposer?: boolean;
3320
- fewshotAwareProposer?: boolean;
3321
- seed?: number;
3322
- verbose?: boolean;
3323
- earlyStoppingTrials?: number;
3324
- minImprovementThreshold?: number;
3325
- }
3326
- interface AxBootstrapCompileOptions {
3327
- valset?: readonly AxExample[];
3328
- maxDemos?: number;
3329
- }
3330
- interface AxMiPROCompileOptions {
3331
- valset?: readonly AxExample[];
3332
- teacher?: Readonly<AxProgram<AxGenIn, AxGenOut>>;
3333
- auto?: 'light' | 'medium' | 'heavy';
3334
- }
3335
-
3336
- interface AxMiPROOptions {
3337
- numCandidates?: number;
3338
- initTemperature?: number;
3339
- maxBootstrappedDemos?: number;
3340
- maxLabeledDemos?: number;
3341
- numTrials?: number;
3342
- minibatch?: boolean;
3343
- minibatchSize?: number;
3344
- minibatchFullEvalSteps?: number;
3345
- programAwareProposer?: boolean;
3346
- dataAwareProposer?: boolean;
3347
- viewDataBatchSize?: number;
3348
- tipAwareProposer?: boolean;
3349
- fewshotAwareProposer?: boolean;
3350
- seed?: number;
3351
- verbose?: boolean;
3352
- earlyStoppingTrials?: number;
3353
- minImprovementThreshold?: number;
3701
+ interface AxMiPROResult<IN extends AxGenIn, OUT extends AxGenOut> extends AxOptimizerResult<OUT> {
3702
+ optimizedGen?: AxGen<IN, OUT>;
3354
3703
  }
3355
- declare class AxMiPRO<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> implements AxOptimizer<IN, OUT> {
3356
- private ai;
3357
- private program;
3358
- private examples;
3704
+ declare class AxMiPRO<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> extends AxBaseOptimizer<IN, OUT> {
3359
3705
  private maxBootstrappedDemos;
3360
3706
  private maxLabeledDemos;
3361
3707
  private numCandidates;
@@ -3369,14 +3715,14 @@ declare class AxMiPRO<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGen
3369
3715
  private viewDataBatchSize;
3370
3716
  private tipAwareProposer;
3371
3717
  private fewshotAwareProposer;
3372
- private seed?;
3373
- private verbose;
3374
- private bootstrapper;
3375
3718
  private earlyStoppingTrials;
3376
3719
  private minImprovementThreshold;
3377
- constructor({ ai, program, examples, options, }: Readonly<AxOptimizerArgs<IN, OUT>> & {
3378
- options?: AxMiPROOptions;
3379
- });
3720
+ private bayesianOptimization;
3721
+ private acquisitionFunction;
3722
+ private explorationWeight;
3723
+ constructor(args: Readonly<AxOptimizerArgs & {
3724
+ options?: AxMiPROOptimizerOptions;
3725
+ }>);
3380
3726
  /**
3381
3727
  * Configures the optimizer for light, medium, or heavy optimization
3382
3728
  * @param level The optimization level: "light", "medium", or "heavy"
@@ -3387,21 +3733,11 @@ declare class AxMiPRO<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGen
3387
3733
  */
3388
3734
  private generateTips;
3389
3735
  /**
3390
- * Generates instruction candidates for each predictor in the program
3736
+ * Generates instruction candidates using the teacher model if available
3737
+ * @param options Optional compile options that may override teacher AI
3391
3738
  * @returns Array of generated instruction candidates
3392
3739
  */
3393
3740
  private proposeInstructionCandidates;
3394
- /**
3395
- * Generates a summary of the program structure for instruction proposal
3396
- */
3397
- private generateProgramSummary;
3398
- /**
3399
- * Generates a summary of the dataset for instruction proposal
3400
- */
3401
- private generateDataSummary;
3402
- /**
3403
- * Generates a specific instruction candidate
3404
- */
3405
3741
  private generateInstruction;
3406
3742
  /**
3407
3743
  * Bootstraps few-shot examples for the program
@@ -3412,43 +3748,43 @@ declare class AxMiPRO<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGen
3412
3748
  */
3413
3749
  private selectLabeledExamples;
3414
3750
  /**
3415
- * Runs Bayesian optimization to find the best combination of few-shot examples and instructions
3416
- */
3417
- private runBayesianOptimization;
3418
- /**
3419
- * Evaluates a configuration on the validation set
3751
+ * Runs optimization to find the best combination of few-shot examples and instructions
3420
3752
  */
3753
+ private runOptimization;
3421
3754
  private evaluateConfig;
3755
+ private applyConfigToProgram;
3422
3756
  /**
3423
- * Run full evaluation on the entire validation set
3757
+ * The main compile method to run MIPROv2 optimization
3424
3758
  */
3425
- private fullEvaluation;
3759
+ compile(program: Readonly<AxProgram<IN, OUT>>, metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxMiPROResult<IN, OUT>>;
3426
3760
  /**
3427
- * Implements a Bayesian-inspired selection of the next configuration to try
3428
- * This is a simplified version using Upper Confidence Bound (UCB) strategy
3761
+ * Applies a configuration to an AxGen instance
3429
3762
  */
3430
- private selectNextConfiguration;
3763
+ private applyConfigToAxGen;
3431
3764
  /**
3432
- * Applies a configuration to a program instance
3765
+ * Get optimizer-specific configuration
3766
+ * @returns Current optimizer configuration
3433
3767
  */
3434
- private applyConfigToProgram;
3768
+ getConfiguration(): Record<string, unknown>;
3435
3769
  /**
3436
- * Sets instruction to a program
3437
- * Note: Workaround since setInstruction may not be available directly
3770
+ * Update optimizer configuration
3771
+ * @param config New configuration to merge with existing
3438
3772
  */
3439
- private setInstructionToProgram;
3773
+ updateConfiguration(config: Readonly<Record<string, unknown>>): void;
3440
3774
  /**
3441
- * The main compile method to run MIPROv2 optimization
3442
- * @param metricFn Evaluation metric function
3443
- * @param options Optional configuration options
3444
- * @returns The optimization result
3775
+ * Reset optimizer state for reuse with different programs
3445
3776
  */
3446
- compile(metricFn: AxMetricFn, options?: Record<string, unknown>): Promise<AxOptimizerResult<IN, OUT>>;
3777
+ reset(): void;
3447
3778
  /**
3448
- * Get optimization statistics from the internal bootstrapper
3449
- * @returns Optimization statistics or undefined if not available
3779
+ * Validate that the optimizer can handle the given program
3780
+ * @param program Program to validate
3781
+ * @returns Validation result with any issues found
3450
3782
  */
3451
- getStats(): AxOptimizationStats | undefined;
3783
+ validateProgram(program: Readonly<AxProgram<IN, OUT>>): {
3784
+ isValid: boolean;
3785
+ issues: string[];
3786
+ suggestions: string[];
3787
+ };
3452
3788
  }
3453
3789
 
3454
3790
  type AxMockAIServiceConfig = {
@@ -3586,6 +3922,18 @@ declare const f: {
3586
3922
  };
3587
3923
  };
3588
3924
 
3925
+ declare const axCreateDefaultLogger: (output?: (message: string) => void) => AxLoggerFunction;
3926
+ declare const axCreateDefaultTextLogger: (output?: (message: string) => void) => AxLoggerFunction;
3927
+ /**
3928
+ * Factory function to create an enhanced optimizer logger with clean visual formatting
3929
+ * that works for all optimizer types using semantic tags for proper categorization
3930
+ */
3931
+ declare const axCreateOptimizerLogger: (output?: (message: string) => void) => AxLoggerFunction;
3932
+ /**
3933
+ * Default optimizer logger instance
3934
+ */
3935
+ declare const axDefaultOptimizerLogger: AxLoggerFunction;
3936
+
3589
3937
  declare class AxAIOpenAIResponsesImpl<TModel, TEmbedModel, // Kept for interface compatibility, but not used by this impl.
3590
3938
  TResponsesReq extends AxAIOpenAIResponsesRequest<TModel>> implements AxAIServiceImpl<TModel, TEmbedModel, Readonly<AxAIOpenAIResponsesRequest<TModel>>, // ChatReq (now ResponsesReq)
3591
3939
  Readonly<AxAIOpenAIEmbedRequest<TEmbedModel>>, // EmbedReq
@@ -3608,11 +3956,7 @@ Readonly<AxAIOpenAIEmbedResponse>> {
3608
3956
  createEmbedReq(req: Readonly<AxInternalEmbedRequest<TEmbedModel>>): [AxAPI, AxAIOpenAIEmbedRequest<TEmbedModel>];
3609
3957
  }
3610
3958
 
3611
- declare class AxBootstrapFewShot<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> implements AxOptimizer<IN, OUT> {
3612
- private ai;
3613
- private teacherAI?;
3614
- private program;
3615
- private examples;
3959
+ declare class AxBootstrapFewShot<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> extends AxBaseOptimizer<IN, OUT> {
3616
3960
  private maxRounds;
3617
3961
  private maxDemos;
3618
3962
  private maxExamples;
@@ -3623,11 +3967,11 @@ declare class AxBootstrapFewShot<IN extends AxGenIn = AxGenIn, OUT extends AxGen
3623
3967
  private verboseMode;
3624
3968
  private debugMode;
3625
3969
  private traces;
3626
- private stats;
3627
- constructor({ ai, program, examples, options, }: Readonly<AxOptimizerArgs<IN, OUT>>);
3970
+ constructor(args: Readonly<AxOptimizerArgs & {
3971
+ options?: AxBootstrapOptimizerOptions;
3972
+ }>);
3628
3973
  private compileRound;
3629
- compile(metricFn: AxMetricFn, options?: Record<string, unknown>): Promise<AxOptimizerResult<IN, OUT>>;
3630
- getStats(): AxOptimizationStats;
3974
+ compile(program: Readonly<AxProgram<IN, OUT>>, metricFn: AxMetricFn, options?: AxBootstrapCompileOptions): Promise<AxOptimizerResult<OUT>>;
3631
3975
  }
3632
3976
 
3633
3977
  declare class AxChainOfThought<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> extends AxGen<IN, OUT> {
@@ -3701,11 +4045,12 @@ declare const AxEvalUtil: {
3701
4045
  novelF1ScoreOptimized: typeof novelF1ScoreOptimized;
3702
4046
  };
3703
4047
 
3704
- declare class AxInstanceRegistry<T> {
4048
+ type AxInstanceRegistryItem<T extends AxTunable<IN, OUT>, IN extends AxGenIn, OUT extends AxGenOut> = T & AxUsable;
4049
+ declare class AxInstanceRegistry<T extends AxTunable<IN, OUT>, IN extends AxGenIn, OUT extends AxGenOut> {
3705
4050
  private reg;
3706
4051
  constructor();
3707
- register(instance: T): void;
3708
- [Symbol.iterator](): Generator<T, void, unknown>;
4052
+ register(instance: AxInstanceRegistryItem<T, IN, OUT>): void;
4053
+ [Symbol.iterator](): Generator<AxInstanceRegistryItem<T, IN, OUT> | undefined, void, unknown>;
3709
4054
  }
3710
4055
 
3711
4056
  /**
@@ -3928,4 +4273,4 @@ declare const axModelInfoReka: AxModelInfo[];
3928
4273
 
3929
4274
  declare const axModelInfoTogether: AxModelInfo[];
3930
4275
 
3931
- export { AxAI, AxAIAnthropic, type AxAIAnthropicArgs, type AxAIAnthropicChatError, type AxAIAnthropicChatRequest, type AxAIAnthropicChatRequestCacheParam, type AxAIAnthropicChatResponse, type AxAIAnthropicChatResponseDelta, type AxAIAnthropicConfig, type AxAIAnthropicContentBlockDeltaEvent, type AxAIAnthropicContentBlockStartEvent, type AxAIAnthropicContentBlockStopEvent, type AxAIAnthropicErrorEvent, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, AxAIAnthropicVertexModel, type AxAIArgs, AxAIAzureOpenAI, type AxAIAzureOpenAIArgs, type AxAIAzureOpenAIConfig, AxAICohere, type AxAICohereArgs, type AxAICohereChatRequest, type AxAICohereChatRequestToolResults, type AxAICohereChatResponse, type AxAICohereChatResponseDelta, type AxAICohereChatResponseToolCalls, type AxAICohereConfig, AxAICohereEmbedModel, type AxAICohereEmbedRequest, type AxAICohereEmbedResponse, AxAICohereModel, AxAIDeepSeek, type AxAIDeepSeekArgs, AxAIDeepSeekModel, type AxAIEmbedModels, type AxAIFeatures, AxAIGoogleGemini, type AxAIGoogleGeminiArgs, type AxAIGoogleGeminiBatchEmbedRequest, type AxAIGoogleGeminiBatchEmbedResponse, type AxAIGoogleGeminiChatRequest, type AxAIGoogleGeminiChatResponse, type AxAIGoogleGeminiChatResponseDelta, type AxAIGoogleGeminiConfig, type AxAIGoogleGeminiContent, type AxAIGoogleGeminiContentPart, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiEmbedTypes, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiThinkingConfig, type AxAIGoogleGeminiThinkingTokenBudgetLevels, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleSearchRetrieval, type AxAIGoogleVertexBatchEmbedRequest, type AxAIGoogleVertexBatchEmbedResponse, AxAIGrok, type AxAIGrokArgs, type AxAIGrokChatRequest, AxAIGrokEmbedModels, AxAIGrokModel, type AxAIGrokOptionsTools, type AxAIGrokSearchSource, AxAIGroq, type AxAIGroqArgs, AxAIGroqModel, AxAIHuggingFace, type AxAIHuggingFaceArgs, type AxAIHuggingFaceConfig, AxAIHuggingFaceModel, type AxAIHuggingFaceRequest, type AxAIHuggingFaceResponse, type AxAIInputModelList, type AxAIMemory, AxAIMistral, type AxAIMistralArgs, type AxAIMistralChatRequest, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, type AxAIModelListBase, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIArgs, AxAIOpenAIBase, type AxAIOpenAIBaseArgs, type AxAIOpenAIChatRequest, type AxAIOpenAIChatResponse, type AxAIOpenAIChatResponseDelta, type AxAIOpenAIConfig, AxAIOpenAIEmbedModel, type AxAIOpenAIEmbedRequest, type AxAIOpenAIEmbedResponse, type AxAIOpenAILogprob, AxAIOpenAIModel, type AxAIOpenAIResponseDelta, AxAIOpenAIResponses, type AxAIOpenAIResponsesArgs, AxAIOpenAIResponsesBase, type AxAIOpenAIResponsesCodeInterpreterToolCall, type AxAIOpenAIResponsesComputerToolCall, type AxAIOpenAIResponsesConfig, type AxAIOpenAIResponsesContentPartAddedEvent, type AxAIOpenAIResponsesContentPartDoneEvent, type AxAIOpenAIResponsesDefineFunctionTool, type AxAIOpenAIResponsesErrorEvent, type AxAIOpenAIResponsesFileSearchCallCompletedEvent, type AxAIOpenAIResponsesFileSearchCallInProgressEvent, type AxAIOpenAIResponsesFileSearchCallSearchingEvent, type AxAIOpenAIResponsesFileSearchToolCall, type AxAIOpenAIResponsesFunctionCallArgumentsDeltaEvent, type AxAIOpenAIResponsesFunctionCallArgumentsDoneEvent, type AxAIOpenAIResponsesFunctionCallItem, type AxAIOpenAIResponsesImageGenerationCallCompletedEvent, type AxAIOpenAIResponsesImageGenerationCallGeneratingEvent, type AxAIOpenAIResponsesImageGenerationCallInProgressEvent, type AxAIOpenAIResponsesImageGenerationCallPartialImageEvent, type AxAIOpenAIResponsesImageGenerationToolCall, AxAIOpenAIResponsesImpl, type AxAIOpenAIResponsesInputAudioContentPart, type AxAIOpenAIResponsesInputContentPart, type AxAIOpenAIResponsesInputFunctionCallItem, type AxAIOpenAIResponsesInputFunctionCallOutputItem, type AxAIOpenAIResponsesInputImageUrlContentPart, type AxAIOpenAIResponsesInputItem, type AxAIOpenAIResponsesInputMessageItem, type AxAIOpenAIResponsesInputTextContentPart, type AxAIOpenAIResponsesLocalShellToolCall, type AxAIOpenAIResponsesMCPCallArgumentsDeltaEvent, type AxAIOpenAIResponsesMCPCallArgumentsDoneEvent, type AxAIOpenAIResponsesMCPCallCompletedEvent, type AxAIOpenAIResponsesMCPCallFailedEvent, type AxAIOpenAIResponsesMCPCallInProgressEvent, type AxAIOpenAIResponsesMCPListToolsCompletedEvent, type AxAIOpenAIResponsesMCPListToolsFailedEvent, type AxAIOpenAIResponsesMCPListToolsInProgressEvent, type AxAIOpenAIResponsesMCPToolCall, AxAIOpenAIResponsesModel, type AxAIOpenAIResponsesOutputItem, type AxAIOpenAIResponsesOutputItemAddedEvent, type AxAIOpenAIResponsesOutputItemDoneEvent, type AxAIOpenAIResponsesOutputMessageItem, type AxAIOpenAIResponsesOutputRefusalContentPart, type AxAIOpenAIResponsesOutputTextAnnotationAddedEvent, type AxAIOpenAIResponsesOutputTextContentPart, type AxAIOpenAIResponsesOutputTextDeltaEvent, type AxAIOpenAIResponsesOutputTextDoneEvent, type AxAIOpenAIResponsesReasoningDeltaEvent, type AxAIOpenAIResponsesReasoningDoneEvent, type AxAIOpenAIResponsesReasoningItem, type AxAIOpenAIResponsesReasoningSummaryDeltaEvent, type AxAIOpenAIResponsesReasoningSummaryDoneEvent, type AxAIOpenAIResponsesReasoningSummaryPart, type AxAIOpenAIResponsesReasoningSummaryPartAddedEvent, type AxAIOpenAIResponsesReasoningSummaryPartDoneEvent, type AxAIOpenAIResponsesReasoningSummaryTextDeltaEvent, type AxAIOpenAIResponsesReasoningSummaryTextDoneEvent, type AxAIOpenAIResponsesRefusalDeltaEvent, type AxAIOpenAIResponsesRefusalDoneEvent, type AxAIOpenAIResponsesRequest, type AxAIOpenAIResponsesResponse, type AxAIOpenAIResponsesResponseCompletedEvent, type AxAIOpenAIResponsesResponseCreatedEvent, type AxAIOpenAIResponsesResponseDelta, type AxAIOpenAIResponsesResponseFailedEvent, type AxAIOpenAIResponsesResponseInProgressEvent, type AxAIOpenAIResponsesResponseIncompleteEvent, type AxAIOpenAIResponsesResponseQueuedEvent, type AxAIOpenAIResponsesStreamEvent, type AxAIOpenAIResponsesStreamEventBase, type AxAIOpenAIResponsesToolCall, type AxAIOpenAIResponsesToolCallBase, type AxAIOpenAIResponsesToolChoice, type AxAIOpenAIResponsesToolDefinition, type AxAIOpenAIResponsesWebSearchCallCompletedEvent, type AxAIOpenAIResponsesWebSearchCallInProgressEvent, type AxAIOpenAIResponsesWebSearchCallSearchingEvent, type AxAIOpenAIResponsesWebSearchToolCall, type AxAIOpenAIUsage, type AxAIPromptConfig, AxAIReka, type AxAIRekaArgs, type AxAIRekaChatRequest, type AxAIRekaChatResponse, type AxAIRekaChatResponseDelta, type AxAIRekaConfig, AxAIRekaModel, type AxAIRekaUsage, type AxAIService, AxAIServiceAbortedError, type AxAIServiceActionOptions, AxAIServiceAuthenticationError, AxAIServiceError, type AxAIServiceImpl, type AxAIServiceMetrics, AxAIServiceNetworkError, type AxAIServiceOptions, AxAIServiceResponseError, AxAIServiceStatusError, AxAIServiceStreamTerminatedError, AxAIServiceTimeoutError, AxAITogether, type AxAITogetherArgs, type AxAPI, type AxAPIConfig, AxAgent, type AxAgentFeatures, type AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, type AxBootstrapCompileOptions, AxBootstrapFewShot, type AxBootstrapOptimizerOptions, AxChainOfThought, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, AxDB, type AxDBArgs, AxDBBase, type AxDBBaseArgs, type AxDBBaseOpOptions, AxDBCloudflare, type AxDBCloudflareArgs, type AxDBCloudflareOpOptions, type AxDBLoaderOptions, AxDBManager, type AxDBManagerArgs, type AxDBMatch, AxDBMemory, type AxDBMemoryArgs, type AxDBMemoryOpOptions, AxDBPinecone, type AxDBPineconeArgs, type AxDBPineconeOpOptions, type AxDBQueryRequest, type AxDBQueryResponse, type AxDBQueryService, type AxDBService, type AxDBState, type AxDBUpsertRequest, type AxDBUpsertResponse, AxDBWeaviate, type AxDBWeaviateArgs, type AxDBWeaviateOpOptions, type AxDataRow, AxDefaultQueryRewriter, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxField, type AxFieldDescriptor, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldType, type AxFieldValue, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenOut, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJSInterpreter, AxJSInterpreterPermission, AxLLMRequestTypeValues, type AxLoggerFunction, type AxLoggerTag, AxMCPClient, AxMCPHTTPSSETransport, AxMCPStdioTransport, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPTransport, AxMemory, type AxMessage, type AxMetricFn, type AxMetricFnArgs, AxMiPRO, type AxMiPROCompileOptions, type AxMiPROOptimizerOptions, type AxMiPROOptions, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, AxMultiServiceRouter, type AxOptimizationStats, type AxOptimizer, type AxOptimizerArgs, type AxOptimizerResult, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramStreamingForwardOptions, type AxProgramTrace, type AxProgramUsage, AxProgramWithSignature, type AxProgramWithSignatureOptions, AxPromptTemplate, type AxPromptTemplateOptions, AxRAG, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxRewriteIn, type AxRewriteOut, AxRewriter, type AxSetExamplesOptions, AxSignature, type AxSignatureConfig, type AxSignatureTemplateValue, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable, ax, axAIAnthropicDefaultConfig, axAIAnthropicVertexDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIGrokBestConfig, axAIGrokDefaultConfig, axAIHuggingFaceCreativeConfig, axAIHuggingFaceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOllamaDefaultConfig, axAIOllamaDefaultCreativeConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIOpenAIResponsesBestConfig, axAIOpenAIResponsesCreativeConfig, axAIOpenAIResponsesDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axGlobals, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoReka, axModelInfoTogether, axSpanAttributes, axSpanEvents, f, s };
4276
+ export { AxAI, AxAIAnthropic, type AxAIAnthropicArgs, type AxAIAnthropicChatError, type AxAIAnthropicChatRequest, type AxAIAnthropicChatRequestCacheParam, type AxAIAnthropicChatResponse, type AxAIAnthropicChatResponseDelta, type AxAIAnthropicConfig, type AxAIAnthropicContentBlockDeltaEvent, type AxAIAnthropicContentBlockStartEvent, type AxAIAnthropicContentBlockStopEvent, type AxAIAnthropicErrorEvent, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, AxAIAnthropicVertexModel, type AxAIArgs, AxAIAzureOpenAI, type AxAIAzureOpenAIArgs, type AxAIAzureOpenAIConfig, AxAICohere, type AxAICohereArgs, type AxAICohereChatRequest, type AxAICohereChatRequestToolResults, type AxAICohereChatResponse, type AxAICohereChatResponseDelta, type AxAICohereChatResponseToolCalls, type AxAICohereConfig, AxAICohereEmbedModel, type AxAICohereEmbedRequest, type AxAICohereEmbedResponse, AxAICohereModel, AxAIDeepSeek, type AxAIDeepSeekArgs, AxAIDeepSeekModel, type AxAIEmbedModels, type AxAIFeatures, AxAIGoogleGemini, type AxAIGoogleGeminiArgs, type AxAIGoogleGeminiBatchEmbedRequest, type AxAIGoogleGeminiBatchEmbedResponse, type AxAIGoogleGeminiChatRequest, type AxAIGoogleGeminiChatResponse, type AxAIGoogleGeminiChatResponseDelta, type AxAIGoogleGeminiConfig, type AxAIGoogleGeminiContent, type AxAIGoogleGeminiContentPart, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiEmbedTypes, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiThinkingConfig, type AxAIGoogleGeminiThinkingTokenBudgetLevels, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleSearchRetrieval, type AxAIGoogleVertexBatchEmbedRequest, type AxAIGoogleVertexBatchEmbedResponse, AxAIGrok, type AxAIGrokArgs, type AxAIGrokChatRequest, AxAIGrokEmbedModels, AxAIGrokModel, type AxAIGrokOptionsTools, type AxAIGrokSearchSource, AxAIGroq, type AxAIGroqArgs, AxAIGroqModel, AxAIHuggingFace, type AxAIHuggingFaceArgs, type AxAIHuggingFaceConfig, AxAIHuggingFaceModel, type AxAIHuggingFaceRequest, type AxAIHuggingFaceResponse, type AxAIInputModelList, type AxAIMemory, AxAIMistral, type AxAIMistralArgs, type AxAIMistralChatRequest, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, type AxAIModelListBase, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIArgs, AxAIOpenAIBase, type AxAIOpenAIBaseArgs, type AxAIOpenAIChatRequest, type AxAIOpenAIChatResponse, type AxAIOpenAIChatResponseDelta, type AxAIOpenAIConfig, AxAIOpenAIEmbedModel, type AxAIOpenAIEmbedRequest, type AxAIOpenAIEmbedResponse, type AxAIOpenAILogprob, AxAIOpenAIModel, type AxAIOpenAIResponseDelta, AxAIOpenAIResponses, type AxAIOpenAIResponsesArgs, AxAIOpenAIResponsesBase, type AxAIOpenAIResponsesCodeInterpreterToolCall, type AxAIOpenAIResponsesComputerToolCall, type AxAIOpenAIResponsesConfig, type AxAIOpenAIResponsesContentPartAddedEvent, type AxAIOpenAIResponsesContentPartDoneEvent, type AxAIOpenAIResponsesDefineFunctionTool, type AxAIOpenAIResponsesErrorEvent, type AxAIOpenAIResponsesFileSearchCallCompletedEvent, type AxAIOpenAIResponsesFileSearchCallInProgressEvent, type AxAIOpenAIResponsesFileSearchCallSearchingEvent, type AxAIOpenAIResponsesFileSearchToolCall, type AxAIOpenAIResponsesFunctionCallArgumentsDeltaEvent, type AxAIOpenAIResponsesFunctionCallArgumentsDoneEvent, type AxAIOpenAIResponsesFunctionCallItem, type AxAIOpenAIResponsesImageGenerationCallCompletedEvent, type AxAIOpenAIResponsesImageGenerationCallGeneratingEvent, type AxAIOpenAIResponsesImageGenerationCallInProgressEvent, type AxAIOpenAIResponsesImageGenerationCallPartialImageEvent, type AxAIOpenAIResponsesImageGenerationToolCall, AxAIOpenAIResponsesImpl, type AxAIOpenAIResponsesInputAudioContentPart, type AxAIOpenAIResponsesInputContentPart, type AxAIOpenAIResponsesInputFunctionCallItem, type AxAIOpenAIResponsesInputFunctionCallOutputItem, type AxAIOpenAIResponsesInputImageUrlContentPart, type AxAIOpenAIResponsesInputItem, type AxAIOpenAIResponsesInputMessageItem, type AxAIOpenAIResponsesInputTextContentPart, type AxAIOpenAIResponsesLocalShellToolCall, type AxAIOpenAIResponsesMCPCallArgumentsDeltaEvent, type AxAIOpenAIResponsesMCPCallArgumentsDoneEvent, type AxAIOpenAIResponsesMCPCallCompletedEvent, type AxAIOpenAIResponsesMCPCallFailedEvent, type AxAIOpenAIResponsesMCPCallInProgressEvent, type AxAIOpenAIResponsesMCPListToolsCompletedEvent, type AxAIOpenAIResponsesMCPListToolsFailedEvent, type AxAIOpenAIResponsesMCPListToolsInProgressEvent, type AxAIOpenAIResponsesMCPToolCall, AxAIOpenAIResponsesModel, type AxAIOpenAIResponsesOutputItem, type AxAIOpenAIResponsesOutputItemAddedEvent, type AxAIOpenAIResponsesOutputItemDoneEvent, type AxAIOpenAIResponsesOutputMessageItem, type AxAIOpenAIResponsesOutputRefusalContentPart, type AxAIOpenAIResponsesOutputTextAnnotationAddedEvent, type AxAIOpenAIResponsesOutputTextContentPart, type AxAIOpenAIResponsesOutputTextDeltaEvent, type AxAIOpenAIResponsesOutputTextDoneEvent, type AxAIOpenAIResponsesReasoningDeltaEvent, type AxAIOpenAIResponsesReasoningDoneEvent, type AxAIOpenAIResponsesReasoningItem, type AxAIOpenAIResponsesReasoningSummaryDeltaEvent, type AxAIOpenAIResponsesReasoningSummaryDoneEvent, type AxAIOpenAIResponsesReasoningSummaryPart, type AxAIOpenAIResponsesReasoningSummaryPartAddedEvent, type AxAIOpenAIResponsesReasoningSummaryPartDoneEvent, type AxAIOpenAIResponsesReasoningSummaryTextDeltaEvent, type AxAIOpenAIResponsesReasoningSummaryTextDoneEvent, type AxAIOpenAIResponsesRefusalDeltaEvent, type AxAIOpenAIResponsesRefusalDoneEvent, type AxAIOpenAIResponsesRequest, type AxAIOpenAIResponsesResponse, type AxAIOpenAIResponsesResponseCompletedEvent, type AxAIOpenAIResponsesResponseCreatedEvent, type AxAIOpenAIResponsesResponseDelta, type AxAIOpenAIResponsesResponseFailedEvent, type AxAIOpenAIResponsesResponseInProgressEvent, type AxAIOpenAIResponsesResponseIncompleteEvent, type AxAIOpenAIResponsesResponseQueuedEvent, type AxAIOpenAIResponsesStreamEvent, type AxAIOpenAIResponsesStreamEventBase, type AxAIOpenAIResponsesToolCall, type AxAIOpenAIResponsesToolCallBase, type AxAIOpenAIResponsesToolChoice, type AxAIOpenAIResponsesToolDefinition, type AxAIOpenAIResponsesWebSearchCallCompletedEvent, type AxAIOpenAIResponsesWebSearchCallInProgressEvent, type AxAIOpenAIResponsesWebSearchCallSearchingEvent, type AxAIOpenAIResponsesWebSearchToolCall, type AxAIOpenAIUsage, type AxAIPromptConfig, AxAIReka, type AxAIRekaArgs, type AxAIRekaChatRequest, type AxAIRekaChatResponse, type AxAIRekaChatResponseDelta, type AxAIRekaConfig, AxAIRekaModel, type AxAIRekaUsage, type AxAIService, AxAIServiceAbortedError, type AxAIServiceActionOptions, AxAIServiceAuthenticationError, AxAIServiceError, type AxAIServiceImpl, type AxAIServiceMetrics, AxAIServiceNetworkError, type AxAIServiceOptions, AxAIServiceResponseError, AxAIServiceStatusError, AxAIServiceStreamTerminatedError, AxAIServiceTimeoutError, AxAITogether, type AxAITogetherArgs, type AxAPI, type AxAPIConfig, AxAgent, type AxAgentFeatures, type AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBaseOptimizer, type AxBootstrapCompileOptions, AxBootstrapFewShot, type AxBootstrapOptimizerOptions, AxChainOfThought, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCompileOptions, type AxCostTracker, type AxCostTrackerOptions, AxDB, type AxDBArgs, AxDBBase, type AxDBBaseArgs, type AxDBBaseOpOptions, AxDBCloudflare, type AxDBCloudflareArgs, type AxDBCloudflareOpOptions, type AxDBLoaderOptions, AxDBManager, type AxDBManagerArgs, type AxDBMatch, AxDBMemory, type AxDBMemoryArgs, type AxDBMemoryOpOptions, AxDBPinecone, type AxDBPineconeArgs, type AxDBPineconeOpOptions, type AxDBQueryRequest, type AxDBQueryResponse, type AxDBQueryService, type AxDBService, type AxDBState, type AxDBUpsertRequest, type AxDBUpsertResponse, AxDBWeaviate, type AxDBWeaviateArgs, type AxDBWeaviateOpOptions, type AxDataRow, AxDefaultCostTracker, AxDefaultQueryRewriter, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxField, type AxFieldDescriptor, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldType, type AxFieldValue, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenOut, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJSInterpreter, AxJSInterpreterPermission, AxLLMRequestTypeValues, type AxLoggerFunction, type AxLoggerTag, AxMCPClient, AxMCPHTTPSSETransport, AxMCPStdioTransport, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPTransport, AxMemory, type AxMessage, type AxMetricFn, type AxMetricFnArgs, AxMiPRO, type AxMiPROCompileOptions, type AxMiPROOptimizerOptions, type AxMiPROResult, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, type AxMultiMetricFn, AxMultiServiceRouter, type AxOptimizationCheckpoint, type AxOptimizationProgress, type AxOptimizationStats, type AxOptimizer, type AxOptimizerArgs, type AxOptimizerResult, type AxParetoResult, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramStreamingForwardOptions, type AxProgramTrace, type AxProgramUsage, AxProgramWithSignature, type AxProgramWithSignatureOptions, AxPromptTemplate, type AxPromptTemplateOptions, AxRAG, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxRewriteIn, type AxRewriteOut, AxRewriter, type AxSetExamplesOptions, AxSignature, type AxSignatureConfig, type AxSignatureTemplateValue, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable, ax, axAIAnthropicDefaultConfig, axAIAnthropicVertexDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIGrokBestConfig, axAIGrokDefaultConfig, axAIHuggingFaceCreativeConfig, axAIHuggingFaceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOllamaDefaultConfig, axAIOllamaDefaultCreativeConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIOpenAIResponsesBestConfig, axAIOpenAIResponsesCreativeConfig, axAIOpenAIResponsesDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axCreateDefaultLogger, axCreateDefaultTextLogger, axCreateOptimizerLogger, axDefaultOptimizerLogger, axGlobals, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoReka, axModelInfoTogether, axSpanAttributes, axSpanEvents, f, s };