@ax-llm/ax 11.0.34 → 11.0.36

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
@@ -61,15 +61,22 @@ declare class AxAIServiceAuthenticationError extends AxAIServiceError {
61
61
  constructor(url: string, requestBody?: unknown, context?: Record<string, unknown>);
62
62
  }
63
63
 
64
- type AxAIInputModelList<TModel> = (AxAIModelList[number] & {
65
- model: TModel;
64
+ type AxAIInputModelList<TModel, TEmbedModel> = (AxAIModelListBase & {
66
65
  isInternal?: boolean;
67
- })[];
68
- type AxAIModelList = {
66
+ } & ({
67
+ model: TModel;
68
+ } | {
69
+ embedModel: TEmbedModel;
70
+ }))[];
71
+ type AxAIModelListBase = {
69
72
  key: string;
70
73
  description: string;
74
+ };
75
+ type AxAIModelList = (AxAIModelListBase & ({
71
76
  model: string;
72
- }[];
77
+ } | {
78
+ embedModel: string;
79
+ }))[];
73
80
  type AxModelInfo = {
74
81
  name: string;
75
82
  currency?: string;
@@ -130,18 +137,22 @@ type AxChatResponseResult = {
130
137
  }[];
131
138
  finishReason?: 'stop' | 'length' | 'function_call' | 'content_filter' | 'error';
132
139
  };
140
+ type AxModelUsage = {
141
+ ai: string;
142
+ model: string;
143
+ tokens?: AxTokenUsage;
144
+ };
133
145
  type AxChatResponse = {
134
146
  sessionId?: string;
135
147
  remoteId?: string;
136
148
  results: readonly AxChatResponseResult[];
137
- modelUsage?: AxTokenUsage;
138
- embedModelUsage?: AxTokenUsage;
149
+ modelUsage?: AxModelUsage;
139
150
  };
140
151
  type AxEmbedResponse = {
141
152
  remoteId?: string;
142
153
  sessionId?: string;
143
154
  embeddings: readonly (readonly number[])[];
144
- modelUsage?: AxTokenUsage;
155
+ modelUsage?: AxModelUsage;
145
156
  };
146
157
  type AxModelInfoWithProvider = AxModelInfo & {
147
158
  provider: string;
@@ -239,8 +250,7 @@ type AxEmbedRequest<TEmbedModel = string> = {
239
250
  };
240
251
  type AxInternalEmbedRequest<TEmbedModel> = Omit<AxEmbedRequest, 'embedModel'> & Required<Pick<AxEmbedRequest<TEmbedModel>, 'embedModel'>>;
241
252
  type AxRateLimiterFunction = <T = unknown>(reqFunc: () => Promise<T | ReadableStream<T>>, info: Readonly<{
242
- modelUsage?: AxTokenUsage;
243
- embedModelUsage?: AxTokenUsage;
253
+ modelUsage?: AxModelUsage;
244
254
  }>) => Promise<T | ReadableStream<T>>;
245
255
  type AxAIPromptConfig = {
246
256
  stream?: boolean;
@@ -264,10 +274,6 @@ interface AxAIService<TModel = unknown, TEmbedModel = unknown> {
264
274
  getName(): string;
265
275
  getFeatures(model?: TModel): AxAIFeatures;
266
276
  getModelList(): AxAIModelList | undefined;
267
- getDefaultModels(): Readonly<{
268
- model: string;
269
- embedModel?: string;
270
- }>;
271
277
  getMetrics(): AxAIServiceMetrics;
272
278
  chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
273
279
  embed(req: Readonly<AxEmbedRequest<TEmbedModel>>, options?: Readonly<AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxEmbedResponse>;
@@ -281,6 +287,7 @@ interface AxAIServiceImpl<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TCha
281
287
  createEmbedReq?(req: Readonly<AxInternalEmbedRequest<TEmbedModel>>): [AxAPI, TEmbedRequest];
282
288
  createEmbedResp?(resp: Readonly<TEmbedResponse>): AxEmbedResponse;
283
289
  getModelConfig(): AxModelConfig;
290
+ getTokenUsage(): AxTokenUsage | undefined;
284
291
  }
285
292
 
286
293
  interface AxAIFeatures {
@@ -299,7 +306,7 @@ interface AxBaseAIArgs<TModel, TEmbedModel> {
299
306
  }>;
300
307
  options?: Readonly<AxAIServiceOptions>;
301
308
  supportFor: AxAIFeatures | ((model: TModel) => AxAIFeatures);
302
- models?: AxAIInputModelList<TModel>;
309
+ models?: AxAIInputModelList<TModel, TEmbedModel>;
303
310
  }
304
311
  declare const axBaseAIDefaultConfig: () => AxModelConfig;
305
312
  declare const axBaseAIDefaultCreativeConfig: () => AxModelConfig;
@@ -328,10 +335,6 @@ declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatRe
328
335
  setOptions(options: Readonly<AxAIServiceOptions>): void;
329
336
  getOptions(): Readonly<AxAIServiceOptions>;
330
337
  getModelList(): AxAIModelList | undefined;
331
- getDefaultModels(): Readonly<{
332
- model: string;
333
- embedModel?: string;
334
- }>;
335
338
  getName(): string;
336
339
  getFeatures(model?: TModel): AxAIFeatures;
337
340
  private calculatePercentile;
@@ -346,6 +349,9 @@ declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatRe
346
349
  private _embed1;
347
350
  private _embed2;
348
351
  private buildHeaders;
352
+ private getModelByKey;
353
+ private getModel;
354
+ private getEmbedModel;
349
355
  }
350
356
 
351
357
  declare enum AxAIAnthropicModel {
@@ -540,6 +546,7 @@ interface AxAIAnthropicErrorEvent {
540
546
  type AxAIAnthropicChatResponseDelta = AxAIAnthropicMessageStartEvent | AxAIAnthropicContentBlockStartEvent | AxAIAnthropicContentBlockDeltaEvent | AxAIAnthropicContentBlockStopEvent | AxAIAnthropicMessageDeltaEvent | AxAIAnthropicMessageStopEvent | AxAIAnthropicPingEvent | AxAIAnthropicErrorEvent;
541
547
 
542
548
  declare const axAIAnthropicDefaultConfig: () => AxAIAnthropicConfig;
549
+ declare const axAIAnthropicVertexDefaultConfig: () => AxAIAnthropicConfig;
543
550
  interface AxAIAnthropicArgs {
544
551
  name: 'anthropic';
545
552
  apiKey?: string;
@@ -547,7 +554,7 @@ interface AxAIAnthropicArgs {
547
554
  region?: string;
548
555
  config?: Readonly<Partial<AxAIAnthropicConfig>>;
549
556
  options?: Readonly<AxAIServiceOptions>;
550
- models?: AxAIInputModelList<AxAIAnthropicModel | AxAIAnthropicVertexModel>;
557
+ models?: AxAIInputModelList<AxAIAnthropicModel | AxAIAnthropicVertexModel, undefined>;
551
558
  }
552
559
  declare class AxAIAnthropic extends AxBaseAI<AxAIAnthropicModel | AxAIAnthropicVertexModel, unknown, AxAIAnthropicChatRequest, unknown, AxAIAnthropicChatResponse, AxAIAnthropicChatResponseDelta, unknown> {
553
560
  constructor({ apiKey, projectId, region, config, options, models, }: Readonly<Omit<AxAIAnthropicArgs, 'name'>>);
@@ -555,10 +562,13 @@ declare class AxAIAnthropic extends AxBaseAI<AxAIAnthropicModel | AxAIAnthropicV
555
562
 
556
563
  declare enum AxAIOpenAIModel {
557
564
  O1 = "o1",
565
+ O3 = "o3",
558
566
  O1Mini = "o1-mini",
559
567
  O3Mini = "o3-mini",
568
+ O4Mini = "o4-mini",
560
569
  GPT4 = "gpt-4",
561
- GPT45 = "gpt-4.5-preview",
570
+ GPT41 = "gpt-4.1",
571
+ GPT41Mini = "gpt-4.1-mini",
562
572
  GPT4O = "gpt-4o",
563
573
  GPT4OMini = "gpt-4o-mini",
564
574
  GPT4ChatGPT4O = "chatgpt-4o-latest",
@@ -752,7 +762,7 @@ interface AxAIOpenAIBaseArgs<TModel, TEmbedModel> {
752
762
  streamingUsage?: boolean;
753
763
  }>;
754
764
  modelInfo: Readonly<AxModelInfo[]>;
755
- models?: AxAIInputModelList<TModel>;
765
+ models?: AxAIInputModelList<TModel, TEmbedModel>;
756
766
  }
757
767
  declare class AxAIOpenAIBase<TModel, TEmbedModel> extends AxBaseAI<TModel, TEmbedModel, AxAIOpenAIChatRequest<TModel>, AxAIOpenAIEmbedRequest<TEmbedModel>, AxAIOpenAIChatResponse, AxAIOpenAIChatResponseDelta, AxAIOpenAIEmbedResponse> {
758
768
  constructor({ apiKey, config, options, apiURL, modelInfo, models, }: Readonly<Omit<AxAIOpenAIBaseArgs<TModel, TEmbedModel>, 'name'>>);
@@ -881,7 +891,7 @@ interface AxAICohereArgs {
881
891
  apiKey: string;
882
892
  config?: Readonly<Partial<AxAICohereConfig>>;
883
893
  options?: Readonly<AxAIServiceOptions>;
884
- models?: AxAIInputModelList<AxAICohereModel>;
894
+ models?: AxAIInputModelList<AxAICohereModel, AxAICohereEmbedModel>;
885
895
  }
886
896
  declare class AxAICohere extends AxBaseAI<AxAICohereModel, AxAICohereEmbedModel, AxAICohereChatRequest, AxAICohereEmbedRequest, AxAICohereChatResponse, AxAICohereChatResponseDelta, AxAICohereEmbedResponse> {
887
897
  constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAICohereArgs, 'name'>>);
@@ -904,8 +914,8 @@ declare class AxAIDeepSeek extends AxAIOpenAIBase<AxAIDeepSeekModel, undefined>
904
914
  }
905
915
 
906
916
  declare enum AxAIGoogleGeminiModel {
907
- Gemini25Pro = "gemini-2.5-pro-exp-03-25",
908
- Gemini20Pro = "gemini-2.0-pro-exp-02-05",
917
+ Gemini25Pro = "gemini-2.5-pro-preview-03-25",
918
+ Gemini25Flash = "gemini-2.5-flash-preview-04-17",
909
919
  Gemini20Flash = "gemini-2.0-flash",
910
920
  Gemini20FlashLite = "gemini-2.0-flash-lite-preview-02-05",
911
921
  Gemini20FlashThinking = "gemini-2.0-flash-thinking-exp-01-21",
@@ -1046,6 +1056,9 @@ type AxAIGoogleGeminiChatResponse = {
1046
1056
  };
1047
1057
  };
1048
1058
  type AxAIGoogleGeminiChatResponseDelta = AxAIGoogleGeminiChatResponse;
1059
+ type AxAIGoogleGeminiThinkingConfig = {
1060
+ thinkingBudget: number;
1061
+ };
1049
1062
  /**
1050
1063
  * AxAIGoogleGeminiConfig: Configuration options for Google Gemini API
1051
1064
  */
@@ -1056,6 +1069,7 @@ type AxAIGoogleGeminiConfig = AxModelConfig & {
1056
1069
  embedType?: AxAIGoogleGeminiEmbedTypes;
1057
1070
  dimensions?: number;
1058
1071
  autoTruncate?: boolean;
1072
+ thinkingConfig?: AxAIGoogleGeminiThinkingConfig;
1059
1073
  };
1060
1074
  /**
1061
1075
  * AxAIGoogleGeminiEmbedRequest: Structure for making an embedding request to the Google Gemini API.
@@ -1123,7 +1137,7 @@ interface AxAIGoogleGeminiArgs {
1123
1137
  endpointId?: string;
1124
1138
  config?: Readonly<Partial<AxAIGoogleGeminiConfig>>;
1125
1139
  options?: Readonly<AxAIServiceOptions & AxAIGoogleGeminiOptionsTools>;
1126
- models?: AxAIInputModelList<AxAIGoogleGeminiModel>;
1140
+ models?: AxAIInputModelList<AxAIGoogleGeminiModel, AxAIGoogleGeminiEmbedModel>;
1127
1141
  }
1128
1142
  /**
1129
1143
  * AxAIGoogleGemini: AI Service
@@ -1191,7 +1205,7 @@ interface AxAIHuggingFaceArgs {
1191
1205
  apiKey: string;
1192
1206
  config?: Readonly<Partial<AxAIHuggingFaceConfig>>;
1193
1207
  options?: Readonly<AxAIServiceOptions>;
1194
- models?: AxAIInputModelList<AxAIHuggingFaceModel>;
1208
+ models?: AxAIInputModelList<AxAIHuggingFaceModel, undefined>;
1195
1209
  }
1196
1210
  declare class AxAIHuggingFace extends AxBaseAI<AxAIHuggingFaceModel, unknown, AxAIHuggingFaceRequest, unknown, AxAIHuggingFaceResponse, unknown, unknown> {
1197
1211
  constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIHuggingFaceArgs, 'name'>>);
@@ -1318,7 +1332,7 @@ interface AxAIRekaArgs {
1318
1332
  streamingUsage?: boolean;
1319
1333
  }>;
1320
1334
  modelInfo?: Readonly<AxModelInfo[]>;
1321
- models?: AxAIInputModelList<AxAIRekaModel>;
1335
+ models?: AxAIInputModelList<AxAIRekaModel, undefined>;
1322
1336
  }
1323
1337
  declare class AxAIReka extends AxBaseAI<AxAIRekaModel, undefined, AxAIRekaChatRequest, unknown, AxAIRekaChatResponse, AxAIRekaChatResponseDelta, unknown> {
1324
1338
  constructor({ apiKey, config, options, apiURL, modelInfo, models, }: Readonly<Omit<AxAIRekaArgs, 'name'>>);
@@ -1344,10 +1358,6 @@ declare class AxAI implements AxAIService {
1344
1358
  streaming: boolean;
1345
1359
  };
1346
1360
  getModelList(): AxAIModelList | undefined;
1347
- getDefaultModels(): Readonly<{
1348
- model: string;
1349
- embedModel?: string;
1350
- }>;
1351
1361
  getMetrics(): AxAIServiceMetrics;
1352
1362
  chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions>): Promise<AxChatResponse | ReadableStream$1<AxChatResponse>>;
1353
1363
  embed(req: Readonly<AxEmbedRequest>, options?: Readonly<AxAIServiceActionOptions & AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
@@ -1760,10 +1770,6 @@ interface AxResponseHandlerArgs<T> {
1760
1770
  ai: Readonly<AxAIService>;
1761
1771
  model?: string;
1762
1772
  res: T;
1763
- usageInfo: {
1764
- ai: string;
1765
- model: string;
1766
- };
1767
1773
  mem: AxAIMemory;
1768
1774
  sessionId?: string;
1769
1775
  traceId?: string;
@@ -1859,7 +1865,7 @@ declare class AxAgent<IN extends AxGenIn, OUT extends AxGenOut = AxGenOut> imple
1859
1865
  setParentId(parentId: string): void;
1860
1866
  getTraces(): AxProgramTrace[];
1861
1867
  setDemos(demos: readonly AxProgramDemos[]): void;
1862
- getUsage(): (AxTokenUsage & {
1868
+ getUsage(): (AxModelUsage & {
1863
1869
  ai: string;
1864
1870
  model: string;
1865
1871
  })[];
@@ -1934,10 +1940,6 @@ declare class AxBalancer implements AxAIService<unknown, unknown> {
1934
1940
  */
1935
1941
  static metricComparator: (a: AxAIService, b: AxAIService) => number;
1936
1942
  getModelList(): AxAIModelList | undefined;
1937
- getDefaultModels(): Readonly<{
1938
- model: string;
1939
- embedModel?: string;
1940
- }>;
1941
1943
  private getNextService;
1942
1944
  private reset;
1943
1945
  getName(): string;
@@ -2539,10 +2541,6 @@ declare class AxMockAIService implements AxAIService {
2539
2541
  streaming: boolean;
2540
2542
  };
2541
2543
  getModelList(): AxAIModelList | undefined;
2542
- getDefaultModels(): Readonly<{
2543
- model: string;
2544
- embedModel?: string;
2545
- }>;
2546
2544
  getMetrics(): AxAIServiceMetrics;
2547
2545
  chat(req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<unknown, unknown>>): Promise<AxChatResponse | ReadableStream$1<AxChatResponse>>;
2548
2546
  embed(req: Readonly<AxEmbedRequest>, _options?: Readonly<AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
@@ -2819,6 +2817,7 @@ type AxAIServiceListItem = {
2819
2817
  isInternal?: boolean;
2820
2818
  };
2821
2819
  declare class AxMultiServiceRouter implements AxAIService<string, string> {
2820
+ private options?;
2822
2821
  private services;
2823
2822
  /**
2824
2823
  * Constructs a new multi-service router.
@@ -2846,10 +2845,6 @@ declare class AxMultiServiceRouter implements AxAIService<string, string> {
2846
2845
  * Aggregates all available models across the underlying services.
2847
2846
  */
2848
2847
  getModelList(): AxAIModelList;
2849
- getDefaultModels(): Readonly<{
2850
- model: string;
2851
- embedModel?: string;
2852
- }>;
2853
2848
  /**
2854
2849
  * If a model key is provided, delegate to the corresponding service's features.
2855
2850
  * Otherwise, returns a default feature set.
@@ -2943,4 +2938,4 @@ declare const axModelInfoReka: AxModelInfo[];
2943
2938
 
2944
2939
  declare const axModelInfoTogether: AxModelInfo[];
2945
2940
 
2946
- 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 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, 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, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJSInterpreter, AxJSInterpreterPermission, AxLLMRequestTypeValues, AxMCPClient, AxMCPHTTPTransport, AxMCPStdioTransport, type AxMCPTransport, AxMemory, type AxMetricFn, type AxMetricFnArgs, AxMiPRO, type AxMiPROOptions, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, AxMultiServiceRouter, type AxOptimizationStats, 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, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable, axAIAnthropicDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIHuggingFaceCreativeConfig, axAIHuggingFaceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOllamaDefaultConfig, axAIOllamaDefaultCreativeConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoReka, axModelInfoTogether, axSpanAttributes, axSpanEvents };
2941
+ 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, 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, 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, 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, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJSInterpreter, AxJSInterpreterPermission, AxLLMRequestTypeValues, AxMCPClient, AxMCPHTTPTransport, AxMCPStdioTransport, type AxMCPTransport, AxMemory, 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, 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, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable, axAIAnthropicDefaultConfig, axAIAnthropicVertexDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIHuggingFaceCreativeConfig, axAIHuggingFaceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOllamaDefaultConfig, axAIOllamaDefaultCreativeConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoReka, axModelInfoTogether, axSpanAttributes, axSpanEvents };
package/index.d.ts CHANGED
@@ -61,15 +61,22 @@ declare class AxAIServiceAuthenticationError extends AxAIServiceError {
61
61
  constructor(url: string, requestBody?: unknown, context?: Record<string, unknown>);
62
62
  }
63
63
 
64
- type AxAIInputModelList<TModel> = (AxAIModelList[number] & {
65
- model: TModel;
64
+ type AxAIInputModelList<TModel, TEmbedModel> = (AxAIModelListBase & {
66
65
  isInternal?: boolean;
67
- })[];
68
- type AxAIModelList = {
66
+ } & ({
67
+ model: TModel;
68
+ } | {
69
+ embedModel: TEmbedModel;
70
+ }))[];
71
+ type AxAIModelListBase = {
69
72
  key: string;
70
73
  description: string;
74
+ };
75
+ type AxAIModelList = (AxAIModelListBase & ({
71
76
  model: string;
72
- }[];
77
+ } | {
78
+ embedModel: string;
79
+ }))[];
73
80
  type AxModelInfo = {
74
81
  name: string;
75
82
  currency?: string;
@@ -130,18 +137,22 @@ type AxChatResponseResult = {
130
137
  }[];
131
138
  finishReason?: 'stop' | 'length' | 'function_call' | 'content_filter' | 'error';
132
139
  };
140
+ type AxModelUsage = {
141
+ ai: string;
142
+ model: string;
143
+ tokens?: AxTokenUsage;
144
+ };
133
145
  type AxChatResponse = {
134
146
  sessionId?: string;
135
147
  remoteId?: string;
136
148
  results: readonly AxChatResponseResult[];
137
- modelUsage?: AxTokenUsage;
138
- embedModelUsage?: AxTokenUsage;
149
+ modelUsage?: AxModelUsage;
139
150
  };
140
151
  type AxEmbedResponse = {
141
152
  remoteId?: string;
142
153
  sessionId?: string;
143
154
  embeddings: readonly (readonly number[])[];
144
- modelUsage?: AxTokenUsage;
155
+ modelUsage?: AxModelUsage;
145
156
  };
146
157
  type AxModelInfoWithProvider = AxModelInfo & {
147
158
  provider: string;
@@ -239,8 +250,7 @@ type AxEmbedRequest<TEmbedModel = string> = {
239
250
  };
240
251
  type AxInternalEmbedRequest<TEmbedModel> = Omit<AxEmbedRequest, 'embedModel'> & Required<Pick<AxEmbedRequest<TEmbedModel>, 'embedModel'>>;
241
252
  type AxRateLimiterFunction = <T = unknown>(reqFunc: () => Promise<T | ReadableStream<T>>, info: Readonly<{
242
- modelUsage?: AxTokenUsage;
243
- embedModelUsage?: AxTokenUsage;
253
+ modelUsage?: AxModelUsage;
244
254
  }>) => Promise<T | ReadableStream<T>>;
245
255
  type AxAIPromptConfig = {
246
256
  stream?: boolean;
@@ -264,10 +274,6 @@ interface AxAIService<TModel = unknown, TEmbedModel = unknown> {
264
274
  getName(): string;
265
275
  getFeatures(model?: TModel): AxAIFeatures;
266
276
  getModelList(): AxAIModelList | undefined;
267
- getDefaultModels(): Readonly<{
268
- model: string;
269
- embedModel?: string;
270
- }>;
271
277
  getMetrics(): AxAIServiceMetrics;
272
278
  chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
273
279
  embed(req: Readonly<AxEmbedRequest<TEmbedModel>>, options?: Readonly<AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxEmbedResponse>;
@@ -281,6 +287,7 @@ interface AxAIServiceImpl<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TCha
281
287
  createEmbedReq?(req: Readonly<AxInternalEmbedRequest<TEmbedModel>>): [AxAPI, TEmbedRequest];
282
288
  createEmbedResp?(resp: Readonly<TEmbedResponse>): AxEmbedResponse;
283
289
  getModelConfig(): AxModelConfig;
290
+ getTokenUsage(): AxTokenUsage | undefined;
284
291
  }
285
292
 
286
293
  interface AxAIFeatures {
@@ -299,7 +306,7 @@ interface AxBaseAIArgs<TModel, TEmbedModel> {
299
306
  }>;
300
307
  options?: Readonly<AxAIServiceOptions>;
301
308
  supportFor: AxAIFeatures | ((model: TModel) => AxAIFeatures);
302
- models?: AxAIInputModelList<TModel>;
309
+ models?: AxAIInputModelList<TModel, TEmbedModel>;
303
310
  }
304
311
  declare const axBaseAIDefaultConfig: () => AxModelConfig;
305
312
  declare const axBaseAIDefaultCreativeConfig: () => AxModelConfig;
@@ -328,10 +335,6 @@ declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatRe
328
335
  setOptions(options: Readonly<AxAIServiceOptions>): void;
329
336
  getOptions(): Readonly<AxAIServiceOptions>;
330
337
  getModelList(): AxAIModelList | undefined;
331
- getDefaultModels(): Readonly<{
332
- model: string;
333
- embedModel?: string;
334
- }>;
335
338
  getName(): string;
336
339
  getFeatures(model?: TModel): AxAIFeatures;
337
340
  private calculatePercentile;
@@ -346,6 +349,9 @@ declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatRe
346
349
  private _embed1;
347
350
  private _embed2;
348
351
  private buildHeaders;
352
+ private getModelByKey;
353
+ private getModel;
354
+ private getEmbedModel;
349
355
  }
350
356
 
351
357
  declare enum AxAIAnthropicModel {
@@ -540,6 +546,7 @@ interface AxAIAnthropicErrorEvent {
540
546
  type AxAIAnthropicChatResponseDelta = AxAIAnthropicMessageStartEvent | AxAIAnthropicContentBlockStartEvent | AxAIAnthropicContentBlockDeltaEvent | AxAIAnthropicContentBlockStopEvent | AxAIAnthropicMessageDeltaEvent | AxAIAnthropicMessageStopEvent | AxAIAnthropicPingEvent | AxAIAnthropicErrorEvent;
541
547
 
542
548
  declare const axAIAnthropicDefaultConfig: () => AxAIAnthropicConfig;
549
+ declare const axAIAnthropicVertexDefaultConfig: () => AxAIAnthropicConfig;
543
550
  interface AxAIAnthropicArgs {
544
551
  name: 'anthropic';
545
552
  apiKey?: string;
@@ -547,7 +554,7 @@ interface AxAIAnthropicArgs {
547
554
  region?: string;
548
555
  config?: Readonly<Partial<AxAIAnthropicConfig>>;
549
556
  options?: Readonly<AxAIServiceOptions>;
550
- models?: AxAIInputModelList<AxAIAnthropicModel | AxAIAnthropicVertexModel>;
557
+ models?: AxAIInputModelList<AxAIAnthropicModel | AxAIAnthropicVertexModel, undefined>;
551
558
  }
552
559
  declare class AxAIAnthropic extends AxBaseAI<AxAIAnthropicModel | AxAIAnthropicVertexModel, unknown, AxAIAnthropicChatRequest, unknown, AxAIAnthropicChatResponse, AxAIAnthropicChatResponseDelta, unknown> {
553
560
  constructor({ apiKey, projectId, region, config, options, models, }: Readonly<Omit<AxAIAnthropicArgs, 'name'>>);
@@ -555,10 +562,13 @@ declare class AxAIAnthropic extends AxBaseAI<AxAIAnthropicModel | AxAIAnthropicV
555
562
 
556
563
  declare enum AxAIOpenAIModel {
557
564
  O1 = "o1",
565
+ O3 = "o3",
558
566
  O1Mini = "o1-mini",
559
567
  O3Mini = "o3-mini",
568
+ O4Mini = "o4-mini",
560
569
  GPT4 = "gpt-4",
561
- GPT45 = "gpt-4.5-preview",
570
+ GPT41 = "gpt-4.1",
571
+ GPT41Mini = "gpt-4.1-mini",
562
572
  GPT4O = "gpt-4o",
563
573
  GPT4OMini = "gpt-4o-mini",
564
574
  GPT4ChatGPT4O = "chatgpt-4o-latest",
@@ -752,7 +762,7 @@ interface AxAIOpenAIBaseArgs<TModel, TEmbedModel> {
752
762
  streamingUsage?: boolean;
753
763
  }>;
754
764
  modelInfo: Readonly<AxModelInfo[]>;
755
- models?: AxAIInputModelList<TModel>;
765
+ models?: AxAIInputModelList<TModel, TEmbedModel>;
756
766
  }
757
767
  declare class AxAIOpenAIBase<TModel, TEmbedModel> extends AxBaseAI<TModel, TEmbedModel, AxAIOpenAIChatRequest<TModel>, AxAIOpenAIEmbedRequest<TEmbedModel>, AxAIOpenAIChatResponse, AxAIOpenAIChatResponseDelta, AxAIOpenAIEmbedResponse> {
758
768
  constructor({ apiKey, config, options, apiURL, modelInfo, models, }: Readonly<Omit<AxAIOpenAIBaseArgs<TModel, TEmbedModel>, 'name'>>);
@@ -881,7 +891,7 @@ interface AxAICohereArgs {
881
891
  apiKey: string;
882
892
  config?: Readonly<Partial<AxAICohereConfig>>;
883
893
  options?: Readonly<AxAIServiceOptions>;
884
- models?: AxAIInputModelList<AxAICohereModel>;
894
+ models?: AxAIInputModelList<AxAICohereModel, AxAICohereEmbedModel>;
885
895
  }
886
896
  declare class AxAICohere extends AxBaseAI<AxAICohereModel, AxAICohereEmbedModel, AxAICohereChatRequest, AxAICohereEmbedRequest, AxAICohereChatResponse, AxAICohereChatResponseDelta, AxAICohereEmbedResponse> {
887
897
  constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAICohereArgs, 'name'>>);
@@ -904,8 +914,8 @@ declare class AxAIDeepSeek extends AxAIOpenAIBase<AxAIDeepSeekModel, undefined>
904
914
  }
905
915
 
906
916
  declare enum AxAIGoogleGeminiModel {
907
- Gemini25Pro = "gemini-2.5-pro-exp-03-25",
908
- Gemini20Pro = "gemini-2.0-pro-exp-02-05",
917
+ Gemini25Pro = "gemini-2.5-pro-preview-03-25",
918
+ Gemini25Flash = "gemini-2.5-flash-preview-04-17",
909
919
  Gemini20Flash = "gemini-2.0-flash",
910
920
  Gemini20FlashLite = "gemini-2.0-flash-lite-preview-02-05",
911
921
  Gemini20FlashThinking = "gemini-2.0-flash-thinking-exp-01-21",
@@ -1046,6 +1056,9 @@ type AxAIGoogleGeminiChatResponse = {
1046
1056
  };
1047
1057
  };
1048
1058
  type AxAIGoogleGeminiChatResponseDelta = AxAIGoogleGeminiChatResponse;
1059
+ type AxAIGoogleGeminiThinkingConfig = {
1060
+ thinkingBudget: number;
1061
+ };
1049
1062
  /**
1050
1063
  * AxAIGoogleGeminiConfig: Configuration options for Google Gemini API
1051
1064
  */
@@ -1056,6 +1069,7 @@ type AxAIGoogleGeminiConfig = AxModelConfig & {
1056
1069
  embedType?: AxAIGoogleGeminiEmbedTypes;
1057
1070
  dimensions?: number;
1058
1071
  autoTruncate?: boolean;
1072
+ thinkingConfig?: AxAIGoogleGeminiThinkingConfig;
1059
1073
  };
1060
1074
  /**
1061
1075
  * AxAIGoogleGeminiEmbedRequest: Structure for making an embedding request to the Google Gemini API.
@@ -1123,7 +1137,7 @@ interface AxAIGoogleGeminiArgs {
1123
1137
  endpointId?: string;
1124
1138
  config?: Readonly<Partial<AxAIGoogleGeminiConfig>>;
1125
1139
  options?: Readonly<AxAIServiceOptions & AxAIGoogleGeminiOptionsTools>;
1126
- models?: AxAIInputModelList<AxAIGoogleGeminiModel>;
1140
+ models?: AxAIInputModelList<AxAIGoogleGeminiModel, AxAIGoogleGeminiEmbedModel>;
1127
1141
  }
1128
1142
  /**
1129
1143
  * AxAIGoogleGemini: AI Service
@@ -1191,7 +1205,7 @@ interface AxAIHuggingFaceArgs {
1191
1205
  apiKey: string;
1192
1206
  config?: Readonly<Partial<AxAIHuggingFaceConfig>>;
1193
1207
  options?: Readonly<AxAIServiceOptions>;
1194
- models?: AxAIInputModelList<AxAIHuggingFaceModel>;
1208
+ models?: AxAIInputModelList<AxAIHuggingFaceModel, undefined>;
1195
1209
  }
1196
1210
  declare class AxAIHuggingFace extends AxBaseAI<AxAIHuggingFaceModel, unknown, AxAIHuggingFaceRequest, unknown, AxAIHuggingFaceResponse, unknown, unknown> {
1197
1211
  constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIHuggingFaceArgs, 'name'>>);
@@ -1318,7 +1332,7 @@ interface AxAIRekaArgs {
1318
1332
  streamingUsage?: boolean;
1319
1333
  }>;
1320
1334
  modelInfo?: Readonly<AxModelInfo[]>;
1321
- models?: AxAIInputModelList<AxAIRekaModel>;
1335
+ models?: AxAIInputModelList<AxAIRekaModel, undefined>;
1322
1336
  }
1323
1337
  declare class AxAIReka extends AxBaseAI<AxAIRekaModel, undefined, AxAIRekaChatRequest, unknown, AxAIRekaChatResponse, AxAIRekaChatResponseDelta, unknown> {
1324
1338
  constructor({ apiKey, config, options, apiURL, modelInfo, models, }: Readonly<Omit<AxAIRekaArgs, 'name'>>);
@@ -1344,10 +1358,6 @@ declare class AxAI implements AxAIService {
1344
1358
  streaming: boolean;
1345
1359
  };
1346
1360
  getModelList(): AxAIModelList | undefined;
1347
- getDefaultModels(): Readonly<{
1348
- model: string;
1349
- embedModel?: string;
1350
- }>;
1351
1361
  getMetrics(): AxAIServiceMetrics;
1352
1362
  chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions>): Promise<AxChatResponse | ReadableStream$1<AxChatResponse>>;
1353
1363
  embed(req: Readonly<AxEmbedRequest>, options?: Readonly<AxAIServiceActionOptions & AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
@@ -1760,10 +1770,6 @@ interface AxResponseHandlerArgs<T> {
1760
1770
  ai: Readonly<AxAIService>;
1761
1771
  model?: string;
1762
1772
  res: T;
1763
- usageInfo: {
1764
- ai: string;
1765
- model: string;
1766
- };
1767
1773
  mem: AxAIMemory;
1768
1774
  sessionId?: string;
1769
1775
  traceId?: string;
@@ -1859,7 +1865,7 @@ declare class AxAgent<IN extends AxGenIn, OUT extends AxGenOut = AxGenOut> imple
1859
1865
  setParentId(parentId: string): void;
1860
1866
  getTraces(): AxProgramTrace[];
1861
1867
  setDemos(demos: readonly AxProgramDemos[]): void;
1862
- getUsage(): (AxTokenUsage & {
1868
+ getUsage(): (AxModelUsage & {
1863
1869
  ai: string;
1864
1870
  model: string;
1865
1871
  })[];
@@ -1934,10 +1940,6 @@ declare class AxBalancer implements AxAIService<unknown, unknown> {
1934
1940
  */
1935
1941
  static metricComparator: (a: AxAIService, b: AxAIService) => number;
1936
1942
  getModelList(): AxAIModelList | undefined;
1937
- getDefaultModels(): Readonly<{
1938
- model: string;
1939
- embedModel?: string;
1940
- }>;
1941
1943
  private getNextService;
1942
1944
  private reset;
1943
1945
  getName(): string;
@@ -2539,10 +2541,6 @@ declare class AxMockAIService implements AxAIService {
2539
2541
  streaming: boolean;
2540
2542
  };
2541
2543
  getModelList(): AxAIModelList | undefined;
2542
- getDefaultModels(): Readonly<{
2543
- model: string;
2544
- embedModel?: string;
2545
- }>;
2546
2544
  getMetrics(): AxAIServiceMetrics;
2547
2545
  chat(req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<unknown, unknown>>): Promise<AxChatResponse | ReadableStream$1<AxChatResponse>>;
2548
2546
  embed(req: Readonly<AxEmbedRequest>, _options?: Readonly<AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
@@ -2819,6 +2817,7 @@ type AxAIServiceListItem = {
2819
2817
  isInternal?: boolean;
2820
2818
  };
2821
2819
  declare class AxMultiServiceRouter implements AxAIService<string, string> {
2820
+ private options?;
2822
2821
  private services;
2823
2822
  /**
2824
2823
  * Constructs a new multi-service router.
@@ -2846,10 +2845,6 @@ declare class AxMultiServiceRouter implements AxAIService<string, string> {
2846
2845
  * Aggregates all available models across the underlying services.
2847
2846
  */
2848
2847
  getModelList(): AxAIModelList;
2849
- getDefaultModels(): Readonly<{
2850
- model: string;
2851
- embedModel?: string;
2852
- }>;
2853
2848
  /**
2854
2849
  * If a model key is provided, delegate to the corresponding service's features.
2855
2850
  * Otherwise, returns a default feature set.
@@ -2943,4 +2938,4 @@ declare const axModelInfoReka: AxModelInfo[];
2943
2938
 
2944
2939
  declare const axModelInfoTogether: AxModelInfo[];
2945
2940
 
2946
- 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 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, 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, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJSInterpreter, AxJSInterpreterPermission, AxLLMRequestTypeValues, AxMCPClient, AxMCPHTTPTransport, AxMCPStdioTransport, type AxMCPTransport, AxMemory, type AxMetricFn, type AxMetricFnArgs, AxMiPRO, type AxMiPROOptions, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, AxMultiServiceRouter, type AxOptimizationStats, 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, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable, axAIAnthropicDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIHuggingFaceCreativeConfig, axAIHuggingFaceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOllamaDefaultConfig, axAIOllamaDefaultCreativeConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoReka, axModelInfoTogether, axSpanAttributes, axSpanEvents };
2941
+ 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, 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, 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, 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, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJSInterpreter, AxJSInterpreterPermission, AxLLMRequestTypeValues, AxMCPClient, AxMCPHTTPTransport, AxMCPStdioTransport, type AxMCPTransport, AxMemory, 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, 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, AxStringUtil, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable, axAIAnthropicDefaultConfig, axAIAnthropicVertexDefaultConfig, axAIAzureOpenAIBestConfig, axAIAzureOpenAICreativeConfig, axAIAzureOpenAIDefaultConfig, axAIAzureOpenAIFastConfig, axAICohereCreativeConfig, axAICohereDefaultConfig, axAIDeepSeekCodeConfig, axAIDeepSeekDefaultConfig, axAIGoogleGeminiDefaultConfig, axAIGoogleGeminiDefaultCreativeConfig, axAIHuggingFaceCreativeConfig, axAIHuggingFaceDefaultConfig, axAIMistralBestConfig, axAIMistralDefaultConfig, axAIOllamaDefaultConfig, axAIOllamaDefaultCreativeConfig, axAIOpenAIBestConfig, axAIOpenAICreativeConfig, axAIOpenAIDefaultConfig, axAIOpenAIFastConfig, axAIRekaBestConfig, axAIRekaCreativeConfig, axAIRekaDefaultConfig, axAIRekaFastConfig, axAITogetherDefaultConfig, axBaseAIDefaultConfig, axBaseAIDefaultCreativeConfig, axModelInfoAnthropic, axModelInfoCohere, axModelInfoDeepSeek, axModelInfoGoogleGemini, axModelInfoGroq, axModelInfoHuggingFace, axModelInfoMistral, axModelInfoOpenAI, axModelInfoReka, axModelInfoTogether, axSpanAttributes, axSpanEvents };