@ax-llm/ax 11.0.58 → 11.0.60

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
@@ -346,6 +346,7 @@ type AxLoggerFunction = (message: string, options?: {
346
346
  type AxAIPromptConfig = {
347
347
  stream?: boolean;
348
348
  thinkingTokenBudget?: 'minimal' | 'low' | 'medium' | 'high' | 'highest' | 'none';
349
+ showThoughts?: boolean;
349
350
  };
350
351
  type AxAIServiceOptions = {
351
352
  debug?: boolean;
@@ -365,7 +366,6 @@ type AxAIServiceActionOptions<TModel = unknown, TEmbedModel = unknown> = {
365
366
  rateLimiter?: AxRateLimiterFunction;
366
367
  debug?: boolean;
367
368
  debugHideSystemPrompt?: boolean;
368
- hideThought?: boolean;
369
369
  traceContext?: Context;
370
370
  abortSignal?: AbortSignal;
371
371
  logger?: AxLoggerFunction;
@@ -2027,6 +2027,72 @@ interface AxAIMemory {
2027
2027
  rewindToTag(name: string, sessionId?: string): AxChatRequest['chatPrompt'];
2028
2028
  }
2029
2029
 
2030
+ interface AxField {
2031
+ name: string;
2032
+ title?: string;
2033
+ description?: string;
2034
+ type?: {
2035
+ name: 'string' | 'number' | 'boolean' | 'json' | 'image' | 'audio' | 'date' | 'datetime' | 'class' | 'code';
2036
+ isArray: boolean;
2037
+ classes?: string[];
2038
+ };
2039
+ isOptional?: boolean;
2040
+ isInternal?: boolean;
2041
+ }
2042
+ type AxIField = Omit<AxField, 'title'> & {
2043
+ title: string;
2044
+ };
2045
+ declare class AxSignature {
2046
+ private description?;
2047
+ private inputFields;
2048
+ private outputFields;
2049
+ private sigHash;
2050
+ private sigString;
2051
+ constructor(signature?: Readonly<AxSignature | string>);
2052
+ private parseParsedField;
2053
+ private parseField;
2054
+ setDescription: (desc: string) => void;
2055
+ addInputField: (field: Readonly<AxField>) => void;
2056
+ addOutputField: (field: Readonly<AxField>) => void;
2057
+ setInputFields: (fields: readonly AxField[]) => void;
2058
+ setOutputFields: (fields: readonly AxField[]) => void;
2059
+ getInputFields: () => Readonly<AxIField[]>;
2060
+ getOutputFields: () => Readonly<AxIField[]>;
2061
+ getDescription: () => string | undefined;
2062
+ private toTitle;
2063
+ toJSONSchema: () => AxFunctionJSONSchema;
2064
+ private updateHash;
2065
+ hash: () => string;
2066
+ toString: () => string;
2067
+ toJSON: () => {
2068
+ id: string;
2069
+ description: string | undefined;
2070
+ inputFields: AxIField[];
2071
+ outputFields: AxIField[];
2072
+ };
2073
+ }
2074
+
2075
+ interface AxAssertion {
2076
+ fn(values: Record<string, unknown>): Promise<boolean | undefined> | boolean | undefined;
2077
+ message?: string;
2078
+ }
2079
+ interface AxStreamingAssertion {
2080
+ fieldName: string;
2081
+ fn(content: string, done?: boolean): boolean | undefined;
2082
+ message?: string;
2083
+ }
2084
+ declare class AxAssertionError extends Error {
2085
+ constructor({ message, }: Readonly<{
2086
+ message: string;
2087
+ }>);
2088
+ getFixingInstructions: () => {
2089
+ name: string;
2090
+ title: string;
2091
+ description: string;
2092
+ }[];
2093
+ toString(): string;
2094
+ }
2095
+
2030
2096
  declare class AxMemory implements AxAIMemory {
2031
2097
  private limit;
2032
2098
  private options?;
@@ -2161,51 +2227,6 @@ type AxInputFunctionType = (AxFunction | {
2161
2227
  toFunction: () => AxFunction | AxFunction[];
2162
2228
  })[];
2163
2229
 
2164
- interface AxField {
2165
- name: string;
2166
- title?: string;
2167
- description?: string;
2168
- type?: {
2169
- name: 'string' | 'number' | 'boolean' | 'json' | 'image' | 'audio' | 'date' | 'datetime' | 'class' | 'code';
2170
- isArray: boolean;
2171
- classes?: string[];
2172
- };
2173
- isOptional?: boolean;
2174
- isInternal?: boolean;
2175
- }
2176
- type AxIField = Omit<AxField, 'title'> & {
2177
- title: string;
2178
- };
2179
- declare class AxSignature {
2180
- private description?;
2181
- private inputFields;
2182
- private outputFields;
2183
- private sigHash;
2184
- private sigString;
2185
- constructor(signature?: Readonly<AxSignature | string>);
2186
- private parseParsedField;
2187
- private parseField;
2188
- setDescription: (desc: string) => void;
2189
- addInputField: (field: Readonly<AxField>) => void;
2190
- addOutputField: (field: Readonly<AxField>) => void;
2191
- setInputFields: (fields: readonly AxField[]) => void;
2192
- setOutputFields: (fields: readonly AxField[]) => void;
2193
- getInputFields: () => Readonly<AxIField[]>;
2194
- getOutputFields: () => Readonly<AxIField[]>;
2195
- getDescription: () => string | undefined;
2196
- private toTitle;
2197
- toJSONSchema: () => AxFunctionJSONSchema;
2198
- private updateHash;
2199
- hash: () => string;
2200
- toString: () => string;
2201
- toJSON: () => {
2202
- id: string;
2203
- description: string | undefined;
2204
- inputFields: AxIField[];
2205
- outputFields: AxIField[];
2206
- };
2207
- }
2208
-
2209
2230
  type AxFieldValue = string | string[] | number | boolean | object | null | undefined | {
2210
2231
  mimeType: string;
2211
2232
  data: string;
@@ -2228,9 +2249,57 @@ type AxMessage = {
2228
2249
  values: AxGenIn;
2229
2250
  } | {
2230
2251
  role: 'assistant';
2231
- values: AxGenOut;
2252
+ values: AxGenIn;
2232
2253
  };
2233
2254
 
2255
+ type Writeable<T> = {
2256
+ -readonly [P in keyof T]: T[P];
2257
+ };
2258
+ interface AxPromptTemplateOptions {
2259
+ functions?: Readonly<AxInputFunctionType>;
2260
+ thoughtFieldName?: string;
2261
+ }
2262
+ type AxChatRequestChatPrompt = Writeable<AxChatRequest['chatPrompt'][0]>;
2263
+ type ChatRequestUserMessage = Exclude<Extract<AxChatRequestChatPrompt, {
2264
+ role: 'user';
2265
+ }>['content'], string>;
2266
+ type AxFieldTemplateFn = (field: Readonly<AxField>, value: Readonly<AxFieldValue>) => ChatRequestUserMessage;
2267
+ declare class AxPromptTemplate {
2268
+ private sig;
2269
+ private fieldTemplates?;
2270
+ private task;
2271
+ private readonly thoughtFieldName;
2272
+ private readonly functions?;
2273
+ constructor(sig: Readonly<AxSignature>, options?: Readonly<AxPromptTemplateOptions>, fieldTemplates?: Record<string, AxFieldTemplateFn>);
2274
+ render: <T extends AxGenIn>(values: T | ReadonlyArray<AxMessage>, // Allow T (AxGenIn) or array of AxMessages
2275
+ { examples, demos, }: Readonly<{
2276
+ skipSystemPrompt?: boolean;
2277
+ examples?: Record<string, AxFieldValue>[];
2278
+ demos?: Record<string, AxFieldValue>[];
2279
+ }>) => AxChatRequest["chatPrompt"];
2280
+ renderExtraFields: (extraFields: readonly AxIField[]) => ({
2281
+ type: "text";
2282
+ text: string;
2283
+ cache?: boolean;
2284
+ } | {
2285
+ type: "image";
2286
+ mimeType: string;
2287
+ image: string;
2288
+ details?: "high" | "low" | "auto";
2289
+ cache?: boolean;
2290
+ } | {
2291
+ type: "audio";
2292
+ data: string;
2293
+ format?: "wav";
2294
+ cache?: boolean;
2295
+ })[];
2296
+ private renderExamples;
2297
+ private renderDemos;
2298
+ private renderInputFields;
2299
+ private renderInField;
2300
+ private defaultRenderInField;
2301
+ }
2302
+
2234
2303
  type AxProgramTrace = {
2235
2304
  trace: Record<string, AxFieldValue>;
2236
2305
  programId: string;
@@ -2259,9 +2328,16 @@ type AxProgramForwardOptions = {
2259
2328
  debug?: boolean;
2260
2329
  debugHideSystemPrompt?: boolean;
2261
2330
  thinkingTokenBudget?: 'minimal' | 'low' | 'medium' | 'high' | 'highest' | 'none';
2331
+ showThoughts?: boolean;
2262
2332
  traceLabel?: string;
2263
2333
  abortSignal?: AbortSignal;
2264
2334
  logger?: AxLoggerFunction;
2335
+ description?: string;
2336
+ thoughtFieldName?: string;
2337
+ promptTemplate?: typeof AxPromptTemplate;
2338
+ asserts?: AxAssertion[];
2339
+ streamingAsserts?: AxStreamingAssertion[];
2340
+ excludeContentFromTrace?: boolean;
2265
2341
  };
2266
2342
  type AxProgramStreamingForwardOptions = Omit<AxProgramForwardOptions, 'stream'>;
2267
2343
  type AxGenDeltaOut<OUT extends AxGenOut> = {
@@ -2330,190 +2406,6 @@ declare class AxProgram<IN extends AxGenIn, OUT extends AxGenOut> implements AxT
2330
2406
  setDemos(demos: readonly AxProgramDemos[]): void;
2331
2407
  }
2332
2408
 
2333
- interface AxAssertion {
2334
- fn(values: Record<string, unknown>): Promise<boolean | undefined> | boolean | undefined;
2335
- message?: string;
2336
- }
2337
- interface AxStreamingAssertion {
2338
- fieldName: string;
2339
- fn(content: string, done?: boolean): boolean | undefined;
2340
- message?: string;
2341
- }
2342
- declare class AxAssertionError extends Error {
2343
- constructor({ message, }: Readonly<{
2344
- message: string;
2345
- }>);
2346
- getFixingInstructions: () => {
2347
- name: string;
2348
- title: string;
2349
- description: string;
2350
- }[];
2351
- toString(): string;
2352
- }
2353
-
2354
- type AxFieldProcessorProcess = (value: AxFieldValue, context?: Readonly<{
2355
- values?: AxGenOut;
2356
- sessionId?: string;
2357
- done?: boolean;
2358
- }>) => unknown | Promise<unknown>;
2359
- type AxStreamingFieldProcessorProcess = (value: string, context?: Readonly<{
2360
- values?: AxGenOut;
2361
- sessionId?: string;
2362
- done?: boolean;
2363
- }>) => unknown | Promise<unknown>;
2364
- interface AxFieldProcessor {
2365
- field: Readonly<AxField>;
2366
- /**
2367
- * Process the field value and return a new value (or undefined if no update is needed).
2368
- * The returned value may be merged back into memory.
2369
- * @param value - The current field value.
2370
- * @param context - Additional context (e.g. memory and session id).
2371
- */
2372
- process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
2373
- }
2374
-
2375
- type Writeable<T> = {
2376
- -readonly [P in keyof T]: T[P];
2377
- };
2378
- interface AxPromptTemplateOptions {
2379
- functions?: Readonly<AxInputFunctionType>;
2380
- thoughtFieldName?: string;
2381
- }
2382
- type AxChatRequestChatPrompt = Writeable<AxChatRequest['chatPrompt'][0]>;
2383
- type ChatRequestUserMessage = Exclude<Extract<AxChatRequestChatPrompt, {
2384
- role: 'user';
2385
- }>['content'], string>;
2386
- type AxFieldTemplateFn = (field: Readonly<AxField>, value: Readonly<AxFieldValue>) => ChatRequestUserMessage;
2387
- declare class AxPromptTemplate {
2388
- private sig;
2389
- private fieldTemplates?;
2390
- private task;
2391
- private readonly thoughtFieldName;
2392
- private readonly functions?;
2393
- constructor(sig: Readonly<AxSignature>, options?: Readonly<AxPromptTemplateOptions>, fieldTemplates?: Record<string, AxFieldTemplateFn>);
2394
- render: <T extends AxGenIn>(values: T | ReadonlyArray<AxMessage>, // Allow T (AxGenIn) or array of AxMessages
2395
- { examples, demos, }: Readonly<{
2396
- skipSystemPrompt?: boolean;
2397
- examples?: Record<string, AxFieldValue>[];
2398
- demos?: Record<string, AxFieldValue>[];
2399
- }>) => AxChatRequest["chatPrompt"];
2400
- renderExtraFields: (extraFields: readonly AxIField[]) => ({
2401
- type: "text";
2402
- text: string;
2403
- cache?: boolean;
2404
- } | {
2405
- type: "image";
2406
- mimeType: string;
2407
- image: string;
2408
- details?: "high" | "low" | "auto";
2409
- cache?: boolean;
2410
- } | {
2411
- type: "audio";
2412
- data: string;
2413
- format?: "wav";
2414
- cache?: boolean;
2415
- })[];
2416
- private renderExamples;
2417
- private renderDemos;
2418
- private renderInputFields;
2419
- private renderInField;
2420
- private defaultRenderInField;
2421
- }
2422
-
2423
- interface AxGenOptions {
2424
- maxRetries?: number;
2425
- maxSteps?: number;
2426
- mem?: AxAIMemory;
2427
- tracer?: Tracer;
2428
- rateLimiter?: AxRateLimiterFunction;
2429
- stream?: boolean;
2430
- description?: string;
2431
- thoughtFieldName?: string;
2432
- functions?: AxInputFunctionType;
2433
- functionCall?: AxChatRequest['functionCall'];
2434
- stopFunction?: string;
2435
- promptTemplate?: typeof AxPromptTemplate;
2436
- asserts?: AxAssertion[];
2437
- streamingAsserts?: AxStreamingAssertion[];
2438
- fastFail?: boolean;
2439
- excludeContentFromTrace?: boolean;
2440
- traceLabel?: string;
2441
- logger?: AxLoggerFunction;
2442
- }
2443
- type AxGenerateResult<OUT extends AxGenOut> = OUT & {
2444
- thought?: string;
2445
- };
2446
- interface AxResponseHandlerArgs<T> {
2447
- ai: Readonly<AxAIService>;
2448
- model?: string;
2449
- res: T;
2450
- mem: AxAIMemory;
2451
- sessionId?: string;
2452
- traceId?: string;
2453
- functions?: Readonly<AxFunction[]>;
2454
- fastFail?: boolean;
2455
- span?: Span;
2456
- }
2457
- interface AxStreamingEvent<T> {
2458
- event: 'delta' | 'done' | 'error';
2459
- data: {
2460
- contentDelta?: string;
2461
- partialValues?: Partial<T>;
2462
- error?: string;
2463
- functions?: AxChatResponseFunctionCall[];
2464
- };
2465
- }
2466
- declare class AxGen<IN extends AxGenIn | ReadonlyArray<AxMessage> = AxGenIn | ReadonlyArray<AxMessage>, OUT extends AxGenerateResult<AxGenOut> = AxGenerateResult<AxGenOut>> extends AxProgramWithSignature<IN, OUT> {
2467
- private promptTemplate;
2468
- private asserts;
2469
- private streamingAsserts;
2470
- private options?;
2471
- private functions?;
2472
- private functionsExecuted;
2473
- private fieldProcessors;
2474
- private streamingFieldProcessors;
2475
- private values;
2476
- private excludeContentFromTrace;
2477
- private thoughtFieldName;
2478
- private logger?;
2479
- constructor(signature: Readonly<AxSignature | string>, options?: Readonly<AxGenOptions>);
2480
- addAssert: (fn: AxAssertion["fn"], message?: string) => void;
2481
- addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
2482
- private addFieldProcessorInternal;
2483
- addStreamingFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
2484
- addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
2485
- private forwardSendRequest;
2486
- private forwardCore;
2487
- private processStreamingResponse;
2488
- private processResponse;
2489
- private _forward2;
2490
- private shouldContinueSteps;
2491
- _forward1(ai: Readonly<AxAIService>, values: IN, options: Readonly<AxProgramForwardOptions>): AsyncGenerator<{
2492
- version: number;
2493
- delta: Partial<OUT>;
2494
- }, void, unknown>;
2495
- forward(ai: Readonly<AxAIService>, values: IN, options?: Readonly<AxProgramForwardOptions>): Promise<OUT>;
2496
- streamingForward(ai: Readonly<AxAIService>, values: IN, options?: Readonly<AxProgramStreamingForwardOptions>): AsyncGenerator<{
2497
- version: number;
2498
- delta: Partial<OUT>;
2499
- }, void, unknown>;
2500
- setExamples(examples: Readonly<AxProgramExamples>, options?: Readonly<AxSetExamplesOptions>): void;
2501
- }
2502
- type AxGenerateErrorDetails = {
2503
- model?: string;
2504
- maxTokens?: number;
2505
- streaming: boolean;
2506
- signature: {
2507
- input: Readonly<AxIField[]>;
2508
- output: Readonly<AxIField[]>;
2509
- description?: string;
2510
- };
2511
- };
2512
- declare class AxGenerateError extends Error {
2513
- readonly details: AxGenerateErrorDetails;
2514
- constructor(message: string, details: Readonly<AxGenerateErrorDetails>, options?: ErrorOptions);
2515
- }
2516
-
2517
2409
  /**
2518
2410
  * Interface for agents that can be used as child agents.
2519
2411
  * Provides methods to get the agent's function definition and features.
@@ -2522,7 +2414,7 @@ interface AxAgentic extends AxTunable, AxUsable {
2522
2414
  getFunction(): AxFunction;
2523
2415
  getFeatures(): AxAgentFeatures;
2524
2416
  }
2525
- type AxAgentOptions = Omit<AxGenOptions, 'functions'> & {
2417
+ type AxAgentOptions = Omit<AxProgramForwardOptions, 'functions'> & {
2526
2418
  disableSmartModelRouting?: boolean;
2527
2419
  /** List of field names that should not be automatically passed from parent to child agents */
2528
2420
  excludeFieldsFromPassthrough?: string[];
@@ -2904,6 +2796,108 @@ declare class AxDBManager {
2904
2796
  }> | undefined) => Promise<AxDBMatch[][]>;
2905
2797
  }
2906
2798
 
2799
+ type AxFieldProcessorProcess = (value: AxFieldValue, context?: Readonly<{
2800
+ values?: AxGenOut;
2801
+ sessionId?: string;
2802
+ done?: boolean;
2803
+ }>) => unknown | Promise<unknown>;
2804
+ type AxStreamingFieldProcessorProcess = (value: string, context?: Readonly<{
2805
+ values?: AxGenOut;
2806
+ sessionId?: string;
2807
+ done?: boolean;
2808
+ }>) => unknown | Promise<unknown>;
2809
+ interface AxFieldProcessor {
2810
+ field: Readonly<AxField>;
2811
+ /**
2812
+ * Process the field value and return a new value (or undefined if no update is needed).
2813
+ * The returned value may be merged back into memory.
2814
+ * @param value - The current field value.
2815
+ * @param context - Additional context (e.g. memory and session id).
2816
+ */
2817
+ process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
2818
+ }
2819
+
2820
+ type AxGenerateResult<OUT extends AxGenOut> = OUT & {
2821
+ thought?: string;
2822
+ };
2823
+ interface AxResponseHandlerArgs<T> {
2824
+ ai: Readonly<AxAIService>;
2825
+ model?: string;
2826
+ res: T;
2827
+ mem: AxAIMemory;
2828
+ sessionId?: string;
2829
+ traceId?: string;
2830
+ functions?: Readonly<AxFunction[]>;
2831
+ fastFail?: boolean;
2832
+ span?: Span;
2833
+ }
2834
+ interface AxStreamingEvent<T> {
2835
+ event: 'delta' | 'done' | 'error';
2836
+ data: {
2837
+ contentDelta?: string;
2838
+ partialValues?: Partial<T>;
2839
+ error?: string;
2840
+ functions?: AxChatResponseFunctionCall[];
2841
+ };
2842
+ }
2843
+ declare class AxGen<IN extends AxGenIn | ReadonlyArray<AxMessage> = AxGenIn | ReadonlyArray<AxMessage>, OUT extends AxGenerateResult<AxGenOut> = AxGenerateResult<AxGenOut>> extends AxProgramWithSignature<IN, OUT> {
2844
+ private promptTemplate;
2845
+ private asserts;
2846
+ private streamingAsserts;
2847
+ private options?;
2848
+ private functions?;
2849
+ private functionsExecuted;
2850
+ private fieldProcessors;
2851
+ private streamingFieldProcessors;
2852
+ private values;
2853
+ private excludeContentFromTrace;
2854
+ private thoughtFieldName;
2855
+ private logger?;
2856
+ constructor(signature: Readonly<AxSignature | string>, options?: Readonly<AxProgramForwardOptions>);
2857
+ addAssert: (fn: AxAssertion["fn"], message?: string) => void;
2858
+ addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
2859
+ private addFieldProcessorInternal;
2860
+ addStreamingFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
2861
+ addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
2862
+ private forwardSendRequest;
2863
+ private forwardCore;
2864
+ private processStreamingResponse;
2865
+ private processResponse;
2866
+ private _forward2;
2867
+ private shouldContinueSteps;
2868
+ _forward1(ai: Readonly<AxAIService>, values: IN, options: Readonly<AxProgramForwardOptions>): AsyncGenerator<{
2869
+ version: number;
2870
+ delta: Partial<OUT>;
2871
+ }, void, unknown>;
2872
+ forward(ai: Readonly<AxAIService>, values: IN, options?: Readonly<AxProgramForwardOptions>): Promise<OUT>;
2873
+ streamingForward(ai: Readonly<AxAIService>, values: IN, options?: Readonly<AxProgramStreamingForwardOptions>): AsyncGenerator<{
2874
+ version: number;
2875
+ delta: Partial<OUT>;
2876
+ }, void, unknown>;
2877
+ setExamples(examples: Readonly<AxProgramExamples>, options?: Readonly<AxSetExamplesOptions>): void;
2878
+ }
2879
+ type AxGenerateErrorDetails = {
2880
+ model?: string;
2881
+ maxTokens?: number;
2882
+ streaming: boolean;
2883
+ signature: {
2884
+ input: Readonly<AxIField[]>;
2885
+ output: Readonly<AxIField[]>;
2886
+ description?: string;
2887
+ };
2888
+ };
2889
+ declare class AxGenerateError extends Error {
2890
+ readonly details: AxGenerateErrorDetails;
2891
+ constructor(message: string, details: Readonly<AxGenerateErrorDetails>, options?: ErrorOptions);
2892
+ }
2893
+
2894
+ declare class AxDefaultQueryRewriter extends AxGen<AxRewriteIn, AxRewriteOut> {
2895
+ constructor(options?: Readonly<AxProgramForwardOptions>);
2896
+ }
2897
+ declare class AxRewriter extends AxGen<AxRewriteIn, AxRewriteOut> {
2898
+ constructor(options?: Readonly<AxProgramForwardOptions>);
2899
+ }
2900
+
2907
2901
  interface AxDockerContainer {
2908
2902
  Id: string;
2909
2903
  Names: string[];
@@ -3456,24 +3450,20 @@ Readonly<AxAIOpenAIEmbedResponse>> {
3456
3450
  getModelConfig(): Readonly<AxModelConfig>;
3457
3451
  private mapInternalContentToResponsesInput;
3458
3452
  private createResponsesReqInternalInput;
3459
- createChatReq(req: Readonly<AxInternalChatRequest<TModel>>, _config: Readonly<AxAIPromptConfig>): [Readonly<AxAPI>, Readonly<AxAIOpenAIResponsesRequest<TModel>>];
3453
+ createChatReq(req: Readonly<AxInternalChatRequest<TModel>>, config: Readonly<AxAIPromptConfig>): [Readonly<AxAPI>, Readonly<AxAIOpenAIResponsesRequest<TModel>>];
3460
3454
  createChatResp(resp: Readonly<AxAIOpenAIResponsesResponse>): Readonly<AxChatResponse>;
3461
3455
  createChatStreamResp(streamEvent: Readonly<AxAIOpenAIResponsesResponseDelta>): Readonly<AxChatResponse>;
3462
3456
  createEmbedReq(req: Readonly<AxInternalEmbedRequest<TEmbedModel>>): [AxAPI, AxAIOpenAIEmbedRequest<TEmbedModel>];
3463
3457
  }
3464
3458
 
3465
3459
  declare class AxChainOfThought<IN extends AxGenIn = AxGenIn, OUT extends AxGenOut = AxGenOut> extends AxGen<IN, OUT> {
3466
- constructor(signature: Readonly<AxSignature | string>, options?: Readonly<AxGenOptions & {
3460
+ constructor(signature: Readonly<AxSignature | string>, options?: Readonly<AxProgramForwardOptions & {
3467
3461
  setVisibleReasoning?: boolean;
3468
3462
  }>);
3469
3463
  }
3470
3464
 
3471
- declare class AxDefaultQueryRewriter extends AxGen<AxRewriteIn, AxRewriteOut> {
3472
- constructor(options?: Readonly<AxGenOptions>);
3473
- }
3474
-
3475
3465
  declare class AxDefaultResultReranker extends AxGen<AxRerankerIn, AxRerankerOut> {
3476
- constructor(options?: Readonly<AxGenOptions>);
3466
+ constructor(options?: Readonly<AxProgramForwardOptions>);
3477
3467
  forward: (ai: Readonly<AxAIService>, input: Readonly<AxRerankerIn>, options?: Readonly<AxProgramForwardOptions>) => Promise<AxRerankerOut>;
3478
3468
  }
3479
3469
 
@@ -3697,7 +3687,7 @@ declare class AxRAG extends AxChainOfThought<{
3697
3687
  private genQuery;
3698
3688
  private queryFn;
3699
3689
  private maxHops;
3700
- constructor(queryFn: (query: string) => Promise<string>, options: Readonly<AxGenOptions & {
3690
+ constructor(queryFn: (query: string) => Promise<string>, options: Readonly<AxProgramForwardOptions & {
3701
3691
  maxHops?: number;
3702
3692
  }>);
3703
3693
  forward(ai: Readonly<AxAIService>, { question }: Readonly<{
@@ -3756,4 +3746,4 @@ declare const axModelInfoReka: AxModelInfo[];
3756
3746
 
3757
3747
  declare const axModelInfoTogether: AxModelInfo[];
3758
3748
 
3759
- 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, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiEmbedTypes, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiThinkingConfig, 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, 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, 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, AxBootstrapFewShot, AxChainOfThought, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, AxDB, type AxDBArgs, AxDBBase, type AxDBBaseArgs, type AxDBBaseOpOptions, AxDBCloudflare, type AxDBCloudflareArgs, type AxDBCloudflareOpOptions, type AxDBLoaderOptions, AxDBManager, type AxDBManagerArgs, type AxDBMatch, AxDBMemory, type AxDBMemoryArgs, type AxDBMemoryOpOptions, AxDBPinecone, type AxDBPineconeArgs, type AxDBPineconeOpOptions, type AxDBQueryRequest, type AxDBQueryResponse, type AxDBQueryService, type AxDBService, type AxDBState, type AxDBUpsertRequest, type AxDBUpsertResponse, AxDBWeaviate, type AxDBWeaviateArgs, type AxDBWeaviateOpOptions, type AxDataRow, AxDefaultQueryRewriter, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxField, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, type AxFieldValue, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenOptions, 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 AxMiPROOptions, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, AxMultiServiceRouter, type AxOptimizationStats, type AxOptimizerArgs, 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, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable, 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, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoReka, axModelInfoTogether, axSpanAttributes, axSpanEvents };
3749
+ 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, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiEmbedTypes, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiThinkingConfig, 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, 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, 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, AxBootstrapFewShot, AxChainOfThought, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, AxDB, type AxDBArgs, AxDBBase, type AxDBBaseArgs, type AxDBBaseOpOptions, AxDBCloudflare, type AxDBCloudflareArgs, type AxDBCloudflareOpOptions, type AxDBLoaderOptions, AxDBManager, type AxDBManagerArgs, type AxDBMatch, AxDBMemory, type AxDBMemoryArgs, type AxDBMemoryOpOptions, AxDBPinecone, type AxDBPineconeArgs, type AxDBPineconeOpOptions, type AxDBQueryRequest, type AxDBQueryResponse, type AxDBQueryService, type AxDBService, type AxDBState, type AxDBUpsertRequest, type AxDBUpsertResponse, AxDBWeaviate, type AxDBWeaviateArgs, type AxDBWeaviateOpOptions, type AxDataRow, AxDefaultQueryRewriter, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, AxEvalUtil, type AxEvaluateArgs, type AxExample, type AxField, type AxFieldProcessor, type AxFieldProcessorProcess, type AxFieldTemplateFn, 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 AxMiPROOptions, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxModelUsage, AxMultiServiceRouter, type AxOptimizationStats, type AxOptimizerArgs, 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, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable, 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, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGrok, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoReka, axModelInfoTogether, axSpanAttributes, axSpanEvents };