@ax-llm/ax 14.0.19 → 14.0.22

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.ts CHANGED
@@ -155,7 +155,7 @@ declare class AxContentProcessingError extends Error {
155
155
  type AxAIInputModelList<TModel, TEmbedModel, TModelKey> = (AxAIModelListBase<TModelKey> & {
156
156
  isInternal?: boolean;
157
157
  /** Optional per-model config applied when this key is used (callers still override) */
158
- modelConfig?: AxModelConfig;
158
+ modelConfig?: Omit<AxModelConfig, 'model' | 'embedModel'>;
159
159
  /** Optional per-model options applied when this key is used (callers still override) */
160
160
  thinkingTokenBudget?: AxAIServiceOptions['thinkingTokenBudget'];
161
161
  showThoughts?: AxAIServiceOptions['showThoughts'];
@@ -597,6 +597,7 @@ interface AxAIMemory {
597
597
  getLast(sessionId?: string): AxMemoryData[number] | undefined;
598
598
  addTag(name: string, sessionId?: string): void;
599
599
  rewindToTag(name: string, sessionId?: string): AxMemoryData;
600
+ removeByTag(name: string, sessionId?: string): AxMemoryData;
600
601
  }
601
602
 
602
603
  interface AxFieldType {
@@ -617,14 +618,14 @@ declare class AxSignatureBuilder<_TInput extends Record<string, any> = {}, _TOut
617
618
  * @param fieldInfo - Field type created with f.string(), f.number(), etc.
618
619
  * @param prepend - If true, adds field to the beginning of input fields
619
620
  */
620
- input<K extends string, T extends AxFluentFieldInfo<any, any, any, any> | AxFluentFieldType>(name: K, fieldInfo: T, prepend?: boolean): AxSignatureBuilder<_TInput & Record<K, InferFluentType<T>>, _TOutput>;
621
+ input<K extends string, T extends AxFluentFieldInfo<any, any, any, any> | AxFluentFieldType<any, any, any, any, any>>(name: K, fieldInfo: T, prepend?: boolean): AxSignatureBuilder<AddFieldToShape<_TInput, K, T>, _TOutput>;
621
622
  /**
622
623
  * Add an output field to the signature
623
624
  * @param name - Field name
624
625
  * @param fieldInfo - Field type created with f.string(), f.number(), etc.
625
626
  * @param prepend - If true, adds field to the beginning of output fields
626
627
  */
627
- output<K extends string, T extends AxFluentFieldInfo<any, any, any, any> | AxFluentFieldType>(name: K, fieldInfo: T, prepend?: boolean): AxSignatureBuilder<_TInput, _TOutput & Record<K, InferFluentType<T>>>;
628
+ output<K extends string, T extends AxFluentFieldInfo<any, any, any, any> | AxFluentFieldType<any, any, any, any, any>>(name: K, fieldInfo: T, prepend?: boolean): AxSignatureBuilder<_TInput, AddFieldToShape<_TOutput, K, T>>;
628
629
  /**
629
630
  * Set the description for the signature
630
631
  * @param description - Description text
@@ -635,31 +636,38 @@ declare class AxSignatureBuilder<_TInput extends Record<string, any> = {}, _TOut
635
636
  */
636
637
  build(): AxSignature<_TInput, _TOutput>;
637
638
  }
638
- declare class AxFluentFieldType implements AxFieldType {
639
- readonly type: AxFieldType['type'];
640
- readonly isArray?: boolean;
641
- readonly options?: readonly string[];
639
+ declare class AxFluentFieldType<TType extends AxFieldType['type'] = AxFieldType['type'], TIsArray extends boolean = false, TOptions extends readonly string[] | undefined = undefined, TIsOptional extends boolean = false, TIsInternal extends boolean = false> implements AxFieldType {
640
+ readonly type: TType;
641
+ readonly isArray?: TIsArray;
642
+ readonly options?: TOptions;
642
643
  readonly description?: string;
643
- readonly isOptional?: boolean;
644
- readonly isInternal?: boolean;
645
- constructor(fieldType: AxFieldType);
646
- optional(): AxFluentFieldType;
647
- array(): AxFluentFieldType;
648
- internal(): AxFluentFieldType;
644
+ readonly isOptional?: TIsOptional;
645
+ readonly isInternal?: TIsInternal;
646
+ constructor(fieldType: {
647
+ type: TType;
648
+ isArray?: TIsArray;
649
+ options?: TOptions;
650
+ description?: string;
651
+ isOptional?: TIsOptional;
652
+ isInternal?: TIsInternal;
653
+ });
654
+ optional(): AxFluentFieldType<TType, TIsArray, TOptions, true, TIsInternal>;
655
+ array(): AxFluentFieldType<TType, true, TOptions, TIsOptional, TIsInternal>;
656
+ internal(): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, true>;
649
657
  }
650
658
  declare const f: (() => AxSignatureBuilder) & {
651
- string: (desc?: string) => AxFluentFieldType;
652
- number: (desc?: string) => AxFluentFieldType;
653
- boolean: (desc?: string) => AxFluentFieldType;
654
- json: (desc?: string) => AxFluentFieldType;
655
- datetime: (desc?: string) => AxFluentFieldType;
656
- date: (desc?: string) => AxFluentFieldType;
657
- class: <const TOptions extends readonly string[]>(options: TOptions, desc?: string) => AxFluentFieldType;
658
- image: (desc?: string) => AxFluentFieldType;
659
- audio: (desc?: string) => AxFluentFieldType;
660
- file: (desc?: string) => AxFluentFieldType;
661
- url: (desc?: string) => AxFluentFieldType;
662
- code: (language?: string, desc?: string) => AxFluentFieldType;
659
+ string: (desc?: string) => AxFluentFieldType<"string", false, undefined, false, false>;
660
+ number: (desc?: string) => AxFluentFieldType<"number", false, undefined, false, false>;
661
+ boolean: (desc?: string) => AxFluentFieldType<"boolean", false, undefined, false, false>;
662
+ json: (desc?: string) => AxFluentFieldType<"json", false, undefined, false, false>;
663
+ datetime: (desc?: string) => AxFluentFieldType<"datetime", false, undefined, false, false>;
664
+ date: (desc?: string) => AxFluentFieldType<"date", false, undefined, false, false>;
665
+ class: <const TOptions extends readonly string[]>(options: TOptions, desc?: string) => AxFluentFieldType<"class", false, TOptions, false, false>;
666
+ image: (desc?: string) => AxFluentFieldType<"image", false, undefined, false, false>;
667
+ audio: (desc?: string) => AxFluentFieldType<"audio", false, undefined, false, false>;
668
+ file: (desc?: string) => AxFluentFieldType<"file", false, undefined, false, false>;
669
+ url: (desc?: string) => AxFluentFieldType<"url", false, undefined, false, false>;
670
+ code: (language?: string, desc?: string) => AxFluentFieldType<"code", false, undefined, false, false>;
663
671
  array: <T extends AxFluentFieldInfo<any, any, any, any>>(baseType: T) => AxFluentFieldInfo<T["type"], true, T["options"], T["isOptional"]>;
664
672
  optional: <T extends AxFluentFieldInfo<any, any, any, any>>(baseType: T) => AxFluentFieldInfo<T["type"], T["isArray"], T["options"], true>;
665
673
  internal: <T extends AxFluentFieldInfo<any, any, any, any>>(baseType: T) => T & {
@@ -748,6 +756,17 @@ type InferFluentType<T extends AxFluentFieldInfo<any, any, any, any> | AxFluentF
748
756
  mimeType: string;
749
757
  fileUri: string;
750
758
  } : T['type'] extends 'url' ? T['isArray'] extends true ? string[] : string : T['type'] extends 'code' ? T['isArray'] extends true ? string[] : string : T['type'] extends 'class' ? T['options'] extends readonly (infer U)[] ? T['isArray'] extends true ? U[] : U : T['isArray'] extends true ? string[] : string : any;
759
+ type _IsInternal<T> = T extends {
760
+ readonly isInternal: true;
761
+ } ? true : false;
762
+ type _IsOptional<T> = T extends {
763
+ readonly isOptional: true;
764
+ } ? true : false;
765
+ type AddFieldToShape<S extends Record<string, any>, K extends string, T extends AxFluentFieldInfo<any, any, any, any> | AxFluentFieldType> = _IsInternal<T> extends true ? S : _IsOptional<T> extends true ? S & {
766
+ readonly [P in K]?: InferFluentType<T>;
767
+ } : S & {
768
+ readonly [P in K]: InferFluentType<T>;
769
+ };
751
770
  interface AxSignatureConfig {
752
771
  description?: string;
753
772
  inputs: readonly AxField[];
@@ -846,6 +865,7 @@ declare class AxMemory implements AxAIMemory {
846
865
  }>, sessionId?: string): void;
847
866
  addTag(name: string, sessionId?: string): void;
848
867
  rewindToTag(name: string, sessionId?: string): AxMemoryData;
868
+ removeByTag(name: string, sessionId?: string): AxMemoryData;
849
869
  history(index: number, sessionId?: string): ({
850
870
  role: "system";
851
871
  content: string;
@@ -976,6 +996,38 @@ type AxInputFunctionType = (AxFunction | {
976
996
  toFunction: () => AxFunction | AxFunction[];
977
997
  })[];
978
998
 
999
+ type AxFieldProcessorProcess = (value: AxFieldValue, context?: Readonly<{
1000
+ values?: AxGenOut;
1001
+ sessionId?: string;
1002
+ done?: boolean;
1003
+ }>) => unknown | Promise<unknown>;
1004
+ type AxStreamingFieldProcessorProcess = (value: string, context?: Readonly<{
1005
+ values?: AxGenOut;
1006
+ sessionId?: string;
1007
+ done?: boolean;
1008
+ }>) => unknown | Promise<unknown>;
1009
+ interface AxFieldProcessor {
1010
+ field: Readonly<AxField>;
1011
+ /**
1012
+ * Process the field value and return a new value (or undefined if no update is needed).
1013
+ * The returned value may be merged back into memory.
1014
+ * @param value - The current field value.
1015
+ * @param context - Additional context (e.g. memory and session id).
1016
+ */
1017
+ process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
1018
+ }
1019
+
1020
+ interface AxGEPAEvaluationBatch<Traj = any, Out = any> {
1021
+ outputs: Out[];
1022
+ scores: number[];
1023
+ trajectories?: Traj[] | null;
1024
+ }
1025
+ interface AxGEPAAdapter<Datum = any, Traj = any, Out = any> {
1026
+ evaluate(batch: readonly Datum[], candidate: Readonly<Record<string, string>>, captureTraces?: boolean): Promise<AxGEPAEvaluationBatch<Traj, Out>> | AxGEPAEvaluationBatch<Traj, Out>;
1027
+ make_reflective_dataset(candidate: Readonly<Record<string, string>>, evalBatch: Readonly<AxGEPAEvaluationBatch<Traj, Out>>, componentsToUpdate: readonly string[]): Record<string, any[]>;
1028
+ propose_new_texts?: (candidate: Readonly<Record<string, string>>, reflectiveDataset: Readonly<Record<string, any[]>>, componentsToUpdate: readonly string[]) => Promise<Record<string, string>> | Record<string, string>;
1029
+ }
1030
+
979
1031
  type AxOptimizerLoggerData = {
980
1032
  name: 'OptimizationStart';
981
1033
  value: {
@@ -1047,7 +1099,7 @@ type AxMetricFnArgs = Parameters<AxMetricFn>[0];
1047
1099
  type AxMultiMetricFn = <T = any>(arg0: Readonly<{
1048
1100
  prediction: T;
1049
1101
  example: AxExample;
1050
- }>) => Record<string, number>;
1102
+ }>) => Record<string, number> | Promise<Record<string, number>>;
1051
1103
  interface AxOptimizationProgress {
1052
1104
  round: number;
1053
1105
  totalRounds: number;
@@ -1184,132 +1236,10 @@ interface AxCompileOptions {
1184
1236
  overrideCheckpointLoad?: AxCheckpointLoadFn;
1185
1237
  overrideCheckpointInterval?: number;
1186
1238
  saveCheckpointOnComplete?: boolean;
1187
- }
1188
-
1189
- type AxFieldProcessorProcess = (value: AxFieldValue, context?: Readonly<{
1190
- values?: AxGenOut;
1191
- sessionId?: string;
1192
- done?: boolean;
1193
- }>) => unknown | Promise<unknown>;
1194
- type AxStreamingFieldProcessorProcess = (value: string, context?: Readonly<{
1195
- values?: AxGenOut;
1196
- sessionId?: string;
1197
- done?: boolean;
1198
- }>) => unknown | Promise<unknown>;
1199
- interface AxFieldProcessor {
1200
- field: Readonly<AxField>;
1201
- /**
1202
- * Process the field value and return a new value (or undefined if no update is needed).
1203
- * The returned value may be merged back into memory.
1204
- * @param value - The current field value.
1205
- * @param context - Additional context (e.g. memory and session id).
1206
- */
1207
- process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
1208
- }
1209
-
1210
- declare class AxProgram<IN, OUT> implements AxUsable, AxTunable<IN, OUT> {
1211
- protected signature: AxSignature;
1212
- protected sigHash: string;
1213
- protected examples?: OUT[];
1214
- protected examplesOptions?: AxSetExamplesOptions;
1215
- protected demos?: OUT[];
1216
- protected trace?: OUT;
1217
- protected usage: AxProgramUsage[];
1218
- protected traceLabel?: string;
1219
- private key;
1220
- private children;
1221
- constructor(signature: ConstructorParameters<typeof AxSignature>[0], options?: Readonly<AxProgramOptions>);
1222
- getSignature(): AxSignature;
1223
- setSignature(signature: ConstructorParameters<typeof AxSignature>[0]): void;
1224
- setDescription(description: string): void;
1225
- private updateSignatureHash;
1226
- register(prog: Readonly<AxTunable<IN, OUT> & AxUsable>): void;
1227
- setId(id: string): void;
1228
- setParentId(parentId: string): void;
1229
- setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
1230
- private _setExamples;
1231
- getTraces(): AxProgramTrace<IN, OUT>[];
1232
- getUsage(): AxProgramUsage[];
1233
- resetUsage(): void;
1234
- setDemos(demos: readonly AxProgramDemos<IN, OUT>[]): void;
1235
- /**
1236
- * Apply optimized configuration to this program
1237
- * @param optimizedProgram The optimized program configuration to apply
1238
- */
1239
- applyOptimization(optimizedProgram: AxOptimizedProgram<OUT>): void;
1240
- }
1241
-
1242
- type AxGenerateResult<OUT> = OUT & {
1243
- thought?: string;
1244
- };
1245
- interface AxResponseHandlerArgs<T> {
1246
- ai: Readonly<AxAIService>;
1247
- model?: string;
1248
- res: T;
1249
- mem: AxAIMemory;
1250
- sessionId?: string;
1251
- traceId?: string;
1252
- functions: Readonly<AxFunction[]>;
1253
- strictMode?: boolean;
1254
- span?: Span;
1255
- logger: AxLoggerFunction;
1256
- }
1257
- interface AxStreamingEvent<T> {
1258
- event: 'delta' | 'done' | 'error';
1259
- data: {
1260
- contentDelta?: string;
1261
- partialValues?: Partial<T>;
1262
- error?: string;
1263
- functions?: AxChatResponseFunctionCall[];
1264
- };
1265
- }
1266
- declare class AxGen<IN = any, OUT extends AxGenOut = any> extends AxProgram<IN, OUT> implements AxProgrammable<IN, OUT> {
1267
- private promptTemplate;
1268
- private asserts;
1269
- private streamingAsserts;
1270
- private options?;
1271
- private functions;
1272
- private fieldProcessors;
1273
- private streamingFieldProcessors;
1274
- private excludeContentFromTrace;
1275
- private thoughtFieldName;
1276
- private signatureToolCallingManager?;
1277
- constructor(signature: NonNullable<ConstructorParameters<typeof AxSignature>[0]> | AxSignature<any, any>, options?: Readonly<AxProgramForwardOptions<any>>);
1278
- private getSignatureName;
1279
- private getMetricsInstruments;
1280
- updateMeter(meter?: Meter): void;
1281
- private createStates;
1282
- addAssert: (fn: AxAssertion["fn"], message?: string) => void;
1283
- addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
1284
- private addFieldProcessorInternal;
1285
- addStreamingFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
1286
- addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
1287
- private forwardSendRequest;
1288
- private forwardCore;
1289
- private _forward2;
1290
- _forward1(ai: Readonly<AxAIService>, values: IN | AxMessage<IN>[], options: Readonly<AxProgramForwardOptions<any>>): AxGenStreamingOut<OUT>;
1291
- forward<T extends Readonly<AxAIService>>(ai: T, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramForwardOptionsWithModels<T>>): Promise<OUT>;
1292
- streamingForward<T extends Readonly<AxAIService>>(ai: T, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramStreamingForwardOptionsWithModels<T>>): AxGenStreamingOut<OUT>;
1293
- setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
1294
- private isDebug;
1295
- private getLogger;
1296
- }
1297
- type AxGenerateErrorDetails = {
1298
- model?: string;
1299
- maxTokens?: number;
1300
- streaming: boolean;
1301
- signature: {
1302
- input: Readonly<AxIField[]>;
1303
- output: Readonly<AxIField[]>;
1304
- description?: string;
1305
- };
1306
- };
1307
- type ErrorOptions = {
1308
- cause?: Error;
1309
- };
1310
- declare class AxGenerateError extends Error {
1311
- readonly details: AxGenerateErrorDetails;
1312
- constructor(message: string, details: Readonly<AxGenerateErrorDetails>, options?: ErrorOptions);
1239
+ gepaAdapter?: AxGEPAAdapter<any, any, any>;
1240
+ skipPerfectScore?: boolean;
1241
+ perfectScore?: number;
1242
+ maxMetricCalls?: number;
1313
1243
  }
1314
1244
 
1315
1245
  interface AxOptimizerMetricsConfig {
@@ -1782,6 +1712,111 @@ declare abstract class AxBaseOptimizer implements AxOptimizer {
1782
1712
  reset(): void;
1783
1713
  }
1784
1714
 
1715
+ declare class AxProgram<IN, OUT> implements AxUsable, AxTunable<IN, OUT> {
1716
+ protected signature: AxSignature;
1717
+ protected sigHash: string;
1718
+ protected examples?: OUT[];
1719
+ protected examplesOptions?: AxSetExamplesOptions;
1720
+ protected demos?: OUT[];
1721
+ protected trace?: OUT;
1722
+ protected usage: AxProgramUsage[];
1723
+ protected traceLabel?: string;
1724
+ private key;
1725
+ private children;
1726
+ constructor(signature: ConstructorParameters<typeof AxSignature>[0], options?: Readonly<AxProgramOptions>);
1727
+ getSignature(): AxSignature;
1728
+ setSignature(signature: ConstructorParameters<typeof AxSignature>[0]): void;
1729
+ setDescription(description: string): void;
1730
+ private updateSignatureHash;
1731
+ register(prog: Readonly<AxTunable<IN, OUT> & AxUsable>): void;
1732
+ setId(id: string): void;
1733
+ setParentId(parentId: string): void;
1734
+ setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
1735
+ private _setExamples;
1736
+ getTraces(): AxProgramTrace<IN, OUT>[];
1737
+ getUsage(): AxProgramUsage[];
1738
+ resetUsage(): void;
1739
+ setDemos(demos: readonly AxProgramDemos<IN, OUT>[]): void;
1740
+ /**
1741
+ * Apply optimized configuration to this program
1742
+ * @param optimizedProgram The optimized program configuration to apply
1743
+ */
1744
+ applyOptimization(optimizedProgram: AxOptimizedProgram<OUT>): void;
1745
+ }
1746
+
1747
+ type AxGenerateResult<OUT> = OUT & {
1748
+ thought?: string;
1749
+ };
1750
+ interface AxResponseHandlerArgs<T> {
1751
+ ai: Readonly<AxAIService>;
1752
+ model?: string;
1753
+ res: T;
1754
+ mem: AxAIMemory;
1755
+ sessionId?: string;
1756
+ traceId?: string;
1757
+ functions: Readonly<AxFunction[]>;
1758
+ strictMode?: boolean;
1759
+ span?: Span;
1760
+ logger: AxLoggerFunction;
1761
+ }
1762
+ interface AxStreamingEvent<T> {
1763
+ event: 'delta' | 'done' | 'error';
1764
+ data: {
1765
+ contentDelta?: string;
1766
+ partialValues?: Partial<T>;
1767
+ error?: string;
1768
+ functions?: AxChatResponseFunctionCall[];
1769
+ };
1770
+ }
1771
+ declare class AxGen<IN = any, OUT extends AxGenOut = any> extends AxProgram<IN, OUT> implements AxProgrammable<IN, OUT> {
1772
+ private promptTemplate;
1773
+ private asserts;
1774
+ private streamingAsserts;
1775
+ private options?;
1776
+ private functions;
1777
+ private fieldProcessors;
1778
+ private streamingFieldProcessors;
1779
+ private excludeContentFromTrace;
1780
+ private thoughtFieldName;
1781
+ private signatureToolCallingManager?;
1782
+ constructor(signature: NonNullable<ConstructorParameters<typeof AxSignature>[0]> | AxSignature<any, any>, options?: Readonly<AxProgramForwardOptions<any>>);
1783
+ private getSignatureName;
1784
+ private getMetricsInstruments;
1785
+ updateMeter(meter?: Meter): void;
1786
+ private createStates;
1787
+ addAssert: (fn: AxAssertion["fn"], message?: string) => void;
1788
+ addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
1789
+ private addFieldProcessorInternal;
1790
+ addStreamingFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
1791
+ addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
1792
+ private forwardSendRequest;
1793
+ private forwardCore;
1794
+ private _forward2;
1795
+ _forward1(ai: Readonly<AxAIService>, values: IN | AxMessage<IN>[], options: Readonly<AxProgramForwardOptions<any>>): AxGenStreamingOut<OUT>;
1796
+ forward<T extends Readonly<AxAIService>>(ai: T, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramForwardOptionsWithModels<T>>): Promise<OUT>;
1797
+ streamingForward<T extends Readonly<AxAIService>>(ai: T, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramStreamingForwardOptionsWithModels<T>>): AxGenStreamingOut<OUT>;
1798
+ setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
1799
+ private isDebug;
1800
+ private getLogger;
1801
+ }
1802
+ type AxGenerateErrorDetails = {
1803
+ model?: string;
1804
+ maxTokens?: number;
1805
+ streaming: boolean;
1806
+ signature: {
1807
+ input: Readonly<AxIField[]>;
1808
+ output: Readonly<AxIField[]>;
1809
+ description?: string;
1810
+ };
1811
+ };
1812
+ type ErrorOptions = {
1813
+ cause?: Error;
1814
+ };
1815
+ declare class AxGenerateError extends Error {
1816
+ readonly details: AxGenerateErrorDetails;
1817
+ constructor(message: string, details: Readonly<AxGenerateErrorDetails>, options?: ErrorOptions);
1818
+ }
1819
+
1785
1820
  type Writeable<T> = {
1786
1821
  -readonly [P in keyof T]: T[P];
1787
1822
  };
@@ -1890,12 +1925,26 @@ interface TypeMap {
1890
1925
  type ParseClassOptions<S extends string> = S extends `${infer First},${infer Rest}` ? Trim<First> | ParseClassOptions<Trim<Rest>> : S extends `${infer First}|${infer Rest}` ? Trim<First> | ParseClassOptions<Trim<Rest>> : S extends `${infer First} | ${infer Rest}` ? Trim<First> | ParseClassOptions<Trim<Rest>> : S extends `${infer First}, ${infer Rest}` ? Trim<First> | ParseClassOptions<Trim<Rest>> : Trim<S>;
1891
1926
  type ResolveType<T extends string> = T extends keyof TypeMap ? TypeMap[T] : T extends `${infer BaseType}[]` ? BaseType extends keyof TypeMap ? TypeMap[BaseType][] : any[] : T extends `class[]|${infer Options}` ? ParseClassOptions<Options>[] : T extends `class|${infer Options}` ? ParseClassOptions<Options> : T extends 'class' ? string : any;
1892
1927
  type Trim<S extends string> = S extends ` ${infer T}` ? Trim<T> : S extends `\n${infer T}` ? Trim<T> : S extends `\t${infer T}` ? Trim<T> : S extends `\r${infer T}` ? Trim<T> : S extends `${infer U} ` ? Trim<U> : S extends `${infer U}\n` ? Trim<U> : S extends `${infer U}\t` ? Trim<U> : S extends `${infer U}\r` ? Trim<U> : S;
1893
- type ParseField<S extends string> = S extends `${infer Name}?` ? {
1928
+ type ParseField<S extends string> = S extends `${infer Name}?!` ? {
1929
+ name: Trim<Name>;
1930
+ optional: true;
1931
+ internal: true;
1932
+ } : S extends `${infer Name}!?` ? {
1933
+ name: Trim<Name>;
1934
+ optional: true;
1935
+ internal: true;
1936
+ } : S extends `${infer Name}?` ? {
1894
1937
  name: Trim<Name>;
1895
1938
  optional: true;
1939
+ internal: false;
1940
+ } : S extends `${infer Name}!` ? {
1941
+ name: Trim<Name>;
1942
+ optional: false;
1943
+ internal: true;
1896
1944
  } : {
1897
1945
  name: Trim<S>;
1898
1946
  optional: false;
1947
+ internal: false;
1899
1948
  };
1900
1949
  type ExtractType<S extends string> = S extends `class[] "${infer Options}" "${infer _Desc}"` ? `class[]|${Options}` : S extends `class[] "${infer Options}"` ? `class[]|${Options}` : S extends `class "${infer Options}" "${infer _Desc}"` ? `class|${Options}` : S extends `class "${infer Options}"` ? `class|${Options}` : S extends `${infer Type}[] "${infer _Desc}"` ? `${Type}[]` : S extends `${infer Type}[]` ? `${Type}[]` : S extends `${infer Type} "${infer _Desc}"` ? Type : S;
1901
1950
  type ParseNameAndType<S extends string> = S extends `${infer Name}:${infer TypePart}` ? ParseField<Name> & {
@@ -1978,10 +2027,11 @@ type BuildObject<T extends readonly {
1978
2027
  name: string;
1979
2028
  type: string;
1980
2029
  optional: boolean;
2030
+ internal?: boolean;
1981
2031
  }[]> = {
1982
- -readonly [K in T[number] as K['optional'] extends false ? K['name'] : never]: ResolveType<K['type']>;
2032
+ -readonly [K in T[number] as K['internal'] extends true ? never : K['optional'] extends false ? K['name'] : never]: ResolveType<K['type']>;
1983
2033
  } & {
1984
- -readonly [K in T[number] as K['optional'] extends true ? K['name'] : never]?: ResolveType<K['type']>;
2034
+ -readonly [K in T[number] as K['internal'] extends true ? never : K['optional'] extends true ? K['name'] : never]?: ResolveType<K['type']>;
1985
2035
  };
1986
2036
  type StripSignatureDescription<S extends string> = S extends `"${infer _Desc}" ${infer Rest}` ? Trim<Rest> : S;
1987
2037
  /**
@@ -2056,11 +2106,11 @@ type AxMessage<IN> = {
2056
2106
  values: IN;
2057
2107
  };
2058
2108
  type AxProgramTrace<IN, OUT> = {
2059
- trace: OUT & IN;
2109
+ trace: OUT & Partial<IN>;
2060
2110
  programId: string;
2061
2111
  };
2062
2112
  type AxProgramDemos<IN, OUT> = {
2063
- traces: (OUT & IN)[];
2113
+ traces: (OUT & Partial<IN>)[];
2064
2114
  programId: string;
2065
2115
  };
2066
2116
  type AxProgramExamples<IN, OUT> = AxProgramDemos<IN, OUT> | AxProgramDemos<IN, OUT>['traces'];
@@ -2099,6 +2149,7 @@ type AxProgramForwardOptions<MODEL> = AxAIServiceOptions & {
2099
2149
  fastFail?: boolean;
2100
2150
  showThoughts?: boolean;
2101
2151
  functionCallMode?: 'auto' | 'native' | 'prompt';
2152
+ disableMemoryCleanup?: boolean;
2102
2153
  traceLabel?: string;
2103
2154
  description?: string;
2104
2155
  thoughtFieldName?: string;
@@ -2151,6 +2202,11 @@ interface AxProgramOptions {
2151
2202
  traceLabel?: string;
2152
2203
  }
2153
2204
 
2205
+ type AxExamples<T> = T extends AxSignature<infer IN, infer OUT> ? OUT & Partial<IN> : T extends AxSignatureBuilder<infer IN2, infer OUT2> ? OUT2 & Partial<IN2> : T extends AxGen<infer IN4, infer OUT4> ? OUT4 & Partial<IN4> : T extends string ? ParseSignature<T> extends {
2206
+ inputs: infer IN3;
2207
+ outputs: infer OUT3;
2208
+ } ? OUT3 & Partial<IN3> : never : never;
2209
+
2154
2210
  interface AxAIFeatures {
2155
2211
  functions: boolean;
2156
2212
  streaming: boolean;
@@ -2332,6 +2388,10 @@ declare enum AxAIAnthropicVertexModel {
2332
2388
  type AxAIAnthropicThinkingConfig = {
2333
2389
  type: 'enabled';
2334
2390
  budget_tokens: number;
2391
+ /** Optional: numeric budget hint used in config normalization */
2392
+ thinkingTokenBudget?: number;
2393
+ /** Optional: include provider thinking content in outputs */
2394
+ includeThoughts?: boolean;
2335
2395
  };
2336
2396
  type AxAIAnthropicThinkingTokenBudgetLevels = {
2337
2397
  minimal?: number;
@@ -5572,6 +5632,88 @@ declare class AxBootstrapFewShot extends AxBaseOptimizer {
5572
5632
  compile<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxOptimizerResult<OUT>>;
5573
5633
  }
5574
5634
 
5635
+ /** Single-module GEPA (reflective prompt evolution with Pareto sampling) */
5636
+ declare class AxGEPA extends AxBaseOptimizer {
5637
+ private numTrials;
5638
+ private minibatch;
5639
+ private minibatchSize;
5640
+ private earlyStoppingTrials;
5641
+ private minImprovementThreshold;
5642
+ private sampleCount;
5643
+ private paretoSetSize;
5644
+ private crossoverEvery;
5645
+ private tieEpsilon;
5646
+ private feedbackMemorySize;
5647
+ private feedbackMemory;
5648
+ private mergeMax;
5649
+ private mergesUsed;
5650
+ private mergesDue;
5651
+ private totalMergesTested;
5652
+ private lastIterFoundNewProgram;
5653
+ private mergeAttemptKeys;
5654
+ private mergeCompositionKeys;
5655
+ private rngState;
5656
+ private samplerState;
5657
+ private localScoreHistory;
5658
+ private localConfigurationHistory;
5659
+ constructor(args: Readonly<AxOptimizerArgs>);
5660
+ reset(): void;
5661
+ /**
5662
+ * Multi-objective GEPA: reflective evolution with Pareto frontier
5663
+ */
5664
+ compile<IN, OUT extends AxGenOut>(program: Readonly<AxGen<IN, OUT>>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxParetoResult<OUT>>;
5665
+ /** Lightweight auto presets */
5666
+ configureAuto(level: 'light' | 'medium' | 'heavy'): void;
5667
+ private getBaseInstruction;
5668
+ private evaluateOnSet;
5669
+ private evaluateAvg;
5670
+ private evaluateOne;
5671
+ private reflectInstruction;
5672
+ private updateSamplerShuffled;
5673
+ private nextMinibatchIndices;
5674
+ private rand;
5675
+ private mergeInstructions;
5676
+ }
5677
+
5678
+ /** Flow-aware GEPA (system-level reflective evolution with module selection + system-aware merge) */
5679
+ declare class AxGEPAFlow extends AxBaseOptimizer {
5680
+ private numTrials;
5681
+ private minibatch;
5682
+ private minibatchSize;
5683
+ private earlyStoppingTrials;
5684
+ private minImprovementThreshold;
5685
+ private sampleCount;
5686
+ private crossoverEvery;
5687
+ private tieEpsilon;
5688
+ private paretoSetSize;
5689
+ private mergeMax;
5690
+ private mergesUsed;
5691
+ private mergesDue;
5692
+ private totalMergesTested;
5693
+ private lastIterFoundNewProgram;
5694
+ private rngState;
5695
+ private mergeAttemptKeys;
5696
+ private mergeCompositionKeys;
5697
+ private samplerState;
5698
+ constructor(args: Readonly<AxOptimizerArgs>);
5699
+ reset(): void;
5700
+ configureAuto(level: 'light' | 'medium' | 'heavy'): void;
5701
+ /**
5702
+ * Multi-objective GEPA-Flow: system-level reflective evolution with Pareto frontier
5703
+ */
5704
+ compile<IN, OUT extends AxGenOut>(program: Readonly<any>, examples: readonly AxTypedExample<IN>[], metricFn: AxMetricFn, options?: AxCompileOptions): Promise<AxParetoResult<OUT>>;
5705
+ private getBaseInstruction;
5706
+ private evaluateOnSet;
5707
+ private evaluateAvg;
5708
+ private evaluateOne;
5709
+ private reflectModuleInstruction;
5710
+ private updateSamplerShuffled;
5711
+ private nextMinibatchIndices;
5712
+ private systemAwareMergeWithSig;
5713
+ private rand;
5714
+ private systemAwareMerge;
5715
+ }
5716
+
5575
5717
  interface AxMiPROResult<IN, OUT extends AxGenOut> extends AxOptimizerResult<OUT> {
5576
5718
  optimizedGen?: AxGen<IN, OUT>;
5577
5719
  optimizedProgram?: AxOptimizedProgram<OUT>;
@@ -6309,6 +6451,22 @@ TState extends AxFlowState = IN> implements AxFlowable<IN, OUT> {
6309
6451
  * @returns Object mapping node names to their usage statistics
6310
6452
  */
6311
6453
  getUsageReport(): Record<string, AxProgramUsage[]>;
6454
+ /**
6455
+ * Expose node programs for system-level operations (optimization, inspection)
6456
+ */
6457
+ getNodePrograms(): ReadonlyArray<{
6458
+ name: string;
6459
+ program: AxProgrammable<any, any>;
6460
+ }>;
6461
+ /**
6462
+ * Attempt to set instruction on a node if supported (AxGen.
6463
+ * setInstruction is optional; returns true if applied)
6464
+ */
6465
+ setNodeInstruction(name: string, instruction: string): boolean;
6466
+ /**
6467
+ * Bulk-apply instructions to nodes; ignores names that don’t exist or nodes without instruction setter
6468
+ */
6469
+ setAllNodeInstructions(map: Readonly<Record<string, string>>): void;
6312
6470
  /**
6313
6471
  * Gets a detailed trace report broken down by node name.
6314
6472
  * This provides visibility into the execution traces for each node.
@@ -7208,31 +7366,35 @@ declare class AxMCPClient {
7208
7366
  private sendNotification;
7209
7367
  }
7210
7368
 
7211
- declare class AxMCPHTTPSSETransport implements AxMCPTransport {
7212
- private endpoint;
7213
- private sseUrl;
7214
- private eventSource?;
7215
- constructor(sseUrl: string);
7216
- connect(): Promise<void>;
7217
- send(message: AxMCPJSONRPCRequest<unknown> | AxMCPJSONRPCNotification): Promise<AxMCPJSONRPCResponse<unknown>>;
7218
- sendNotification(message: Readonly<AxMCPJSONRPCNotification>): Promise<void>;
7369
+ type TokenSet = {
7370
+ accessToken: string;
7371
+ refreshToken?: string;
7372
+ expiresAt?: number;
7373
+ issuer?: string;
7374
+ };
7375
+ interface AxMCPOAuthOptions {
7376
+ clientId?: string;
7377
+ clientSecret?: string;
7378
+ redirectUri?: string;
7379
+ scopes?: string[];
7380
+ selectAuthorizationServer?: (issuers: string[], resourceMetadata: unknown) => Promise<string> | string;
7381
+ onAuthCode?: (authorizationUrl: string) => Promise<{
7382
+ code: string;
7383
+ redirectUri?: string;
7384
+ }>;
7385
+ tokenStore?: {
7386
+ getToken: (key: string) => Promise<TokenSet | null> | TokenSet | null;
7387
+ setToken: (key: string, token: TokenSet) => Promise<void> | void;
7388
+ clearToken?: (key: string) => Promise<void> | void;
7389
+ };
7219
7390
  }
7391
+
7220
7392
  interface AxMCPStreamableHTTPTransportOptions {
7221
- /**
7222
- * Custom headers to include with all HTTP requests
7223
- * Note: Content-Type, Accept, and Mcp-Session-Id are managed automatically
7224
- */
7225
7393
  headers?: Record<string, string>;
7226
- /**
7227
- * Authorization header value (convenience for common use case)
7228
- * If provided, will be added to the headers as 'Authorization'
7229
- */
7230
7394
  authorization?: string;
7395
+ oauth?: AxMCPOAuthOptions;
7231
7396
  }
7232
- /**
7233
- * AxMCPStreambleHTTPTransport implements the 2025-03-26 Streamable HTTP transport specification
7234
- * This transport uses a single HTTP endpoint that supports both POST and GET methods
7235
- */
7397
+
7236
7398
  declare class AxMCPStreambleHTTPTransport implements AxMCPTransport {
7237
7399
  private mcpEndpoint;
7238
7400
  private sessionId?;
@@ -7240,46 +7402,45 @@ declare class AxMCPStreambleHTTPTransport implements AxMCPTransport {
7240
7402
  private pendingRequests;
7241
7403
  private messageHandler?;
7242
7404
  private customHeaders;
7405
+ private oauthHelper;
7406
+ private currentToken?;
7407
+ private currentIssuer?;
7243
7408
  constructor(mcpEndpoint: string, options?: AxMCPStreamableHTTPTransportOptions);
7244
- /**
7245
- * Update custom headers (useful for refreshing tokens)
7246
- */
7247
7409
  setHeaders(headers: Record<string, string>): void;
7248
- /**
7249
- * Update authorization header (convenience method)
7250
- */
7251
7410
  setAuthorization(authorization: string): void;
7252
- /**
7253
- * Get a copy of the current custom headers
7254
- */
7255
7411
  getHeaders(): Record<string, string>;
7256
- /**
7257
- * Build headers for HTTP requests, merging custom headers with required ones
7258
- */
7259
7412
  private buildHeaders;
7260
- /**
7261
- * Set a handler for incoming server messages (requests/notifications)
7262
- */
7263
7413
  setMessageHandler(handler: (message: AxMCPJSONRPCRequest<unknown> | AxMCPJSONRPCNotification) => void): void;
7264
7414
  connect(): Promise<void>;
7265
- /**
7266
- * Opens an SSE stream to listen for server-initiated messages
7267
- */
7268
7415
  openListeningStream(): Promise<void>;
7269
- /**
7270
- * Opens an SSE stream using fetch API to support custom headers
7271
- */
7272
7416
  private openListeningStreamWithFetch;
7273
7417
  send(message: Readonly<AxMCPJSONRPCRequest<unknown>>): Promise<AxMCPJSONRPCResponse<unknown>>;
7274
7418
  private handleSSEResponse;
7275
7419
  sendNotification(message: Readonly<AxMCPJSONRPCNotification>): Promise<void>;
7276
- /**
7277
- * Explicitly terminate the session (if supported by server)
7278
- */
7279
7420
  terminateSession(): Promise<void>;
7280
- /**
7281
- * Close any open connections
7282
- */
7421
+ close(): void;
7422
+ }
7423
+
7424
+ declare class AxMCPHTTPSSETransport implements AxMCPTransport {
7425
+ private endpoint;
7426
+ private sseUrl;
7427
+ private eventSource?;
7428
+ private customHeaders;
7429
+ private oauthHelper;
7430
+ private currentToken?;
7431
+ private currentIssuer?;
7432
+ private sseAbort?;
7433
+ private pendingRequests;
7434
+ private messageHandler?;
7435
+ private endpointReady?;
7436
+ constructor(sseUrl: string, options?: AxMCPStreamableHTTPTransportOptions);
7437
+ private buildHeaders;
7438
+ private openSSEWithFetch;
7439
+ private createEndpointReady;
7440
+ private consumeSSEStream;
7441
+ connect(): Promise<void>;
7442
+ send(message: Readonly<AxMCPJSONRPCRequest<unknown>>): Promise<AxMCPJSONRPCResponse<unknown>>;
7443
+ sendNotification(message: Readonly<AxMCPJSONRPCNotification>): Promise<void>;
7283
7444
  close(): void;
7284
7445
  }
7285
7446
 
@@ -7535,95 +7696,112 @@ declare const axRAG: (queryFn: (query: string) => Promise<string>, options?: {
7535
7696
  queryGeneratorResult: BuildObject<[{
7536
7697
  name: "searchQuery";
7537
7698
  optional: false;
7699
+ internal: false;
7538
7700
  } & {
7539
7701
  type: "string";
7540
7702
  }, {
7541
7703
  name: "queryReasoning";
7542
7704
  optional: false;
7705
+ internal: false;
7543
7706
  } & {
7544
7707
  type: "string";
7545
7708
  }]>;
7546
7709
  contextualizerResult: BuildObject<[{
7547
7710
  name: "enhancedContext";
7548
7711
  optional: false;
7712
+ internal: false;
7549
7713
  } & {
7550
7714
  type: "string";
7551
7715
  }]>;
7552
7716
  qualityAssessorResult: BuildObject<[{
7553
7717
  name: "completenessScore";
7554
7718
  optional: false;
7719
+ internal: false;
7555
7720
  } & {
7556
7721
  type: "number";
7557
7722
  }, {
7558
7723
  name: "missingAspects";
7559
7724
  optional: false;
7725
+ internal: false;
7560
7726
  } & {
7561
7727
  type: "string[]";
7562
7728
  }]>;
7563
7729
  queryRefinerResult: BuildObject<[{
7564
7730
  name: "refinedQuery";
7565
7731
  optional: false;
7732
+ internal: false;
7566
7733
  } & {
7567
7734
  type: "string";
7568
7735
  }]>;
7569
7736
  questionDecomposerResult: BuildObject<[{
7570
7737
  name: "subQuestions";
7571
7738
  optional: false;
7739
+ internal: false;
7572
7740
  } & {
7573
7741
  type: "string[]";
7574
7742
  }, {
7575
7743
  name: "decompositionReason";
7576
7744
  optional: false;
7745
+ internal: false;
7577
7746
  } & {
7578
7747
  type: "string";
7579
7748
  }]>;
7580
7749
  evidenceSynthesizerResult: BuildObject<[{
7581
7750
  name: "synthesizedEvidence";
7582
7751
  optional: false;
7752
+ internal: false;
7583
7753
  } & {
7584
7754
  type: "string";
7585
7755
  }, {
7586
7756
  name: "evidenceGaps";
7587
7757
  optional: false;
7758
+ internal: false;
7588
7759
  } & {
7589
7760
  type: "string[]";
7590
7761
  }]>;
7591
7762
  gapAnalyzerResult: BuildObject<[{
7592
7763
  name: "needsMoreInfo";
7593
7764
  optional: false;
7765
+ internal: false;
7594
7766
  } & {
7595
7767
  type: "boolean";
7596
7768
  }, {
7597
7769
  name: "focusedQueries";
7598
7770
  optional: false;
7771
+ internal: false;
7599
7772
  } & {
7600
7773
  type: "string[]";
7601
7774
  }]>;
7602
7775
  answerGeneratorResult: BuildObject<[{
7603
7776
  name: "comprehensiveAnswer";
7604
7777
  optional: false;
7778
+ internal: false;
7605
7779
  } & {
7606
7780
  type: "string";
7607
7781
  }, {
7608
7782
  name: "confidenceLevel";
7609
7783
  optional: false;
7784
+ internal: false;
7610
7785
  } & {
7611
7786
  type: "number";
7612
7787
  }]>;
7613
7788
  qualityValidatorResult: BuildObject<[{
7614
7789
  name: "qualityScore";
7615
7790
  optional: false;
7791
+ internal: false;
7616
7792
  } & {
7617
7793
  type: "number";
7618
7794
  }, {
7619
7795
  name: "issues";
7620
7796
  optional: false;
7797
+ internal: false;
7621
7798
  } & {
7622
7799
  type: "string[]";
7623
7800
  }]>;
7624
7801
  answerHealerResult: BuildObject<[{
7625
7802
  name: "healedAnswer";
7626
7803
  optional: false;
7804
+ internal: false;
7627
7805
  } & {
7628
7806
  type: "string";
7629
7807
  }]>;
@@ -7700,4 +7878,4 @@ declare class AxRateLimiterTokenUsage {
7700
7878
  acquire(tokens: number): Promise<void>;
7701
7879
  }
7702
7880
 
7703
- 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 AxAIAnthropicFunctionTool, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, type AxAIAnthropicRequestTool, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, AxAIAnthropicVertexModel, type AxAIAnthropicWebSearchTool, 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, type AxAIMetricsInstruments, AxAIMistral, type AxAIMistralArgs, type AxAIMistralChatRequest, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, type AxAIModelListBase, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIAnnotation, 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 AxAIOpenAIUrlCitation, type AxAIOpenAIUsage, AxAIOpenRouter, type AxAIOpenRouterArgs, AxAIRefusalError, 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, type AxAIServiceModelType, AxAIServiceNetworkError, type AxAIServiceOptions, AxAIServiceResponseError, AxAIServiceStatusError, AxAIServiceStreamTerminatedError, AxAIServiceTimeoutError, AxAITogether, type AxAITogetherArgs, AxAIWebLLM, type AxAIWebLLMArgs, type AxAIWebLLMChatRequest, type AxAIWebLLMChatResponse, type AxAIWebLLMChatResponseDelta, type AxAIWebLLMConfig, type AxAIWebLLMEmbedModel, type AxAIWebLLMEmbedRequest, type AxAIWebLLMEmbedResponse, AxAIWebLLMModel, type AxAPI, type AxAPIConfig, AxAgent, type AxAgentConfig, type AxAgentFeatures, type AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBaseOptimizer, AxBootstrapFewShot, type AxBootstrapOptimizerOptions, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCitation, type AxCompileOptions, AxContentProcessingError, type AxContentProcessingServices, 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, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, type AxErrorCategory, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxField, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldType, type AxFieldValue, AxFlow, type AxFlowAutoParallelConfig, type AxFlowBranchContext, type AxFlowBranchEvaluationData, type AxFlowCompleteData, AxFlowDependencyAnalyzer, type AxFlowDynamicContext, type AxFlowErrorData, AxFlowExecutionPlanner, type AxFlowExecutionStep, type AxFlowLogData, type AxFlowLoggerData, type AxFlowLoggerFunction, type AxFlowNodeDefinition, type AxFlowParallelBranch, type AxFlowParallelGroup, type AxFlowParallelGroupCompleteData, type AxFlowParallelGroupStartData, type AxFlowStartData, type AxFlowState, type AxFlowStepCompleteData, type AxFlowStepFunction, type AxFlowStepStartData, type AxFlowSubContext, AxFlowSubContextImpl, type AxFlowTypedParallelBranch, type AxFlowTypedSubContext, AxFlowTypedSubContextImpl, type AxFlowable, type AxFluentFieldInfo, AxFluentFieldType, type AxForwardable, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, type AxFunctionResult, type AxFunctionResultFormatter, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenMetricsInstruments, type AxGenOut, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxLLMRequestTypeValues, type AxLoggerData, type AxLoggerFunction, AxMCPClient, type AxMCPFunctionDescription, AxMCPHTTPSSETransport, type AxMCPInitializeParams, type AxMCPInitializeResult, type AxMCPJSONRPCErrorResponse, type AxMCPJSONRPCNotification, type AxMCPJSONRPCRequest, type AxMCPJSONRPCResponse, type AxMCPJSONRPCSuccessResponse, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPToolsListResult, type AxMCPTransport, AxMediaNotSupportedError, AxMemory, type AxMemoryData, type AxMessage, type AxMetricFn, type AxMetricFnArgs, type AxMetricsConfig, AxMiPRO, type AxMiPROOptimizerOptions, type AxMiPROResult, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, type AxMultiMetricFn, type AxMultiProviderConfig, AxMultiServiceRouter, type AxOptimizationCheckpoint, type AxOptimizationProgress, type AxOptimizationStats, type AxOptimizedProgram, AxOptimizedProgramImpl, type AxOptimizer, type AxOptimizerArgs, type AxOptimizerLoggerData, type AxOptimizerLoggerFunction, type AxOptimizerMetricsConfig, type AxOptimizerMetricsInstruments, type AxOptimizerResult, type AxParetoResult, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramForwardOptionsWithModels, type AxProgramOptions, type AxProgramStreamingForwardOptions, type AxProgramStreamingForwardOptionsWithModels, type AxProgramTrace, type AxProgramUsage, type AxProgrammable, AxPromptTemplate, type AxPromptTemplateOptions, AxProviderRouter, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxResultPickerFunction, type AxResultPickerFunctionFieldResults, type AxResultPickerFunctionFunctionResults, type AxRewriteIn, type AxRewriteOut, type AxRoutingResult, type AxSamplePickerOptions, type AxSetExamplesOptions, AxSignature, AxSignatureBuilder, type AxSignatureConfig, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, AxStopFunctionCallException, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxTypedExample, type AxUsable, agent, ai, 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, axAIOpenRouterDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axAIWebLLMCreativeConfig, axAIWebLLMDefaultConfig, axAnalyzeChatPromptRequirements, axAnalyzeRequestRequirements, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axCheckMetricsHealth, axCreateDefaultColorLogger, axCreateDefaultOptimizerColorLogger, axCreateDefaultOptimizerTextLogger, axCreateDefaultTextLogger, axCreateFlowColorLogger, axCreateFlowTextLogger, axDefaultFlowLogger, axDefaultMetricsConfig, axDefaultOptimizerLogger, axDefaultOptimizerMetricsConfig, axGetCompatibilityReport, axGetFormatCompatibility, axGetMetricsConfig, axGetOptimizerMetricsConfig, axGetProvidersWithMediaSupport, axGlobals, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoOpenAIResponses, axModelInfoReka, axModelInfoTogether, axModelInfoWebLLM, axProcessContentForProvider, axRAG, axScoreProvidersForRequest, axSelectOptimalProvider, axSpanAttributes, axSpanEvents, axUpdateMetricsConfig, axUpdateOptimizerMetricsConfig, axValidateChatRequestMessage, axValidateChatResponseResult, axValidateProviderCapabilities, f, flow, s };
7881
+ 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 AxAIAnthropicFunctionTool, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, type AxAIAnthropicRequestTool, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, AxAIAnthropicVertexModel, type AxAIAnthropicWebSearchTool, 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, type AxAIMetricsInstruments, AxAIMistral, type AxAIMistralArgs, type AxAIMistralChatRequest, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, type AxAIModelListBase, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIAnnotation, 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 AxAIOpenAIUrlCitation, type AxAIOpenAIUsage, AxAIOpenRouter, type AxAIOpenRouterArgs, AxAIRefusalError, 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, type AxAIServiceModelType, AxAIServiceNetworkError, type AxAIServiceOptions, AxAIServiceResponseError, AxAIServiceStatusError, AxAIServiceStreamTerminatedError, AxAIServiceTimeoutError, AxAITogether, type AxAITogetherArgs, AxAIWebLLM, type AxAIWebLLMArgs, type AxAIWebLLMChatRequest, type AxAIWebLLMChatResponse, type AxAIWebLLMChatResponseDelta, type AxAIWebLLMConfig, type AxAIWebLLMEmbedModel, type AxAIWebLLMEmbedRequest, type AxAIWebLLMEmbedResponse, AxAIWebLLMModel, type AxAPI, type AxAPIConfig, AxAgent, type AxAgentConfig, type AxAgentFeatures, type AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBaseOptimizer, AxBootstrapFewShot, type AxBootstrapOptimizerOptions, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, type AxCheckpointLoadFn, type AxCheckpointSaveFn, type AxCitation, type AxCompileOptions, AxContentProcessingError, type AxContentProcessingServices, 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, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, type AxErrorCategory, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxExamples, type AxField, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldType, type AxFieldValue, AxFlow, type AxFlowAutoParallelConfig, type AxFlowBranchContext, type AxFlowBranchEvaluationData, type AxFlowCompleteData, AxFlowDependencyAnalyzer, type AxFlowDynamicContext, type AxFlowErrorData, AxFlowExecutionPlanner, type AxFlowExecutionStep, type AxFlowLogData, type AxFlowLoggerData, type AxFlowLoggerFunction, type AxFlowNodeDefinition, type AxFlowParallelBranch, type AxFlowParallelGroup, type AxFlowParallelGroupCompleteData, type AxFlowParallelGroupStartData, type AxFlowStartData, type AxFlowState, type AxFlowStepCompleteData, type AxFlowStepFunction, type AxFlowStepStartData, type AxFlowSubContext, AxFlowSubContextImpl, type AxFlowTypedParallelBranch, type AxFlowTypedSubContext, AxFlowTypedSubContextImpl, type AxFlowable, type AxFluentFieldInfo, AxFluentFieldType, type AxForwardable, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, type AxFunctionResult, type AxFunctionResultFormatter, AxGEPA, type AxGEPAAdapter, type AxGEPAEvaluationBatch, AxGEPAFlow, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenMetricsInstruments, type AxGenOut, type AxGenStreamingOut, AxGenerateError, type AxGenerateErrorDetails, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxLLMRequestTypeValues, type AxLoggerData, type AxLoggerFunction, AxMCPClient, type AxMCPFunctionDescription, AxMCPHTTPSSETransport, type AxMCPInitializeParams, type AxMCPInitializeResult, type AxMCPJSONRPCErrorResponse, type AxMCPJSONRPCNotification, type AxMCPJSONRPCRequest, type AxMCPJSONRPCResponse, type AxMCPJSONRPCSuccessResponse, type AxMCPOAuthOptions, type AxMCPStreamableHTTPTransportOptions, AxMCPStreambleHTTPTransport, type AxMCPToolsListResult, type AxMCPTransport, AxMediaNotSupportedError, AxMemory, type AxMemoryData, type AxMessage, type AxMetricFn, type AxMetricFnArgs, type AxMetricsConfig, AxMiPRO, type AxMiPROOptimizerOptions, type AxMiPROResult, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, type AxMultiMetricFn, type AxMultiProviderConfig, AxMultiServiceRouter, type AxOptimizationCheckpoint, type AxOptimizationProgress, type AxOptimizationStats, type AxOptimizedProgram, AxOptimizedProgramImpl, type AxOptimizer, type AxOptimizerArgs, type AxOptimizerLoggerData, type AxOptimizerLoggerFunction, type AxOptimizerMetricsConfig, type AxOptimizerMetricsInstruments, type AxOptimizerResult, type AxParetoResult, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramForwardOptionsWithModels, type AxProgramOptions, type AxProgramStreamingForwardOptions, type AxProgramStreamingForwardOptionsWithModels, type AxProgramTrace, type AxProgramUsage, type AxProgrammable, AxPromptTemplate, type AxPromptTemplateOptions, AxProviderRouter, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxResultPickerFunction, type AxResultPickerFunctionFieldResults, type AxResultPickerFunctionFunctionResults, type AxRewriteIn, type AxRewriteOut, type AxRoutingResult, type AxSamplePickerOptions, type AxSetExamplesOptions, AxSignature, AxSignatureBuilder, type AxSignatureConfig, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, AxStopFunctionCallException, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxTypedExample, type AxUsable, agent, ai, 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, axAIOpenRouterDefaultConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axAIWebLLMCreativeConfig, axAIWebLLMDefaultConfig, axAnalyzeChatPromptRequirements, axAnalyzeRequestRequirements, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axCheckMetricsHealth, axCreateDefaultColorLogger, axCreateDefaultOptimizerColorLogger, axCreateDefaultOptimizerTextLogger, axCreateDefaultTextLogger, axCreateFlowColorLogger, axCreateFlowTextLogger, axDefaultFlowLogger, axDefaultMetricsConfig, axDefaultOptimizerLogger, axDefaultOptimizerMetricsConfig, axGetCompatibilityReport, axGetFormatCompatibility, axGetMetricsConfig, axGetOptimizerMetricsConfig, axGetProvidersWithMediaSupport, axGlobals, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoOpenAIResponses, axModelInfoReka, axModelInfoTogether, axModelInfoWebLLM, axProcessContentForProvider, axRAG, axScoreProvidersForRequest, axSelectOptimalProvider, axSpanAttributes, axSpanEvents, axUpdateMetricsConfig, axUpdateOptimizerMetricsConfig, axValidateChatRequestMessage, axValidateChatResponseResult, axValidateProviderCapabilities, f, flow, s };