@ax-llm/ax 11.0.20 → 11.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.cts CHANGED
@@ -60,10 +60,14 @@ declare class AxAIServiceAuthenticationError extends AxAIServiceError {
60
60
  constructor(url: string, requestBody?: unknown, context?: Record<string, unknown>);
61
61
  }
62
62
 
63
- type AxAIModelList<T = unknown> = {
63
+ type AxAIInputModelList<TModel> = (AxAIModelList[number] & {
64
+ model: TModel;
65
+ isInternal?: boolean;
66
+ })[];
67
+ type AxAIModelList = {
64
68
  key: string;
65
- model: T;
66
69
  description: string;
70
+ model: string;
67
71
  }[];
68
72
  type AxModelInfo = {
69
73
  name: string;
@@ -256,10 +260,12 @@ type AxAIServiceActionOptions<TModel = unknown, TEmbedModel = unknown> = {
256
260
  interface AxAIService<TModel = unknown, TEmbedModel = unknown> {
257
261
  getId(): string;
258
262
  getName(): string;
259
- getModelInfo(): Readonly<AxModelInfoWithProvider>;
260
- getEmbedModelInfo(): Readonly<AxModelInfoWithProvider> | undefined;
261
263
  getFeatures(model?: TModel): AxAIFeatures;
262
- getModelList(): AxAIModelList<TModel> | undefined;
264
+ getModelList(): AxAIModelList | undefined;
265
+ getDefaultModels(): Readonly<{
266
+ model: string;
267
+ embedModel?: string;
268
+ }>;
263
269
  getMetrics(): AxAIServiceMetrics;
264
270
  chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
265
271
  embed(req: Readonly<AxEmbedRequest<TEmbedModel>>, options?: Readonly<AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxEmbedResponse>;
@@ -291,7 +297,7 @@ interface AxBaseAIArgs<TModel, TEmbedModel> {
291
297
  }>;
292
298
  options?: Readonly<AxAIServiceOptions>;
293
299
  supportFor: AxAIFeatures | ((model: TModel) => AxAIFeatures);
294
- models?: AxAIModelList<TModel>;
300
+ models?: AxAIInputModelList<TModel>;
295
301
  }
296
302
  declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatResponse, TChatResponseDelta, TEmbedResponse> implements AxAIService<TModel, TEmbedModel> {
297
303
  private readonly aiImpl;
@@ -317,9 +323,11 @@ declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatRe
317
323
  setHeaders(headers: () => Promise<Record<string, string>>): void;
318
324
  setOptions(options: Readonly<AxAIServiceOptions>): void;
319
325
  getOptions(): Readonly<AxAIServiceOptions>;
320
- getModelInfo(): Readonly<AxModelInfoWithProvider>;
321
- getEmbedModelInfo(): AxModelInfoWithProvider | undefined;
322
- getModelList(): AxAIModelList<TModel> | undefined;
326
+ getModelList(): AxAIModelList | undefined;
327
+ getDefaultModels(): Readonly<{
328
+ model: string;
329
+ embedModel?: string;
330
+ }>;
323
331
  getName(): string;
324
332
  getFeatures(model?: TModel): AxAIFeatures;
325
333
  private calculatePercentile;
@@ -532,7 +540,7 @@ interface AxAIAnthropicArgs {
532
540
  region?: string;
533
541
  config?: Readonly<Partial<AxAIAnthropicConfig>>;
534
542
  options?: Readonly<AxAIServiceOptions>;
535
- models?: AxAIModelList<AxAIAnthropicModel | AxAIAnthropicVertexModel>;
543
+ models?: AxAIInputModelList<AxAIAnthropicModel | AxAIAnthropicVertexModel>;
536
544
  }
537
545
  declare class AxAIAnthropic extends AxBaseAI<AxAIAnthropicModel | AxAIAnthropicVertexModel, unknown, AxAIAnthropicChatRequest, unknown, AxAIAnthropicChatResponse, AxAIAnthropicChatResponseDelta, unknown> {
538
546
  constructor({ apiKey, projectId, region, config, options, models, }: Readonly<Omit<AxAIAnthropicArgs, 'name'>>);
@@ -656,7 +664,7 @@ type AxAIOpenAIChatRequest<TModel> = {
656
664
  response_format?: {
657
665
  type: string;
658
666
  };
659
- max_tokens: number;
667
+ max_completion_tokens: number;
660
668
  temperature?: number;
661
669
  top_p?: number;
662
670
  n?: number;
@@ -732,7 +740,7 @@ interface AxAIOpenAIBaseArgs<TModel, TEmbedModel> {
732
740
  streamingUsage?: boolean;
733
741
  }>;
734
742
  modelInfo: Readonly<AxModelInfo[]>;
735
- models?: AxAIModelList<TModel>;
743
+ models?: AxAIInputModelList<TModel>;
736
744
  }
737
745
  declare class AxAIOpenAIBase<TModel, TEmbedModel> extends AxBaseAI<TModel, TEmbedModel, AxAIOpenAIChatRequest<TModel>, AxAIOpenAIEmbedRequest<TEmbedModel>, AxAIOpenAIChatResponse, AxAIOpenAIChatResponseDelta, AxAIOpenAIEmbedResponse> {
738
746
  constructor({ apiKey, config, options, apiURL, modelInfo, models, }: Readonly<Omit<AxAIOpenAIBaseArgs<TModel, TEmbedModel>, 'name'>>);
@@ -855,7 +863,7 @@ interface AxAICohereArgs {
855
863
  apiKey: string;
856
864
  config?: Readonly<Partial<AxAICohereConfig>>;
857
865
  options?: Readonly<AxAIServiceOptions>;
858
- models?: AxAIModelList<AxAICohereModel>;
866
+ models?: AxAIInputModelList<AxAICohereModel>;
859
867
  }
860
868
  declare class AxAICohere extends AxBaseAI<AxAICohereModel, AxAICohereEmbedModel, AxAICohereChatRequest, AxAICohereEmbedRequest, AxAICohereChatResponse, AxAICohereChatResponseDelta, AxAICohereEmbedResponse> {
861
869
  constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAICohereArgs, 'name'>>);
@@ -1060,22 +1068,23 @@ interface AxAIGoogleGeminiOptionsTools {
1060
1068
  mode?: 'MODE_DYNAMIC';
1061
1069
  dynamicThreshold?: number;
1062
1070
  };
1071
+ googleSearch?: boolean;
1063
1072
  }
1064
1073
  interface AxAIGoogleGeminiArgs {
1065
1074
  name: 'google-gemini';
1066
1075
  apiKey?: string;
1067
1076
  projectId?: string;
1068
1077
  region?: string;
1069
- endpoint?: string;
1078
+ endpointId?: string;
1070
1079
  config?: Readonly<Partial<AxAIGoogleGeminiConfig>>;
1071
1080
  options?: Readonly<AxAIServiceOptions & AxAIGoogleGeminiOptionsTools>;
1072
- models?: AxAIModelList<AxAIGoogleGeminiModel>;
1081
+ models?: AxAIInputModelList<AxAIGoogleGeminiModel>;
1073
1082
  }
1074
1083
  /**
1075
1084
  * AxAIGoogleGemini: AI Service
1076
1085
  */
1077
1086
  declare class AxAIGoogleGemini extends AxBaseAI<AxAIGoogleGeminiModel, AxAIGoogleGeminiEmbedModel, AxAIGoogleGeminiChatRequest, AxAIGoogleGeminiBatchEmbedRequest | AxAIGoogleVertexBatchEmbedRequest, AxAIGoogleGeminiChatResponse, AxAIGoogleGeminiChatResponseDelta, AxAIGoogleGeminiBatchEmbedResponse | AxAIGoogleVertexBatchEmbedResponse> {
1078
- constructor({ apiKey, projectId, region, endpoint, config, options, models, }: Readonly<Omit<AxAIGoogleGeminiArgs, 'name'>>);
1087
+ constructor({ apiKey, projectId, region, endpointId, config, options, models, }: Readonly<Omit<AxAIGoogleGeminiArgs, 'name'>>);
1079
1088
  }
1080
1089
 
1081
1090
  declare enum AxAIGroqModel {
@@ -1135,7 +1144,7 @@ interface AxAIHuggingFaceArgs {
1135
1144
  apiKey: string;
1136
1145
  config?: Readonly<Partial<AxAIHuggingFaceConfig>>;
1137
1146
  options?: Readonly<AxAIServiceOptions>;
1138
- models?: AxAIModelList<AxAIHuggingFaceModel>;
1147
+ models?: AxAIInputModelList<AxAIHuggingFaceModel>;
1139
1148
  }
1140
1149
  declare class AxAIHuggingFace extends AxBaseAI<AxAIHuggingFaceModel, unknown, AxAIHuggingFaceRequest, unknown, AxAIHuggingFaceResponse, unknown, unknown> {
1141
1150
  constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIHuggingFaceArgs, 'name'>>);
@@ -1253,7 +1262,7 @@ interface AxAIRekaArgs {
1253
1262
  streamingUsage?: boolean;
1254
1263
  }>;
1255
1264
  modelInfo?: Readonly<AxModelInfo[]>;
1256
- models?: AxAIModelList<AxAIRekaModel>;
1265
+ models?: AxAIInputModelList<AxAIRekaModel>;
1257
1266
  }
1258
1267
  declare class AxAIReka extends AxBaseAI<AxAIRekaModel, undefined, AxAIRekaChatRequest, unknown, AxAIRekaChatResponse, AxAIRekaChatResponseDelta, unknown> {
1259
1268
  constructor({ apiKey, config, options, apiURL, modelInfo, models, }: Readonly<Omit<AxAIRekaArgs, 'name'>>);
@@ -1272,13 +1281,15 @@ declare class AxAI implements AxAIService {
1272
1281
  constructor(options: Readonly<AxAIArgs>);
1273
1282
  getName(): string;
1274
1283
  getId(): string;
1275
- getModelInfo(): Readonly<AxModelInfoWithProvider>;
1276
- getEmbedModelInfo(): Readonly<AxModelInfoWithProvider> | undefined;
1277
1284
  getFeatures(model?: string): {
1278
1285
  functions: boolean;
1279
1286
  streaming: boolean;
1280
1287
  };
1281
1288
  getModelList(): AxAIModelList | undefined;
1289
+ getDefaultModels(): Readonly<{
1290
+ model: string;
1291
+ embedModel?: string;
1292
+ }>;
1282
1293
  getMetrics(): AxAIServiceMetrics;
1283
1294
  chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
1284
1295
  embed(req: Readonly<AxEmbedRequest>, options?: Readonly<AxAIServiceActionOptions & AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
@@ -1470,6 +1481,16 @@ declare class AxAssertionError extends Error {
1470
1481
  }[];
1471
1482
  }
1472
1483
 
1484
+ type AxFieldProcessorProcess = (value: AxFieldValue, context?: Readonly<{
1485
+ values?: AxGenOut;
1486
+ sessionId?: string;
1487
+ done?: boolean;
1488
+ }>) => unknown | Promise<unknown>;
1489
+ type AxStreamingFieldProcessorProcess = (value: string, context?: Readonly<{
1490
+ values?: AxGenOut;
1491
+ sessionId?: string;
1492
+ done?: boolean;
1493
+ }>) => unknown | Promise<unknown>;
1473
1494
  interface AxFieldProcessor {
1474
1495
  field: Readonly<AxField>;
1475
1496
  /**
@@ -1478,11 +1499,7 @@ interface AxFieldProcessor {
1478
1499
  * @param value - The current field value.
1479
1500
  * @param context - Additional context (e.g. memory and session id).
1480
1501
  */
1481
- process: (value: AxFieldValue, context?: Readonly<{
1482
- values?: AxGenOut;
1483
- sessionId?: string;
1484
- done?: boolean;
1485
- }>) => any | Promise<any>;
1502
+ process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
1486
1503
  }
1487
1504
 
1488
1505
  declare class AxMemory implements AxAIMemory {
@@ -1710,7 +1727,9 @@ declare class AxGen<IN extends AxGenIn = AxGenIn, OUT extends AxGenerateResult<A
1710
1727
  constructor(signature: Readonly<AxSignature | string>, options?: Readonly<AxGenOptions>);
1711
1728
  addAssert: (fn: AxAssertion["fn"], message?: string) => void;
1712
1729
  addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
1713
- addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"], streaming?: boolean) => void;
1730
+ private addFieldProcessorInternal;
1731
+ addStreamingFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
1732
+ addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
1714
1733
  private forwardSendRequest;
1715
1734
  private forwardCore;
1716
1735
  private processStreamingResponse;
@@ -1832,7 +1851,7 @@ type AxBalancerOptions = {
1832
1851
  /**
1833
1852
  * Balancer that rotates through services.
1834
1853
  */
1835
- declare class AxBalancer implements AxAIService {
1854
+ declare class AxBalancer implements AxAIService<unknown, unknown> {
1836
1855
  private services;
1837
1856
  private currentServiceIndex;
1838
1857
  private currentService;
@@ -1849,14 +1868,16 @@ declare class AxBalancer implements AxAIService {
1849
1868
  /**
1850
1869
  * Service comparator that sorts services by cost.
1851
1870
  */
1852
- static costComparator: (a: AxAIService, b: AxAIService) => number;
1871
+ static metricComparator: (a: AxAIService, b: AxAIService) => number;
1853
1872
  getModelList(): AxAIModelList | undefined;
1873
+ getDefaultModels(): Readonly<{
1874
+ model: string;
1875
+ embedModel?: string;
1876
+ }>;
1854
1877
  private getNextService;
1855
1878
  private reset;
1856
1879
  getName(): string;
1857
1880
  getId(): string;
1858
- getModelInfo(): Readonly<AxModelInfoWithProvider>;
1859
- getEmbedModelInfo(): Readonly<AxModelInfoWithProvider> | undefined;
1860
1881
  getFeatures(model?: string): AxAIFeatures;
1861
1882
  getMetrics(): AxAIServiceMetrics;
1862
1883
  private canRetryService;
@@ -2269,13 +2290,15 @@ declare class AxMockAIService implements AxAIService {
2269
2290
  constructor(config?: AxMockAIServiceConfig);
2270
2291
  getName(): string;
2271
2292
  getId(): string;
2272
- getModelInfo(): Readonly<AxModelInfoWithProvider>;
2273
- getEmbedModelInfo(): Readonly<AxModelInfoWithProvider> | undefined;
2274
2293
  getFeatures(_model?: string): {
2275
2294
  functions: boolean;
2276
2295
  streaming: boolean;
2277
2296
  };
2278
2297
  getModelList(): AxAIModelList | undefined;
2298
+ getDefaultModels(): Readonly<{
2299
+ model: string;
2300
+ embedModel?: string;
2301
+ }>;
2279
2302
  getMetrics(): AxAIServiceMetrics;
2280
2303
  chat(req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<unknown, unknown>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
2281
2304
  embed(req: Readonly<AxEmbedRequest>, _options?: Readonly<AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
@@ -2299,25 +2322,25 @@ declare class AxRateLimiterTokenUsage {
2299
2322
  acquire(tokens: number): Promise<void>;
2300
2323
  }
2301
2324
 
2302
- interface AxRouterForwardOptions {
2325
+ interface AxSimpleClassifierForwardOptions {
2303
2326
  cutoff?: number;
2304
2327
  }
2305
- declare class AxRoute {
2328
+ declare class AxSimpleClassifierClass {
2306
2329
  private readonly name;
2307
2330
  private readonly context;
2308
2331
  constructor(name: string, context: readonly string[]);
2309
2332
  getName(): string;
2310
2333
  getContext(): readonly string[];
2311
2334
  }
2312
- declare class AxRouter {
2335
+ declare class AxSimpleClassifier {
2313
2336
  private readonly ai;
2314
2337
  private db;
2315
2338
  private debug?;
2316
2339
  constructor(ai: AxAIService);
2317
2340
  getState(): AxDBState | undefined;
2318
2341
  setState(state: AxDBState): void;
2319
- setRoutes: (routes: readonly AxRoute[]) => Promise<void>;
2320
- forward(text: string, options?: Readonly<AxRouterForwardOptions>): Promise<string>;
2342
+ setClasses: (classes: readonly AxSimpleClassifierClass[]) => Promise<void>;
2343
+ forward(text: string, options?: Readonly<AxSimpleClassifierForwardOptions>): Promise<string>;
2321
2344
  setOptions(options: Readonly<{
2322
2345
  debug?: boolean;
2323
2346
  }>): void;
@@ -2375,6 +2398,70 @@ declare class AxInstanceRegistry<T> {
2375
2398
  [Symbol.iterator](): Generator<T, void, unknown>;
2376
2399
  }
2377
2400
 
2401
+ type AxAIServiceListItem = {
2402
+ key: string;
2403
+ service: AxAIService;
2404
+ description: string;
2405
+ isInternal?: boolean;
2406
+ };
2407
+ declare class AxMultiServiceRouter implements AxAIService<string, string> {
2408
+ private services;
2409
+ /**
2410
+ * Constructs a new multi-service router.
2411
+ * It validates that each service provides a unique set of model keys,
2412
+ * then builds a lookup (map) for routing the chat/embed requests.
2413
+ */
2414
+ constructor(services: (AxAIServiceListItem | AxAIService)[]);
2415
+ /**
2416
+ * Delegates the chat call to the service matching the provided model key.
2417
+ */
2418
+ chat(req: Readonly<AxChatRequest<string>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<string, string>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
2419
+ /**
2420
+ * Delegates the embed call to the service matching the provided embed model key.
2421
+ */
2422
+ embed(req: Readonly<AxEmbedRequest<string>>, options?: Readonly<AxAIServiceActionOptions<string, string>>): Promise<AxEmbedResponse>;
2423
+ /**
2424
+ * Returns a composite ID built from the IDs of the underlying services.
2425
+ */
2426
+ getId(): string;
2427
+ /**
2428
+ * Returns the name of this router.
2429
+ */
2430
+ getName(): string;
2431
+ /**
2432
+ * Aggregates all available models across the underlying services.
2433
+ */
2434
+ getModelList(): AxAIModelList;
2435
+ getDefaultModels(): Readonly<{
2436
+ model: string;
2437
+ embedModel?: string;
2438
+ }>;
2439
+ /**
2440
+ * If a model key is provided, delegate to the corresponding service's features.
2441
+ * Otherwise, returns a default feature set.
2442
+ */
2443
+ getFeatures(model?: string): {
2444
+ functions: boolean;
2445
+ streaming: boolean;
2446
+ functionCot?: boolean;
2447
+ };
2448
+ /**
2449
+ * Returns aggregated metrics from the underlying service.
2450
+ * Uses the metrics from the last service that was used,
2451
+ * or falls back to the first service if none has been used.
2452
+ */
2453
+ getMetrics(): AxAIServiceMetrics;
2454
+ /**
2455
+ * Sets options on all underlying services.
2456
+ */
2457
+ setOptions(options: Readonly<AxAIServiceOptions>): void;
2458
+ /**
2459
+ * Returns the options from the last used service,
2460
+ * or falls back to the first service if none has been used.
2461
+ */
2462
+ getOptions(): Readonly<AxAIServiceOptions>;
2463
+ }
2464
+
2378
2465
  declare class AxRAG extends AxChainOfThought<{
2379
2466
  context: string[];
2380
2467
  question: string;
@@ -2395,4 +2482,4 @@ declare class AxRAG extends AxChainOfThought<{
2395
2482
  }>;
2396
2483
  }
2397
2484
 
2398
- 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, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleSearchRetrieval, type AxAIGoogleVertexBatchEmbedRequest, type AxAIGoogleVertexBatchEmbedResponse, AxAIGroq, type AxAIGroqArgs, AxAIGroqModel, AxAIHuggingFace, type AxAIHuggingFaceArgs, type AxAIHuggingFaceConfig, AxAIHuggingFaceModel, type AxAIHuggingFaceRequest, type AxAIHuggingFaceResponse, type AxAIMemory, AxAIMistral, type AxAIMistralArgs, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, 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, type AxAIOpenAIUsage, type AxAIPromptConfig, AxAIReka, type AxAIRekaArgs, type AxAIRekaChatRequest, type AxAIRekaChatResponse, type AxAIRekaChatResponseDelta, type AxAIRekaConfig, AxAIRekaModel, type AxAIRekaUsage, type AxAIService, 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, type AxEvaluateArgs, type AxExample, type AxField, type AxFieldProcessor, type AxFieldTemplateFn, type AxFieldValue, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenOptions, type AxGenOut, type AxGenStreamingOut, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJSInterpreter, AxJSInterpreterPermission, AxLLMRequestTypeValues, AxMemory, type AxMetricFn, type AxMetricFnArgs, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxOptimizerArgs, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramStreamingForwardOptions, type AxProgramTrace, type AxProgramUsage, AxProgramWithSignature, type AxProgramWithSignatureOptions, AxPromptTemplate, AxRAG, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxRewriteIn, type AxRewriteOut, AxRoute, AxRouter, type AxRouterForwardOptions, AxSignature, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable };
2485
+ 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, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleSearchRetrieval, type AxAIGoogleVertexBatchEmbedRequest, type AxAIGoogleVertexBatchEmbedResponse, 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 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, type AxAIOpenAIUsage, type AxAIPromptConfig, AxAIReka, type AxAIRekaArgs, type AxAIRekaChatRequest, type AxAIRekaChatResponse, type AxAIRekaChatResponseDelta, type AxAIRekaConfig, AxAIRekaModel, type AxAIRekaUsage, type AxAIService, 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, 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, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJSInterpreter, AxJSInterpreterPermission, AxLLMRequestTypeValues, AxMemory, type AxMetricFn, type AxMetricFnArgs, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, AxMultiServiceRouter, type AxOptimizerArgs, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramStreamingForwardOptions, type AxProgramTrace, type AxProgramUsage, AxProgramWithSignature, type AxProgramWithSignatureOptions, AxPromptTemplate, AxRAG, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxRewriteIn, type AxRewriteOut, AxSignature, AxSimpleClassifier, AxSimpleClassifierClass, type AxSimpleClassifierForwardOptions, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, type AxStreamingFieldProcessorProcess, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable };