@ax-llm/ax 11.0.21 → 11.0.23
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.cjs +290 -99
- package/index.cjs.map +1 -1
- package/index.d.cts +125 -36
- package/index.d.ts +125 -36
- package/index.js +287 -97
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
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
|
|
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
|
|
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?:
|
|
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
|
-
|
|
321
|
-
|
|
322
|
-
|
|
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;
|
|
@@ -337,6 +345,7 @@ declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatRe
|
|
|
337
345
|
}
|
|
338
346
|
|
|
339
347
|
declare enum AxAIAnthropicModel {
|
|
348
|
+
Claude37Sonnet = "claude-3-7-sonnet-latest",
|
|
340
349
|
Claude35Sonnet = "claude-3-5-sonnet-latest",
|
|
341
350
|
Claude35Haiku = "claude-3-5-haiku-latest",
|
|
342
351
|
Claude3Opus = "claude-3-opus-latest",
|
|
@@ -346,6 +355,7 @@ declare enum AxAIAnthropicModel {
|
|
|
346
355
|
ClaudeInstant12 = "claude-instant-1.2"
|
|
347
356
|
}
|
|
348
357
|
declare enum AxAIAnthropicVertexModel {
|
|
358
|
+
Claude37Sonnet = "claude-3-7-sonnet",
|
|
349
359
|
Claude35Haiku = "claude-3-5-haiku",
|
|
350
360
|
Claude35Sonnet = "claude-3-5-sonnet",
|
|
351
361
|
Claude35SonnetV2 = "claude-3-5-sonnet-v2",
|
|
@@ -532,7 +542,7 @@ interface AxAIAnthropicArgs {
|
|
|
532
542
|
region?: string;
|
|
533
543
|
config?: Readonly<Partial<AxAIAnthropicConfig>>;
|
|
534
544
|
options?: Readonly<AxAIServiceOptions>;
|
|
535
|
-
models?:
|
|
545
|
+
models?: AxAIInputModelList<AxAIAnthropicModel | AxAIAnthropicVertexModel>;
|
|
536
546
|
}
|
|
537
547
|
declare class AxAIAnthropic extends AxBaseAI<AxAIAnthropicModel | AxAIAnthropicVertexModel, unknown, AxAIAnthropicChatRequest, unknown, AxAIAnthropicChatResponse, AxAIAnthropicChatResponseDelta, unknown> {
|
|
538
548
|
constructor({ apiKey, projectId, region, config, options, models, }: Readonly<Omit<AxAIAnthropicArgs, 'name'>>);
|
|
@@ -656,7 +666,7 @@ type AxAIOpenAIChatRequest<TModel> = {
|
|
|
656
666
|
response_format?: {
|
|
657
667
|
type: string;
|
|
658
668
|
};
|
|
659
|
-
|
|
669
|
+
max_completion_tokens: number;
|
|
660
670
|
temperature?: number;
|
|
661
671
|
top_p?: number;
|
|
662
672
|
n?: number;
|
|
@@ -732,7 +742,7 @@ interface AxAIOpenAIBaseArgs<TModel, TEmbedModel> {
|
|
|
732
742
|
streamingUsage?: boolean;
|
|
733
743
|
}>;
|
|
734
744
|
modelInfo: Readonly<AxModelInfo[]>;
|
|
735
|
-
models?:
|
|
745
|
+
models?: AxAIInputModelList<TModel>;
|
|
736
746
|
}
|
|
737
747
|
declare class AxAIOpenAIBase<TModel, TEmbedModel> extends AxBaseAI<TModel, TEmbedModel, AxAIOpenAIChatRequest<TModel>, AxAIOpenAIEmbedRequest<TEmbedModel>, AxAIOpenAIChatResponse, AxAIOpenAIChatResponseDelta, AxAIOpenAIEmbedResponse> {
|
|
738
748
|
constructor({ apiKey, config, options, apiURL, modelInfo, models, }: Readonly<Omit<AxAIOpenAIBaseArgs<TModel, TEmbedModel>, 'name'>>);
|
|
@@ -855,7 +865,7 @@ interface AxAICohereArgs {
|
|
|
855
865
|
apiKey: string;
|
|
856
866
|
config?: Readonly<Partial<AxAICohereConfig>>;
|
|
857
867
|
options?: Readonly<AxAIServiceOptions>;
|
|
858
|
-
models?:
|
|
868
|
+
models?: AxAIInputModelList<AxAICohereModel>;
|
|
859
869
|
}
|
|
860
870
|
declare class AxAICohere extends AxBaseAI<AxAICohereModel, AxAICohereEmbedModel, AxAICohereChatRequest, AxAICohereEmbedRequest, AxAICohereChatResponse, AxAICohereChatResponseDelta, AxAICohereEmbedResponse> {
|
|
861
871
|
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAICohereArgs, 'name'>>);
|
|
@@ -1060,6 +1070,7 @@ interface AxAIGoogleGeminiOptionsTools {
|
|
|
1060
1070
|
mode?: 'MODE_DYNAMIC';
|
|
1061
1071
|
dynamicThreshold?: number;
|
|
1062
1072
|
};
|
|
1073
|
+
googleSearch?: boolean;
|
|
1063
1074
|
}
|
|
1064
1075
|
interface AxAIGoogleGeminiArgs {
|
|
1065
1076
|
name: 'google-gemini';
|
|
@@ -1069,7 +1080,7 @@ interface AxAIGoogleGeminiArgs {
|
|
|
1069
1080
|
endpointId?: string;
|
|
1070
1081
|
config?: Readonly<Partial<AxAIGoogleGeminiConfig>>;
|
|
1071
1082
|
options?: Readonly<AxAIServiceOptions & AxAIGoogleGeminiOptionsTools>;
|
|
1072
|
-
models?:
|
|
1083
|
+
models?: AxAIInputModelList<AxAIGoogleGeminiModel>;
|
|
1073
1084
|
}
|
|
1074
1085
|
/**
|
|
1075
1086
|
* AxAIGoogleGemini: AI Service
|
|
@@ -1135,7 +1146,7 @@ interface AxAIHuggingFaceArgs {
|
|
|
1135
1146
|
apiKey: string;
|
|
1136
1147
|
config?: Readonly<Partial<AxAIHuggingFaceConfig>>;
|
|
1137
1148
|
options?: Readonly<AxAIServiceOptions>;
|
|
1138
|
-
models?:
|
|
1149
|
+
models?: AxAIInputModelList<AxAIHuggingFaceModel>;
|
|
1139
1150
|
}
|
|
1140
1151
|
declare class AxAIHuggingFace extends AxBaseAI<AxAIHuggingFaceModel, unknown, AxAIHuggingFaceRequest, unknown, AxAIHuggingFaceResponse, unknown, unknown> {
|
|
1141
1152
|
constructor({ apiKey, config, options, models, }: Readonly<Omit<AxAIHuggingFaceArgs, 'name'>>);
|
|
@@ -1253,7 +1264,7 @@ interface AxAIRekaArgs {
|
|
|
1253
1264
|
streamingUsage?: boolean;
|
|
1254
1265
|
}>;
|
|
1255
1266
|
modelInfo?: Readonly<AxModelInfo[]>;
|
|
1256
|
-
models?:
|
|
1267
|
+
models?: AxAIInputModelList<AxAIRekaModel>;
|
|
1257
1268
|
}
|
|
1258
1269
|
declare class AxAIReka extends AxBaseAI<AxAIRekaModel, undefined, AxAIRekaChatRequest, unknown, AxAIRekaChatResponse, AxAIRekaChatResponseDelta, unknown> {
|
|
1259
1270
|
constructor({ apiKey, config, options, apiURL, modelInfo, models, }: Readonly<Omit<AxAIRekaArgs, 'name'>>);
|
|
@@ -1272,13 +1283,15 @@ declare class AxAI implements AxAIService {
|
|
|
1272
1283
|
constructor(options: Readonly<AxAIArgs>);
|
|
1273
1284
|
getName(): string;
|
|
1274
1285
|
getId(): string;
|
|
1275
|
-
getModelInfo(): Readonly<AxModelInfoWithProvider>;
|
|
1276
|
-
getEmbedModelInfo(): Readonly<AxModelInfoWithProvider> | undefined;
|
|
1277
1286
|
getFeatures(model?: string): {
|
|
1278
1287
|
functions: boolean;
|
|
1279
1288
|
streaming: boolean;
|
|
1280
1289
|
};
|
|
1281
1290
|
getModelList(): AxAIModelList | undefined;
|
|
1291
|
+
getDefaultModels(): Readonly<{
|
|
1292
|
+
model: string;
|
|
1293
|
+
embedModel?: string;
|
|
1294
|
+
}>;
|
|
1282
1295
|
getMetrics(): AxAIServiceMetrics;
|
|
1283
1296
|
chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
1284
1297
|
embed(req: Readonly<AxEmbedRequest>, options?: Readonly<AxAIServiceActionOptions & AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
|
|
@@ -1470,6 +1483,16 @@ declare class AxAssertionError extends Error {
|
|
|
1470
1483
|
}[];
|
|
1471
1484
|
}
|
|
1472
1485
|
|
|
1486
|
+
type AxFieldProcessorProcess = (value: AxFieldValue, context?: Readonly<{
|
|
1487
|
+
values?: AxGenOut;
|
|
1488
|
+
sessionId?: string;
|
|
1489
|
+
done?: boolean;
|
|
1490
|
+
}>) => unknown | Promise<unknown>;
|
|
1491
|
+
type AxStreamingFieldProcessorProcess = (value: string, context?: Readonly<{
|
|
1492
|
+
values?: AxGenOut;
|
|
1493
|
+
sessionId?: string;
|
|
1494
|
+
done?: boolean;
|
|
1495
|
+
}>) => unknown | Promise<unknown>;
|
|
1473
1496
|
interface AxFieldProcessor {
|
|
1474
1497
|
field: Readonly<AxField>;
|
|
1475
1498
|
/**
|
|
@@ -1478,11 +1501,7 @@ interface AxFieldProcessor {
|
|
|
1478
1501
|
* @param value - The current field value.
|
|
1479
1502
|
* @param context - Additional context (e.g. memory and session id).
|
|
1480
1503
|
*/
|
|
1481
|
-
process:
|
|
1482
|
-
values?: AxGenOut;
|
|
1483
|
-
sessionId?: string;
|
|
1484
|
-
done?: boolean;
|
|
1485
|
-
}>) => any | Promise<any>;
|
|
1504
|
+
process: AxFieldProcessorProcess | AxStreamingFieldProcessorProcess;
|
|
1486
1505
|
}
|
|
1487
1506
|
|
|
1488
1507
|
declare class AxMemory implements AxAIMemory {
|
|
@@ -1710,7 +1729,9 @@ declare class AxGen<IN extends AxGenIn = AxGenIn, OUT extends AxGenerateResult<A
|
|
|
1710
1729
|
constructor(signature: Readonly<AxSignature | string>, options?: Readonly<AxGenOptions>);
|
|
1711
1730
|
addAssert: (fn: AxAssertion["fn"], message?: string) => void;
|
|
1712
1731
|
addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
|
|
1713
|
-
|
|
1732
|
+
private addFieldProcessorInternal;
|
|
1733
|
+
addStreamingFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
|
|
1734
|
+
addFieldProcessor: (fieldName: string, fn: AxFieldProcessor["process"]) => void;
|
|
1714
1735
|
private forwardSendRequest;
|
|
1715
1736
|
private forwardCore;
|
|
1716
1737
|
private processStreamingResponse;
|
|
@@ -1832,7 +1853,7 @@ type AxBalancerOptions = {
|
|
|
1832
1853
|
/**
|
|
1833
1854
|
* Balancer that rotates through services.
|
|
1834
1855
|
*/
|
|
1835
|
-
declare class AxBalancer implements AxAIService {
|
|
1856
|
+
declare class AxBalancer implements AxAIService<unknown, unknown> {
|
|
1836
1857
|
private services;
|
|
1837
1858
|
private currentServiceIndex;
|
|
1838
1859
|
private currentService;
|
|
@@ -1849,14 +1870,16 @@ declare class AxBalancer implements AxAIService {
|
|
|
1849
1870
|
/**
|
|
1850
1871
|
* Service comparator that sorts services by cost.
|
|
1851
1872
|
*/
|
|
1852
|
-
static
|
|
1873
|
+
static metricComparator: (a: AxAIService, b: AxAIService) => number;
|
|
1853
1874
|
getModelList(): AxAIModelList | undefined;
|
|
1875
|
+
getDefaultModels(): Readonly<{
|
|
1876
|
+
model: string;
|
|
1877
|
+
embedModel?: string;
|
|
1878
|
+
}>;
|
|
1854
1879
|
private getNextService;
|
|
1855
1880
|
private reset;
|
|
1856
1881
|
getName(): string;
|
|
1857
1882
|
getId(): string;
|
|
1858
|
-
getModelInfo(): Readonly<AxModelInfoWithProvider>;
|
|
1859
|
-
getEmbedModelInfo(): Readonly<AxModelInfoWithProvider> | undefined;
|
|
1860
1883
|
getFeatures(model?: string): AxAIFeatures;
|
|
1861
1884
|
getMetrics(): AxAIServiceMetrics;
|
|
1862
1885
|
private canRetryService;
|
|
@@ -2269,13 +2292,15 @@ declare class AxMockAIService implements AxAIService {
|
|
|
2269
2292
|
constructor(config?: AxMockAIServiceConfig);
|
|
2270
2293
|
getName(): string;
|
|
2271
2294
|
getId(): string;
|
|
2272
|
-
getModelInfo(): Readonly<AxModelInfoWithProvider>;
|
|
2273
|
-
getEmbedModelInfo(): Readonly<AxModelInfoWithProvider> | undefined;
|
|
2274
2295
|
getFeatures(_model?: string): {
|
|
2275
2296
|
functions: boolean;
|
|
2276
2297
|
streaming: boolean;
|
|
2277
2298
|
};
|
|
2278
2299
|
getModelList(): AxAIModelList | undefined;
|
|
2300
|
+
getDefaultModels(): Readonly<{
|
|
2301
|
+
model: string;
|
|
2302
|
+
embedModel?: string;
|
|
2303
|
+
}>;
|
|
2279
2304
|
getMetrics(): AxAIServiceMetrics;
|
|
2280
2305
|
chat(req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<unknown, unknown>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
2281
2306
|
embed(req: Readonly<AxEmbedRequest>, _options?: Readonly<AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
|
|
@@ -2299,25 +2324,25 @@ declare class AxRateLimiterTokenUsage {
|
|
|
2299
2324
|
acquire(tokens: number): Promise<void>;
|
|
2300
2325
|
}
|
|
2301
2326
|
|
|
2302
|
-
interface
|
|
2327
|
+
interface AxSimpleClassifierForwardOptions {
|
|
2303
2328
|
cutoff?: number;
|
|
2304
2329
|
}
|
|
2305
|
-
declare class
|
|
2330
|
+
declare class AxSimpleClassifierClass {
|
|
2306
2331
|
private readonly name;
|
|
2307
2332
|
private readonly context;
|
|
2308
2333
|
constructor(name: string, context: readonly string[]);
|
|
2309
2334
|
getName(): string;
|
|
2310
2335
|
getContext(): readonly string[];
|
|
2311
2336
|
}
|
|
2312
|
-
declare class
|
|
2337
|
+
declare class AxSimpleClassifier {
|
|
2313
2338
|
private readonly ai;
|
|
2314
2339
|
private db;
|
|
2315
2340
|
private debug?;
|
|
2316
2341
|
constructor(ai: AxAIService);
|
|
2317
2342
|
getState(): AxDBState | undefined;
|
|
2318
2343
|
setState(state: AxDBState): void;
|
|
2319
|
-
|
|
2320
|
-
forward(text: string, options?: Readonly<
|
|
2344
|
+
setClasses: (classes: readonly AxSimpleClassifierClass[]) => Promise<void>;
|
|
2345
|
+
forward(text: string, options?: Readonly<AxSimpleClassifierForwardOptions>): Promise<string>;
|
|
2321
2346
|
setOptions(options: Readonly<{
|
|
2322
2347
|
debug?: boolean;
|
|
2323
2348
|
}>): void;
|
|
@@ -2375,6 +2400,70 @@ declare class AxInstanceRegistry<T> {
|
|
|
2375
2400
|
[Symbol.iterator](): Generator<T, void, unknown>;
|
|
2376
2401
|
}
|
|
2377
2402
|
|
|
2403
|
+
type AxAIServiceListItem = {
|
|
2404
|
+
key: string;
|
|
2405
|
+
service: AxAIService;
|
|
2406
|
+
description: string;
|
|
2407
|
+
isInternal?: boolean;
|
|
2408
|
+
};
|
|
2409
|
+
declare class AxMultiServiceRouter implements AxAIService<string, string> {
|
|
2410
|
+
private services;
|
|
2411
|
+
/**
|
|
2412
|
+
* Constructs a new multi-service router.
|
|
2413
|
+
* It validates that each service provides a unique set of model keys,
|
|
2414
|
+
* then builds a lookup (map) for routing the chat/embed requests.
|
|
2415
|
+
*/
|
|
2416
|
+
constructor(services: (AxAIServiceListItem | AxAIService)[]);
|
|
2417
|
+
/**
|
|
2418
|
+
* Delegates the chat call to the service matching the provided model key.
|
|
2419
|
+
*/
|
|
2420
|
+
chat(req: Readonly<AxChatRequest<string>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<string, string>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
2421
|
+
/**
|
|
2422
|
+
* Delegates the embed call to the service matching the provided embed model key.
|
|
2423
|
+
*/
|
|
2424
|
+
embed(req: Readonly<AxEmbedRequest<string>>, options?: Readonly<AxAIServiceActionOptions<string, string>>): Promise<AxEmbedResponse>;
|
|
2425
|
+
/**
|
|
2426
|
+
* Returns a composite ID built from the IDs of the underlying services.
|
|
2427
|
+
*/
|
|
2428
|
+
getId(): string;
|
|
2429
|
+
/**
|
|
2430
|
+
* Returns the name of this router.
|
|
2431
|
+
*/
|
|
2432
|
+
getName(): string;
|
|
2433
|
+
/**
|
|
2434
|
+
* Aggregates all available models across the underlying services.
|
|
2435
|
+
*/
|
|
2436
|
+
getModelList(): AxAIModelList;
|
|
2437
|
+
getDefaultModels(): Readonly<{
|
|
2438
|
+
model: string;
|
|
2439
|
+
embedModel?: string;
|
|
2440
|
+
}>;
|
|
2441
|
+
/**
|
|
2442
|
+
* If a model key is provided, delegate to the corresponding service's features.
|
|
2443
|
+
* Otherwise, returns a default feature set.
|
|
2444
|
+
*/
|
|
2445
|
+
getFeatures(model?: string): {
|
|
2446
|
+
functions: boolean;
|
|
2447
|
+
streaming: boolean;
|
|
2448
|
+
functionCot?: boolean;
|
|
2449
|
+
};
|
|
2450
|
+
/**
|
|
2451
|
+
* Returns aggregated metrics from the underlying service.
|
|
2452
|
+
* Uses the metrics from the last service that was used,
|
|
2453
|
+
* or falls back to the first service if none has been used.
|
|
2454
|
+
*/
|
|
2455
|
+
getMetrics(): AxAIServiceMetrics;
|
|
2456
|
+
/**
|
|
2457
|
+
* Sets options on all underlying services.
|
|
2458
|
+
*/
|
|
2459
|
+
setOptions(options: Readonly<AxAIServiceOptions>): void;
|
|
2460
|
+
/**
|
|
2461
|
+
* Returns the options from the last used service,
|
|
2462
|
+
* or falls back to the first service if none has been used.
|
|
2463
|
+
*/
|
|
2464
|
+
getOptions(): Readonly<AxAIServiceOptions>;
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2378
2467
|
declare class AxRAG extends AxChainOfThought<{
|
|
2379
2468
|
context: string[];
|
|
2380
2469
|
question: string;
|
|
@@ -2395,4 +2484,4 @@ declare class AxRAG extends AxChainOfThought<{
|
|
|
2395
2484
|
}>;
|
|
2396
2485
|
}
|
|
2397
2486
|
|
|
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,
|
|
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 };
|