@ax-llm/ax 12.0.8 → 12.0.12

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
@@ -210,6 +210,7 @@ type AxFunction = {
210
210
  func: AxFunctionHandler;
211
211
  };
212
212
  type AxChatResponseResult = {
213
+ index: number;
213
214
  content?: string;
214
215
  thought?: string;
215
216
  name?: string;
@@ -339,7 +340,7 @@ type AxInternalEmbedRequest<TEmbedModel> = Omit<AxEmbedRequest, 'embedModel'> &
339
340
  type AxRateLimiterFunction = <T = unknown>(reqFunc: () => Promise<T | ReadableStream$1<T>>, info: Readonly<{
340
341
  modelUsage?: AxModelUsage;
341
342
  }>) => 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';
343
+ 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
344
  type AxLoggerFunction = (message: string, options?: {
344
345
  tags?: AxLoggerTag[];
345
346
  }) => void;
@@ -415,8 +416,21 @@ declare enum AxAIAnthropicVertexModel {
415
416
  Claude3Haiku = "claude-3-haiku",
416
417
  Claude3Opus = "claude-3-opus"
417
418
  }
419
+ type AxAIAnthropicThinkingConfig = {
420
+ type: 'enabled';
421
+ budget_tokens: number;
422
+ };
423
+ type AxAIAnthropicThinkingTokenBudgetLevels = {
424
+ minimal?: number;
425
+ low?: number;
426
+ medium?: number;
427
+ high?: number;
428
+ highest?: number;
429
+ };
418
430
  type AxAIAnthropicConfig = AxModelConfig & {
419
431
  model: AxAIAnthropicModel | AxAIAnthropicVertexModel;
432
+ thinking?: AxAIAnthropicThinkingConfig;
433
+ thinkingTokenBudgetLevels?: AxAIAnthropicThinkingTokenBudgetLevels;
420
434
  };
421
435
  type AxAIAnthropicChatRequestCacheParam = {
422
436
  cache_control?: {
@@ -464,6 +478,14 @@ type AxAIAnthropicChatRequest = {
464
478
  id: string;
465
479
  name: string;
466
480
  input: object;
481
+ } | {
482
+ type: 'thinking';
483
+ thinking: string;
484
+ signature?: string;
485
+ } | {
486
+ type: 'redacted_thinking';
487
+ thinking: string;
488
+ signature?: string;
467
489
  })[];
468
490
  })[];
469
491
  tools?: ({
@@ -487,6 +509,7 @@ type AxAIAnthropicChatRequest = {
487
509
  temperature?: number;
488
510
  top_p?: number;
489
511
  top_k?: number;
512
+ thinking?: AxAIAnthropicThinkingConfig;
490
513
  metadata?: {
491
514
  user_id: string;
492
515
  };
@@ -503,6 +526,14 @@ type AxAIAnthropicChatResponse = {
503
526
  name: string;
504
527
  type: 'tool_use';
505
528
  input?: string;
529
+ } | {
530
+ type: 'thinking';
531
+ thinking: string;
532
+ signature?: string;
533
+ } | {
534
+ type: 'redacted_thinking';
535
+ thinking: string;
536
+ signature?: string;
506
537
  })[];
507
538
  model: string;
508
539
  stop_reason: 'end_turn' | 'max_tokens' | 'stop_sequence' | 'tool_use';
@@ -546,6 +577,9 @@ interface AxAIAnthropicContentBlockStartEvent {
546
577
  id: string;
547
578
  name: string;
548
579
  input: object;
580
+ } | {
581
+ type: 'thinking';
582
+ thinking: string;
549
583
  };
550
584
  }
551
585
  interface AxAIAnthropicContentBlockDeltaEvent {
@@ -557,6 +591,12 @@ interface AxAIAnthropicContentBlockDeltaEvent {
557
591
  } | {
558
592
  type: 'input_json_delta';
559
593
  partial_json: string;
594
+ } | {
595
+ type: 'thinking_delta';
596
+ thinking: string;
597
+ } | {
598
+ type: 'signature_delta';
599
+ signature: string;
560
600
  };
561
601
  }
562
602
  interface AxAIAnthropicContentBlockStopEvent {
@@ -2086,20 +2126,31 @@ declare class AxAIGrok extends AxAIOpenAIBase<AxAIGrokModel, AxAIGrokEmbedModels
2086
2126
  constructor({ apiKey, config, options, models, modelInfo, }: Readonly<Omit<AxAIGrokArgs, 'name'>>);
2087
2127
  }
2088
2128
 
2129
+ type AxMemoryData = {
2130
+ tags?: string[];
2131
+ role: AxChatRequest['chatPrompt'][number]['role'];
2132
+ chat: {
2133
+ index: number;
2134
+ value: Omit<AxChatRequest['chatPrompt'][number], 'role'>;
2135
+ }[];
2136
+ }[];
2089
2137
  interface AxAIMemory {
2090
- add(result: Readonly<AxChatRequest['chatPrompt']> | Readonly<AxChatRequest['chatPrompt'][number]>, sessionId?: string): void;
2091
- addResult(result: Readonly<AxChatResponseResult>, sessionId?: string): void;
2092
- updateResult(result: Readonly<AxChatResponseResult> & {
2138
+ addRequest(result: AxChatRequest['chatPrompt'], sessionId?: string): void;
2139
+ addResponse(results: Readonly<AxChatResponseResult[]>, sessionId?: string): void;
2140
+ updateResult(results: Readonly<AxChatResponseResult> & {
2093
2141
  delta?: string;
2094
2142
  }, sessionId?: string): void;
2095
- history(sessionId?: string): AxChatRequest['chatPrompt'];
2143
+ addFunctionResult({ functionId, isError, index, result, }: Readonly<{
2144
+ functionId: string;
2145
+ isError: boolean;
2146
+ index: number;
2147
+ result: Readonly<string>;
2148
+ }>, sessionId?: string): void;
2149
+ history(index: number, sessionId?: string): AxChatRequest['chatPrompt'];
2096
2150
  reset(sessionId?: string): void;
2097
- getLast(sessionId?: string): {
2098
- chat: AxChatRequest['chatPrompt'][number];
2099
- tags?: string[];
2100
- } | undefined;
2151
+ getLast(sessionId?: string): AxMemoryData[number] | undefined;
2101
2152
  addTag(name: string, sessionId?: string): void;
2102
- rewindToTag(name: string, sessionId?: string): AxChatRequest['chatPrompt'];
2153
+ rewindToTag(name: string, sessionId?: string): AxMemoryData;
2103
2154
  }
2104
2155
 
2105
2156
  interface AxField {
@@ -2157,6 +2208,33 @@ declare class AxSignature {
2157
2208
  };
2158
2209
  }
2159
2210
 
2211
+ type AxFieldValue = string | string[] | number | boolean | object | null | undefined | {
2212
+ mimeType: string;
2213
+ data: string;
2214
+ } | {
2215
+ mimeType: string;
2216
+ data: string;
2217
+ }[] | {
2218
+ format?: 'wav';
2219
+ data: string;
2220
+ } | {
2221
+ format?: 'wav';
2222
+ data: string;
2223
+ }[];
2224
+ type AxGenIn = {
2225
+ [key: string]: AxFieldValue;
2226
+ };
2227
+ type AxGenOut = {
2228
+ [key: string]: AxFieldValue;
2229
+ };
2230
+ type AxMessage<IN extends AxGenIn> = {
2231
+ role: 'user';
2232
+ values: IN;
2233
+ } | {
2234
+ role: 'assistant';
2235
+ values: IN;
2236
+ };
2237
+
2160
2238
  interface AxAssertion {
2161
2239
  fn(values: Record<string, unknown>): Promise<boolean | undefined> | boolean | undefined;
2162
2240
  message?: string;
@@ -2179,63 +2257,28 @@ declare class AxAssertionError extends Error {
2179
2257
  }
2180
2258
 
2181
2259
  declare class AxMemory implements AxAIMemory {
2182
- private limit;
2183
2260
  private options?;
2184
2261
  private memories;
2185
2262
  private defaultMemory;
2186
- constructor(limit?: number, options?: {
2263
+ constructor(options?: {
2187
2264
  debug?: boolean;
2188
2265
  debugHideSystemPrompt?: boolean;
2189
2266
  } | undefined);
2190
2267
  private getMemory;
2191
- add(value: AxChatRequest['chatPrompt'][number] | AxChatRequest['chatPrompt'], sessionId?: string): void;
2192
- addResult(result: Readonly<AxChatResponseResult>, sessionId?: string): void;
2193
- updateResult(result: Readonly<AxChatResponseResult>, sessionId?: string): void;
2194
- addTag(name: string, sessionId?: string): void;
2195
- rewindToTag(name: string, sessionId?: string): ({
2196
- role: "system";
2197
- content: string;
2198
- cache?: boolean;
2199
- } | {
2200
- role: "user";
2201
- name?: string;
2202
- content: string | ({
2203
- type: "text";
2204
- text: string;
2205
- cache?: boolean;
2206
- } | {
2207
- type: "image";
2208
- mimeType: string;
2209
- image: string;
2210
- details?: "high" | "low" | "auto";
2211
- cache?: boolean;
2212
- } | {
2213
- type: "audio";
2214
- data: string;
2215
- format?: "wav";
2216
- cache?: boolean;
2217
- })[];
2218
- } | {
2219
- role: "assistant";
2220
- content?: string;
2221
- name?: string;
2222
- functionCalls?: {
2223
- id: string;
2224
- type: "function";
2225
- function: {
2226
- name: string;
2227
- params?: string | object;
2228
- };
2229
- }[];
2230
- cache?: boolean;
2231
- } | {
2232
- role: "function";
2233
- result: string;
2234
- isError?: boolean;
2268
+ addRequest(value: AxChatRequest['chatPrompt'], sessionId?: string): void;
2269
+ addResponse(results: Readonly<AxChatResponseResult[]>, sessionId?: string): void;
2270
+ addFunctionResult({ functionId, isError, index, result, }: Readonly<{
2235
2271
  functionId: string;
2236
- cache?: boolean;
2237
- })[];
2238
- history(sessionId?: string): ({
2272
+ isError?: boolean;
2273
+ index: number;
2274
+ result: Readonly<string>;
2275
+ }>, sessionId?: string): void;
2276
+ updateResult(result: Readonly<AxChatResponseResult & {
2277
+ delta?: string;
2278
+ }>, sessionId?: string): void;
2279
+ addTag(name: string, sessionId?: string): void;
2280
+ rewindToTag(name: string, sessionId?: string): AxMemoryData;
2281
+ history(index: number, sessionId?: string): ({
2239
2282
  role: "system";
2240
2283
  content: string;
2241
2284
  cache?: boolean;
@@ -2279,8 +2322,12 @@ declare class AxMemory implements AxAIMemory {
2279
2322
  cache?: boolean;
2280
2323
  })[];
2281
2324
  getLast(sessionId?: string): {
2282
- chat: AxChatRequest["chatPrompt"][number];
2283
2325
  tags?: string[];
2326
+ role: AxChatRequest["chatPrompt"][number]["role"];
2327
+ chat: {
2328
+ index: number;
2329
+ value: Omit<AxChatRequest["chatPrompt"][number], "role">;
2330
+ }[];
2284
2331
  } | undefined;
2285
2332
  reset(sessionId?: string): void;
2286
2333
  }
@@ -2312,33 +2359,6 @@ type AxInputFunctionType = (AxFunction | {
2312
2359
  toFunction: () => AxFunction | AxFunction[];
2313
2360
  })[];
2314
2361
 
2315
- type AxFieldValue = string | string[] | number | boolean | object | null | undefined | {
2316
- mimeType: string;
2317
- data: string;
2318
- } | {
2319
- mimeType: string;
2320
- data: string;
2321
- }[] | {
2322
- format?: 'wav';
2323
- data: string;
2324
- } | {
2325
- format?: 'wav';
2326
- data: string;
2327
- }[];
2328
- type AxGenIn = {
2329
- [key: string]: AxFieldValue;
2330
- };
2331
- type AxGenOut = {
2332
- [key: string]: AxFieldValue;
2333
- };
2334
- type AxMessage<IN extends AxGenIn> = {
2335
- role: 'user';
2336
- values: IN;
2337
- } | {
2338
- role: 'assistant';
2339
- values: IN;
2340
- };
2341
-
2342
2362
  type Writeable<T> = {
2343
2363
  -readonly [P in keyof T]: T[P];
2344
2364
  };
@@ -2364,7 +2384,9 @@ declare class AxPromptTemplate {
2364
2384
  skipSystemPrompt?: boolean;
2365
2385
  examples?: Record<string, AxFieldValue>[];
2366
2386
  demos?: Record<string, AxFieldValue>[];
2367
- }>) => AxChatRequest["chatPrompt"];
2387
+ }>) => Extract<AxChatRequest["chatPrompt"][number], {
2388
+ role: "user" | "system" | "assistant";
2389
+ }>[];
2368
2390
  renderExtraFields: (extraFields: readonly AxIField[]) => ({
2369
2391
  type: "text";
2370
2392
  text: string;
@@ -2409,6 +2431,7 @@ type AxProgramForwardOptions = {
2409
2431
  tracer?: Tracer;
2410
2432
  rateLimiter?: AxRateLimiterFunction;
2411
2433
  stream?: boolean;
2434
+ sampleCount?: number;
2412
2435
  functions?: AxInputFunctionType;
2413
2436
  functionCall?: AxChatRequest['functionCall'];
2414
2437
  stopFunction?: string;
@@ -2426,13 +2449,15 @@ type AxProgramForwardOptions = {
2426
2449
  asserts?: AxAssertion[];
2427
2450
  streamingAsserts?: AxStreamingAssertion[];
2428
2451
  excludeContentFromTrace?: boolean;
2452
+ strictMode?: boolean;
2429
2453
  };
2430
2454
  type AxProgramStreamingForwardOptions = Omit<AxProgramForwardOptions, 'stream'>;
2431
2455
  type AxGenDeltaOut<OUT extends AxGenOut> = {
2432
2456
  version: number;
2457
+ index: number;
2433
2458
  delta: Partial<OUT>;
2434
2459
  };
2435
- type AxGenStreamingOut<OUT extends AxGenOut> = AsyncGenerator<AxGenDeltaOut<OUT>, void | OUT, unknown>;
2460
+ type AxGenStreamingOut<OUT extends AxGenOut> = AsyncGenerator<AxGenDeltaOut<OUT>, void, unknown>;
2436
2461
  type AxSetExamplesOptions = {};
2437
2462
  interface AxTunable<IN extends AxGenIn, OUT extends AxGenOut> {
2438
2463
  setExamples: (examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>) => void;
@@ -2707,6 +2732,8 @@ type AxOptimizerArgs = {
2707
2732
  checkpointLoad?: AxCheckpointLoadFn;
2708
2733
  checkpointInterval?: number;
2709
2734
  resumeFromCheckpoint?: string;
2735
+ logger?: AxLoggerFunction;
2736
+ verbose?: boolean;
2710
2737
  seed?: number;
2711
2738
  };
2712
2739
  interface AxOptimizationStats {
@@ -2919,6 +2946,8 @@ declare abstract class AxBaseOptimizer<IN extends AxGenIn = AxGenIn, OUT extends
2919
2946
  protected readonly checkpointLoad?: AxCheckpointLoadFn;
2920
2947
  protected readonly checkpointInterval?: number;
2921
2948
  protected readonly resumeFromCheckpoint?: string;
2949
+ protected readonly logger?: AxLoggerFunction;
2950
+ protected readonly verbose?: boolean;
2922
2951
  private currentRound;
2923
2952
  private scoreHistory;
2924
2953
  private configurationHistory;
@@ -3062,6 +3091,18 @@ declare abstract class AxBaseOptimizer<IN extends AxGenIn = AxGenIn, OUT extends
3062
3091
  * Save final checkpoint on completion
3063
3092
  */
3064
3093
  protected saveFinalCheckpoint(optimizerType: string, optimizerConfig: Record<string, unknown>, bestScore: number, bestConfiguration?: Record<string, unknown>, optimizerState?: Record<string, unknown>, options?: AxCompileOptions): Promise<void>;
3094
+ /**
3095
+ * Get the logger function with fallback hierarchy:
3096
+ * 1. Explicit logger passed to optimizer
3097
+ * 2. Logger from student AI service
3098
+ * 3. Default optimizer logger
3099
+ * 4. undefined if verbose is false
3100
+ */
3101
+ protected getLogger(options?: AxCompileOptions): AxLoggerFunction | undefined;
3102
+ /**
3103
+ * Check if logging is enabled based on verbose settings
3104
+ */
3105
+ protected isLoggingEnabled(options?: AxCompileOptions): boolean;
3065
3106
  }
3066
3107
 
3067
3108
  type AxDBUpsertRequest = {
@@ -3254,109 +3295,6 @@ declare class AxDBManager {
3254
3295
  }> | undefined) => Promise<AxDBMatch[][]>;
3255
3296
  }
3256
3297
 
3257
- type AxFieldProcessorProcess = (value: AxFieldValue, context?: Readonly<{
3258
- values?: AxGenOut;
3259
- sessionId?: string;
3260
- done?: boolean;
3261
- }>) => unknown | Promise<unknown>;
3262
- type AxStreamingFieldProcessorProcess = (value: string, context?: Readonly<{
3263
- values?: AxGenOut;
3264
- sessionId?: string;
3265
- done?: boolean;
3266
- }>) => unknown | Promise<unknown>;
3267
- interface AxFieldProcessor {
3268
- field: Readonly<AxField>;
3269
- /**
3270
- * Process the field value and return a new value (or undefined if no update is needed).
3271
- * The returned value may be merged back into memory.
3272
- * @param value - The current field value.
3273
- * @param context - Additional context (e.g. memory and session id).
3274
- */
3275
- process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
3276
- }
3277
-
3278
- type AxGenerateResult<OUT extends AxGenOut> = OUT & {
3279
- thought?: string;
3280
- };
3281
- interface AxResponseHandlerArgs<T> {
3282
- ai: Readonly<AxAIService>;
3283
- model?: string;
3284
- res: T;
3285
- mem: AxAIMemory;
3286
- sessionId?: string;
3287
- traceId?: string;
3288
- functions?: Readonly<AxFunction[]>;
3289
- fastFail?: boolean;
3290
- span?: Span;
3291
- }
3292
- interface AxStreamingEvent<T> {
3293
- event: 'delta' | 'done' | 'error';
3294
- data: {
3295
- contentDelta?: string;
3296
- partialValues?: Partial<T>;
3297
- error?: string;
3298
- functions?: AxChatResponseFunctionCall[];
3299
- };
3300
- }
3301
- declare class AxGen<IN extends AxGenIn, OUT extends AxGenerateResult<AxGenOut> = AxGenerateResult<AxGenOut>> extends AxProgramWithSignature<IN, OUT> {
3302
- private promptTemplate;
3303
- private asserts;
3304
- private streamingAsserts;
3305
- private options?;
3306
- private functions?;
3307
- private functionsExecuted;
3308
- private fieldProcessors;
3309
- private streamingFieldProcessors;
3310
- private values;
3311
- private excludeContentFromTrace;
3312
- private thoughtFieldName;
3313
- constructor(signature: NonNullable<ConstructorParameters<typeof AxSignature>[0]>, options?: Readonly<AxProgramForwardOptions>);
3314
- addAssert: (fn: AxAssertion["fn"], message?: string) => void;
3315
- addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
3316
- private addFieldProcessorInternal;
3317
- addStreamingFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
3318
- addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
3319
- private forwardSendRequest;
3320
- private forwardCore;
3321
- private processStreamingResponse;
3322
- private processResponse;
3323
- private _forward2;
3324
- private shouldContinueSteps;
3325
- _forward1(ai: Readonly<AxAIService>, values: IN | AxMessage<IN>[], options: Readonly<AxProgramForwardOptions>): AsyncGenerator<{
3326
- version: number;
3327
- delta: Partial<OUT>;
3328
- }, void, unknown>;
3329
- forward(ai: Readonly<AxAIService>, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramForwardOptions>): Promise<OUT>;
3330
- streamingForward(ai: Readonly<AxAIService>, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramStreamingForwardOptions>): AsyncGenerator<{
3331
- version: number;
3332
- delta: Partial<OUT>;
3333
- }, void, unknown>;
3334
- setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
3335
- private isDebug;
3336
- private getLogger;
3337
- }
3338
- type AxGenerateErrorDetails = {
3339
- model?: string;
3340
- maxTokens?: number;
3341
- streaming: boolean;
3342
- signature: {
3343
- input: Readonly<AxIField[]>;
3344
- output: Readonly<AxIField[]>;
3345
- description?: string;
3346
- };
3347
- };
3348
- declare class AxGenerateError extends Error {
3349
- readonly details: AxGenerateErrorDetails;
3350
- constructor(message: string, details: Readonly<AxGenerateErrorDetails>, options?: ErrorOptions);
3351
- }
3352
-
3353
- declare class AxDefaultQueryRewriter extends AxGen<AxRewriteIn, AxRewriteOut> {
3354
- constructor(options?: Readonly<AxProgramForwardOptions>);
3355
- }
3356
- declare class AxRewriter extends AxGen<AxRewriteIn, AxRewriteOut> {
3357
- constructor(options?: Readonly<AxProgramForwardOptions>);
3358
- }
3359
-
3360
3298
  interface AxDockerContainer {
3361
3299
  Id: string;
3362
3300
  Names: string[];
@@ -3458,6 +3396,95 @@ declare class AxDockerSession {
3458
3396
  toFunction(): AxFunction;
3459
3397
  }
3460
3398
 
3399
+ type AxFieldProcessorProcess = (value: AxFieldValue, context?: Readonly<{
3400
+ values?: AxGenOut;
3401
+ sessionId?: string;
3402
+ done?: boolean;
3403
+ }>) => unknown | Promise<unknown>;
3404
+ type AxStreamingFieldProcessorProcess = (value: string, context?: Readonly<{
3405
+ values?: AxGenOut;
3406
+ sessionId?: string;
3407
+ done?: boolean;
3408
+ }>) => unknown | Promise<unknown>;
3409
+ interface AxFieldProcessor {
3410
+ field: Readonly<AxField>;
3411
+ /**
3412
+ * Process the field value and return a new value (or undefined if no update is needed).
3413
+ * The returned value may be merged back into memory.
3414
+ * @param value - The current field value.
3415
+ * @param context - Additional context (e.g. memory and session id).
3416
+ */
3417
+ process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
3418
+ }
3419
+
3420
+ type AxGenerateResult<OUT extends AxGenOut> = OUT & {
3421
+ thought?: string;
3422
+ };
3423
+ interface AxResponseHandlerArgs<T> {
3424
+ ai: Readonly<AxAIService>;
3425
+ model?: string;
3426
+ res: T;
3427
+ mem: AxAIMemory;
3428
+ sessionId?: string;
3429
+ traceId?: string;
3430
+ functions: Readonly<AxFunction[]>;
3431
+ strictMode?: boolean;
3432
+ span?: Span;
3433
+ }
3434
+ interface AxStreamingEvent<T> {
3435
+ event: 'delta' | 'done' | 'error';
3436
+ data: {
3437
+ contentDelta?: string;
3438
+ partialValues?: Partial<T>;
3439
+ error?: string;
3440
+ functions?: AxChatResponseFunctionCall[];
3441
+ };
3442
+ }
3443
+ declare class AxGen<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> extends AxProgramWithSignature<IN, OUT> {
3444
+ private promptTemplate;
3445
+ private asserts;
3446
+ private streamingAsserts;
3447
+ private options?;
3448
+ private functions?;
3449
+ private fieldProcessors;
3450
+ private streamingFieldProcessors;
3451
+ private excludeContentFromTrace;
3452
+ private thoughtFieldName;
3453
+ constructor(signature: NonNullable<ConstructorParameters<typeof AxSignature>[0]>, options?: Readonly<AxProgramForwardOptions>);
3454
+ private createStates;
3455
+ addAssert: (fn: AxAssertion["fn"], message?: string) => void;
3456
+ addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
3457
+ private addFieldProcessorInternal;
3458
+ addStreamingFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
3459
+ addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
3460
+ private forwardSendRequest;
3461
+ private forwardCore;
3462
+ private _forward2;
3463
+ _forward1(ai: Readonly<AxAIService>, values: IN | AxMessage<IN>[], options: Readonly<AxProgramForwardOptions>): AxGenStreamingOut<OUT>;
3464
+ forward(ai: Readonly<AxAIService>, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramForwardOptions>): Promise<OUT>;
3465
+ streamingForward(ai: Readonly<AxAIService>, values: IN | AxMessage<IN>[], options?: Readonly<AxProgramStreamingForwardOptions>): AxGenStreamingOut<OUT>;
3466
+ setExamples(examples: Readonly<AxProgramExamples<IN, OUT>>, options?: Readonly<AxSetExamplesOptions>): void;
3467
+ private isDebug;
3468
+ private getLogger;
3469
+ }
3470
+ type AxGenerateErrorDetails = {
3471
+ model?: string;
3472
+ maxTokens?: number;
3473
+ streaming: boolean;
3474
+ signature: {
3475
+ input: Readonly<AxIField[]>;
3476
+ output: Readonly<AxIField[]>;
3477
+ description?: string;
3478
+ };
3479
+ };
3480
+ type ErrorOptions = {
3481
+ cause?: Error;
3482
+ };
3483
+ declare class AxGenerateError extends Error {
3484
+ readonly details: AxGenerateErrorDetails;
3485
+ constructor(message: string, details: Readonly<AxGenerateErrorDetails>, options?: ErrorOptions);
3486
+ }
3487
+
3461
3488
  type AxDataRow = {
3462
3489
  row: Record<string, AxFieldValue>;
3463
3490
  };
@@ -3698,7 +3725,6 @@ declare class AxMiPRO<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGen
3698
3725
  private viewDataBatchSize;
3699
3726
  private tipAwareProposer;
3700
3727
  private fewshotAwareProposer;
3701
- private verbose;
3702
3728
  private earlyStoppingTrials;
3703
3729
  private minImprovementThreshold;
3704
3730
  private bayesianOptimization;
@@ -3906,6 +3932,32 @@ declare const f: {
3906
3932
  };
3907
3933
  };
3908
3934
 
3935
+ declare const axCreateDefaultLogger: (output?: (message: string) => void) => AxLoggerFunction;
3936
+ declare const axCreateDefaultTextLogger: (output?: (message: string) => void) => AxLoggerFunction;
3937
+ /**
3938
+ * Factory function to create an enhanced optimizer logger with clean visual formatting
3939
+ * that works for all optimizer types using semantic tags for proper categorization
3940
+ */
3941
+ declare const axCreateOptimizerLogger: (output?: (message: string) => void) => AxLoggerFunction;
3942
+ /**
3943
+ * Default optimizer logger instance
3944
+ */
3945
+ declare const axDefaultOptimizerLogger: AxLoggerFunction;
3946
+
3947
+ type AxChatRequestMessage = AxChatRequest['chatPrompt'][number];
3948
+ /**
3949
+ * Validates a chat request message item to ensure it meets the required criteria
3950
+ * @param item - The chat request message to validate
3951
+ * @throws {Error} When validation fails with a descriptive error message
3952
+ */
3953
+ declare function axValidateChatRequestMessage(item: AxChatRequestMessage): void;
3954
+ /**
3955
+ * Validates a chat response result to ensure it meets the required criteria
3956
+ * @param results - The chat response results to validate (single result or array)
3957
+ * @throws {Error} When validation fails with a descriptive error message
3958
+ */
3959
+ declare function axValidateChatResponseResult(results: Readonly<AxChatResponseResult[]> | Readonly<AxChatResponseResult>): void;
3960
+
3909
3961
  declare class AxAIOpenAIResponsesImpl<TModel, TEmbedModel, // Kept for interface compatibility, but not used by this impl.
3910
3962
  TResponsesReq extends AxAIOpenAIResponsesRequest<TModel>> implements AxAIServiceImpl<TModel, TEmbedModel, Readonly<AxAIOpenAIResponsesRequest<TModel>>, // ChatReq (now ResponsesReq)
3911
3963
  Readonly<AxAIOpenAIEmbedRequest<TEmbedModel>>, // EmbedReq
@@ -4245,4 +4297,4 @@ declare const axModelInfoReka: AxModelInfo[];
4245
4297
 
4246
4298
  declare const axModelInfoTogether: AxModelInfo[];
4247
4299
 
4248
- 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, axGlobals, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoReka, axModelInfoTogether, axSpanAttributes, axSpanEvents, f, s };
4300
+ 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, type AxAIAnthropicThinkingConfig, type AxAIAnthropicThinkingTokenBudgetLevels, 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, 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 AxMemoryData, 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, 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, axValidateChatRequestMessage, axValidateChatResponseResult, f, s };