@ax-llm/ax 11.0.23 → 11.0.25

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
@@ -1,4 +1,5 @@
1
- import { ReadableStream } from 'stream/web';
1
+ import { ReadableStream as ReadableStream$1 } from 'stream/web';
2
+ import { ReadableStream } from 'node:stream/web';
2
3
  import { Span, Tracer } from '@opentelemetry/api';
3
4
 
4
5
  interface RetryConfig {
@@ -334,7 +335,7 @@ declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatRe
334
335
  private updateLatencyMetrics;
335
336
  private updateErrorMetrics;
336
337
  getMetrics(): AxAIServiceMetrics;
337
- chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
338
+ chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream$1<AxChatResponse>>;
338
339
  private _chat1;
339
340
  private cleanupFunctionSchema;
340
341
  private _chat2;
@@ -553,6 +554,7 @@ declare enum AxAIOpenAIModel {
553
554
  O1Mini = "o1-mini",
554
555
  O3Mini = "o3-mini",
555
556
  GPT4 = "gpt-4",
557
+ GPT45 = "gpt-4.5-preview",
556
558
  GPT4O = "gpt-4o",
557
559
  GPT4OMini = "gpt-4o-mini",
558
560
  GPT4ChatGPT4O = "chatgpt-4o-latest",
@@ -1293,7 +1295,7 @@ declare class AxAI implements AxAIService {
1293
1295
  embedModel?: string;
1294
1296
  }>;
1295
1297
  getMetrics(): AxAIServiceMetrics;
1296
- chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
1298
+ chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions>): Promise<AxChatResponse | ReadableStream$1<AxChatResponse>>;
1297
1299
  embed(req: Readonly<AxEmbedRequest>, options?: Readonly<AxAIServiceActionOptions & AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
1298
1300
  setOptions(options: Readonly<AxAIServiceOptions>): void;
1299
1301
  getOptions(): Readonly<AxAIServiceOptions>;
@@ -1315,6 +1317,136 @@ interface AxAIMemory {
1315
1317
  rewindToTag(name: string, sessionId?: string): AxChatRequest['chatPrompt'];
1316
1318
  }
1317
1319
 
1320
+ declare class AxMemory implements AxAIMemory {
1321
+ private limit;
1322
+ private debug;
1323
+ private memories;
1324
+ private defaultMemory;
1325
+ constructor(limit?: number, debug?: boolean);
1326
+ private getMemory;
1327
+ add(value: AxChatRequest['chatPrompt'][number] | AxChatRequest['chatPrompt'], sessionId?: string): void;
1328
+ addResult(result: Readonly<AxChatResponseResult>, sessionId?: string): void;
1329
+ updateResult(result: Readonly<AxChatResponseResult>, sessionId?: string): void;
1330
+ addTag(name: string, sessionId?: string): void;
1331
+ rewindToTag(name: string, sessionId?: string): ({
1332
+ role: "system";
1333
+ content: string;
1334
+ cache?: boolean;
1335
+ } | {
1336
+ role: "user";
1337
+ name?: string;
1338
+ content: string | ({
1339
+ type: "text";
1340
+ text: string;
1341
+ cache?: boolean;
1342
+ } | {
1343
+ type: "image";
1344
+ mimeType: string;
1345
+ image: string;
1346
+ details?: "high" | "low" | "auto";
1347
+ cache?: boolean;
1348
+ } | {
1349
+ type: "audio";
1350
+ data: string;
1351
+ format?: "wav";
1352
+ cache?: boolean;
1353
+ })[];
1354
+ } | {
1355
+ role: "assistant";
1356
+ content?: string;
1357
+ name?: string;
1358
+ functionCalls?: {
1359
+ id: string;
1360
+ type: "function";
1361
+ function: {
1362
+ name: string;
1363
+ params?: string | object;
1364
+ };
1365
+ }[];
1366
+ cache?: boolean;
1367
+ } | {
1368
+ role: "function";
1369
+ result: string;
1370
+ isError?: boolean;
1371
+ functionId: string;
1372
+ cache?: boolean;
1373
+ })[];
1374
+ history(sessionId?: string): ({
1375
+ role: "system";
1376
+ content: string;
1377
+ cache?: boolean;
1378
+ } | {
1379
+ role: "user";
1380
+ name?: string;
1381
+ content: string | ({
1382
+ type: "text";
1383
+ text: string;
1384
+ cache?: boolean;
1385
+ } | {
1386
+ type: "image";
1387
+ mimeType: string;
1388
+ image: string;
1389
+ details?: "high" | "low" | "auto";
1390
+ cache?: boolean;
1391
+ } | {
1392
+ type: "audio";
1393
+ data: string;
1394
+ format?: "wav";
1395
+ cache?: boolean;
1396
+ })[];
1397
+ } | {
1398
+ role: "assistant";
1399
+ content?: string;
1400
+ name?: string;
1401
+ functionCalls?: {
1402
+ id: string;
1403
+ type: "function";
1404
+ function: {
1405
+ name: string;
1406
+ params?: string | object;
1407
+ };
1408
+ }[];
1409
+ cache?: boolean;
1410
+ } | {
1411
+ role: "function";
1412
+ result: string;
1413
+ isError?: boolean;
1414
+ functionId: string;
1415
+ cache?: boolean;
1416
+ })[];
1417
+ getLast(sessionId?: string): {
1418
+ chat: AxChatRequest["chatPrompt"][number];
1419
+ tags?: string[];
1420
+ } | undefined;
1421
+ reset(sessionId?: string): void;
1422
+ }
1423
+
1424
+ declare class AxFunctionError extends Error {
1425
+ private fields;
1426
+ constructor(fields: {
1427
+ field: string;
1428
+ message: string;
1429
+ }[]);
1430
+ getFields: () => {
1431
+ field: string;
1432
+ message: string;
1433
+ }[];
1434
+ }
1435
+ type AxChatResponseFunctionCall = {
1436
+ id: string;
1437
+ name: string;
1438
+ args: string;
1439
+ };
1440
+ declare class AxFunctionProcessor {
1441
+ private funcList;
1442
+ constructor(funcList: Readonly<AxFunction[]>);
1443
+ private executeFunction;
1444
+ execute: (func: Readonly<AxChatResponseFunctionCall>, options?: Readonly<AxAIServiceActionOptions>) => Promise<string>;
1445
+ }
1446
+ type AxInputFunctionType = (AxFunction | {
1447
+ toFunction: () => AxFunction | AxFunction[];
1448
+ })[];
1449
+
1318
1450
  interface AxField {
1319
1451
  name: string;
1320
1452
  title?: string;
@@ -1392,7 +1524,7 @@ type AxProgramForwardOptions = {
1392
1524
  tracer?: Tracer;
1393
1525
  rateLimiter?: AxRateLimiterFunction;
1394
1526
  stream?: boolean;
1395
- functions?: AxFunction[];
1527
+ functions?: AxInputFunctionType;
1396
1528
  functionCall?: AxChatRequest['functionCall'];
1397
1529
  stopFunction?: string;
1398
1530
  fastFail?: boolean;
@@ -1464,7 +1596,7 @@ declare class AxProgram<IN extends AxGenIn, OUT extends AxGenOut> implements AxT
1464
1596
  }
1465
1597
 
1466
1598
  interface AxAssertion {
1467
- fn(values: Record<string, unknown>): boolean | undefined;
1599
+ fn(values: Record<string, unknown>): Promise<boolean | undefined> | boolean | undefined;
1468
1600
  message?: string;
1469
1601
  }
1470
1602
  interface AxStreamingAssertion {
@@ -1504,136 +1636,6 @@ interface AxFieldProcessor {
1504
1636
  process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
1505
1637
  }
1506
1638
 
1507
- declare class AxMemory implements AxAIMemory {
1508
- private limit;
1509
- private debug;
1510
- private memories;
1511
- private defaultMemory;
1512
- constructor(limit?: number, debug?: boolean);
1513
- private getMemory;
1514
- add(value: AxChatRequest['chatPrompt'][number] | AxChatRequest['chatPrompt'], sessionId?: string): void;
1515
- addResult(result: Readonly<AxChatResponseResult>, sessionId?: string): void;
1516
- updateResult(result: Readonly<AxChatResponseResult>, sessionId?: string): void;
1517
- addTag(name: string, sessionId?: string): void;
1518
- rewindToTag(name: string, sessionId?: string): ({
1519
- role: "system";
1520
- content: string;
1521
- cache?: boolean;
1522
- } | {
1523
- role: "user";
1524
- name?: string;
1525
- content: string | ({
1526
- type: "text";
1527
- text: string;
1528
- cache?: boolean;
1529
- } | {
1530
- type: "image";
1531
- mimeType: string;
1532
- image: string;
1533
- details?: "high" | "low" | "auto";
1534
- cache?: boolean;
1535
- } | {
1536
- type: "audio";
1537
- data: string;
1538
- format?: "wav";
1539
- cache?: boolean;
1540
- })[];
1541
- } | {
1542
- role: "assistant";
1543
- content?: string;
1544
- name?: string;
1545
- functionCalls?: {
1546
- id: string;
1547
- type: "function";
1548
- function: {
1549
- name: string;
1550
- params?: string | object;
1551
- };
1552
- }[];
1553
- cache?: boolean;
1554
- } | {
1555
- role: "function";
1556
- result: string;
1557
- isError?: boolean;
1558
- functionId: string;
1559
- cache?: boolean;
1560
- })[];
1561
- history(sessionId?: string): ({
1562
- role: "system";
1563
- content: string;
1564
- cache?: boolean;
1565
- } | {
1566
- role: "user";
1567
- name?: string;
1568
- content: string | ({
1569
- type: "text";
1570
- text: string;
1571
- cache?: boolean;
1572
- } | {
1573
- type: "image";
1574
- mimeType: string;
1575
- image: string;
1576
- details?: "high" | "low" | "auto";
1577
- cache?: boolean;
1578
- } | {
1579
- type: "audio";
1580
- data: string;
1581
- format?: "wav";
1582
- cache?: boolean;
1583
- })[];
1584
- } | {
1585
- role: "assistant";
1586
- content?: string;
1587
- name?: string;
1588
- functionCalls?: {
1589
- id: string;
1590
- type: "function";
1591
- function: {
1592
- name: string;
1593
- params?: string | object;
1594
- };
1595
- }[];
1596
- cache?: boolean;
1597
- } | {
1598
- role: "function";
1599
- result: string;
1600
- isError?: boolean;
1601
- functionId: string;
1602
- cache?: boolean;
1603
- })[];
1604
- getLast(sessionId?: string): {
1605
- chat: AxChatRequest["chatPrompt"][number];
1606
- tags?: string[];
1607
- } | undefined;
1608
- reset(sessionId?: string): void;
1609
- }
1610
-
1611
- declare class AxFunctionError extends Error {
1612
- private fields;
1613
- constructor(fields: {
1614
- field: string;
1615
- message: string;
1616
- }[]);
1617
- getFields: () => {
1618
- field: string;
1619
- message: string;
1620
- }[];
1621
- }
1622
- type AxChatResponseFunctionCall = {
1623
- id: string;
1624
- name: string;
1625
- args: string;
1626
- };
1627
- declare class AxFunctionProcessor {
1628
- private funcList;
1629
- constructor(funcList: Readonly<AxFunction[]>);
1630
- private executeFunction;
1631
- execute: (func: Readonly<AxChatResponseFunctionCall>, options?: Readonly<AxAIServiceActionOptions>) => Promise<string>;
1632
- }
1633
- type AxInputFunctionType = AxFunction[] | {
1634
- toFunction: () => AxFunction;
1635
- }[];
1636
-
1637
1639
  type Writeable<T> = {
1638
1640
  -readonly [P in keyof T]: T[P];
1639
1641
  };
@@ -1790,7 +1792,7 @@ declare class AxAgent<IN extends AxGenIn, OUT extends AxGenOut = AxGenOut> imple
1790
1792
  definition?: string;
1791
1793
  signature: AxSignature | string;
1792
1794
  agents?: AxAgentic[];
1793
- functions?: AxFunction[];
1795
+ functions?: AxInputFunctionType;
1794
1796
  }>, options?: Readonly<AxAgentOptions>);
1795
1797
  setExamples(examples: Readonly<AxProgramExamples>): void;
1796
1798
  setId(id: string): void;
@@ -1885,7 +1887,7 @@ declare class AxBalancer implements AxAIService<unknown, unknown> {
1885
1887
  private canRetryService;
1886
1888
  private handleFailure;
1887
1889
  private handleSuccess;
1888
- chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions> | undefined): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
1890
+ chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions> | undefined): Promise<AxChatResponse | ReadableStream$1<AxChatResponse>>;
1889
1891
  embed(req: Readonly<AxEmbedRequest>, options?: Readonly<AxAIServiceActionOptions> | undefined): Promise<AxEmbedResponse>;
1890
1892
  setOptions(options: Readonly<AxAIServiceOptions>): void;
1891
1893
  getOptions(): Readonly<AxAIServiceOptions>;
@@ -2280,7 +2282,7 @@ type AxMockAIServiceConfig = {
2280
2282
  };
2281
2283
  models?: AxAIModelList;
2282
2284
  options?: AxAIServiceOptions;
2283
- chatResponse?: AxChatResponse | ReadableStream<AxChatResponse> | (() => Promise<AxChatResponse | ReadableStream<AxChatResponse>>) | ((req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<unknown, unknown>>) => Promise<AxChatResponse | ReadableStream<AxChatResponse>>);
2285
+ chatResponse?: AxChatResponse | ReadableStream$1<AxChatResponse> | (() => Promise<AxChatResponse | ReadableStream$1<AxChatResponse>>) | ((req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<unknown, unknown>>) => Promise<AxChatResponse | ReadableStream$1<AxChatResponse>>);
2284
2286
  embedResponse?: AxEmbedResponse | ((req: Readonly<AxEmbedRequest>) => AxEmbedResponse | Promise<AxEmbedResponse>);
2285
2287
  shouldError?: boolean;
2286
2288
  errorMessage?: string;
@@ -2302,7 +2304,7 @@ declare class AxMockAIService implements AxAIService {
2302
2304
  embedModel?: string;
2303
2305
  }>;
2304
2306
  getMetrics(): AxAIServiceMetrics;
2305
- chat(req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<unknown, unknown>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
2307
+ chat(req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<unknown, unknown>>): Promise<AxChatResponse | ReadableStream$1<AxChatResponse>>;
2306
2308
  embed(req: Readonly<AxEmbedRequest>, _options?: Readonly<AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
2307
2309
  setOptions(options: Readonly<AxAIServiceOptions>): void;
2308
2310
  getOptions(): Readonly<AxAIServiceOptions>;
@@ -2400,6 +2402,95 @@ declare class AxInstanceRegistry<T> {
2400
2402
  [Symbol.iterator](): Generator<T, void, unknown>;
2401
2403
  }
2402
2404
 
2405
+ interface JSONRPCRequest<T> {
2406
+ jsonrpc: '2.0';
2407
+ id: string | number;
2408
+ method: string;
2409
+ params?: T;
2410
+ }
2411
+ interface JSONRPCSuccessResponse<T = unknown> {
2412
+ jsonrpc: '2.0';
2413
+ id: string | number;
2414
+ result: T;
2415
+ }
2416
+ interface JSONRPCErrorResponse {
2417
+ jsonrpc: '2.0';
2418
+ id: string | number;
2419
+ error: {
2420
+ code: number;
2421
+ message: string;
2422
+ data?: unknown;
2423
+ };
2424
+ }
2425
+ type JSONRPCResponse<T = unknown> = JSONRPCSuccessResponse<T> | JSONRPCErrorResponse;
2426
+ interface JSONRPCNotification {
2427
+ jsonrpc: '2.0';
2428
+ method: string;
2429
+ params?: Record<string, unknown>;
2430
+ }
2431
+
2432
+ interface AxMCPTransport {
2433
+ /**
2434
+ * Sends a JSON-RPC request or notification and returns the response
2435
+ * @param message The JSON-RPC request or notification to send
2436
+ * @returns A Promise that resolves to the JSON-RPC response
2437
+ */
2438
+ send(message: Readonly<JSONRPCRequest<unknown>>): Promise<JSONRPCResponse<unknown>>;
2439
+ /**
2440
+ * Sends a JSON-RPC notification
2441
+ * @param message The JSON-RPC notification to send
2442
+ */
2443
+ sendNotification(message: Readonly<JSONRPCNotification>): Promise<void>;
2444
+ /**
2445
+ * Connects to the transport if needed
2446
+ * This method is optional and only required for transports that need connection setup
2447
+ */
2448
+ connect?(): Promise<void>;
2449
+ }
2450
+
2451
+ interface AxMCPClientOptions {
2452
+ debug?: boolean;
2453
+ }
2454
+ declare class AxMCPClient {
2455
+ private readonly transport;
2456
+ private readonly options;
2457
+ private functions;
2458
+ private requestId;
2459
+ private capabilities;
2460
+ constructor(transport: AxMCPTransport, options?: Readonly<AxMCPClientOptions>);
2461
+ init(): Promise<void>;
2462
+ private discoverFunctions;
2463
+ ping(): Promise<void>;
2464
+ toFunction(): AxFunction[];
2465
+ private sendRequest;
2466
+ private sendNotification;
2467
+ }
2468
+
2469
+ declare class AxMCPHTTPTransport implements AxMCPTransport {
2470
+ private endpoint;
2471
+ private sseUrl;
2472
+ private eventSource?;
2473
+ constructor(sseUrl: string);
2474
+ connect(): Promise<void>;
2475
+ send(message: JSONRPCRequest<unknown> | JSONRPCNotification): Promise<JSONRPCResponse<unknown>>;
2476
+ sendNotification(message: Readonly<JSONRPCNotification>): Promise<void>;
2477
+ }
2478
+
2479
+ interface StdioTransportConfig {
2480
+ command: string;
2481
+ args?: string[];
2482
+ env?: NodeJS.ProcessEnv;
2483
+ }
2484
+ declare class AxMCPStdioTransport implements AxMCPTransport {
2485
+ private process;
2486
+ private rl;
2487
+ private pendingResponses;
2488
+ constructor(config: Readonly<StdioTransportConfig>);
2489
+ send(message: Readonly<JSONRPCRequest<unknown>>): Promise<JSONRPCResponse<unknown>>;
2490
+ sendNotification(message: Readonly<JSONRPCNotification>): Promise<void>;
2491
+ connect(): Promise<void>;
2492
+ }
2493
+
2403
2494
  type AxAIServiceListItem = {
2404
2495
  key: string;
2405
2496
  service: AxAIService;
@@ -2417,7 +2508,7 @@ declare class AxMultiServiceRouter implements AxAIService<string, string> {
2417
2508
  /**
2418
2509
  * Delegates the chat call to the service matching the provided model key.
2419
2510
  */
2420
- chat(req: Readonly<AxChatRequest<string>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<string, string>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
2511
+ chat(req: Readonly<AxChatRequest<string>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<string, string>>): Promise<AxChatResponse | ReadableStream$1<AxChatResponse>>;
2421
2512
  /**
2422
2513
  * Delegates the embed call to the service matching the provided embed model key.
2423
2514
  */
@@ -2484,4 +2575,4 @@ declare class AxRAG extends AxChainOfThought<{
2484
2575
  }>;
2485
2576
  }
2486
2577
 
2487
- 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 };
2578
+ 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, AxMCPClient, AxMCPHTTPTransport, AxMCPStdioTransport, type AxMCPTransport, 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 };