@ax-llm/ax 11.0.17 → 11.0.19
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 +264 -202
- package/index.cjs.map +1 -1
- package/index.d.cts +47 -47
- package/index.d.ts +47 -47
- package/index.js +264 -202
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReadableStream
|
|
1
|
+
import { ReadableStream } from 'stream/web';
|
|
2
2
|
import { Span, Tracer } from '@opentelemetry/api';
|
|
3
3
|
|
|
4
4
|
interface RetryConfig {
|
|
@@ -233,10 +233,10 @@ type AxEmbedRequest<TEmbedModel = string> = {
|
|
|
233
233
|
embedModel?: TEmbedModel;
|
|
234
234
|
};
|
|
235
235
|
type AxInternalEmbedRequest<TEmbedModel> = Omit<AxEmbedRequest, 'embedModel'> & Required<Pick<AxEmbedRequest<TEmbedModel>, 'embedModel'>>;
|
|
236
|
-
type AxRateLimiterFunction = <T = unknown>(reqFunc: () => Promise<T | ReadableStream
|
|
236
|
+
type AxRateLimiterFunction = <T = unknown>(reqFunc: () => Promise<T | ReadableStream<T>>, info: Readonly<{
|
|
237
237
|
modelUsage?: AxTokenUsage;
|
|
238
238
|
embedModelUsage?: AxTokenUsage;
|
|
239
|
-
}>) => Promise<T | ReadableStream
|
|
239
|
+
}>) => Promise<T | ReadableStream<T>>;
|
|
240
240
|
type AxAIPromptConfig = {
|
|
241
241
|
stream?: boolean;
|
|
242
242
|
};
|
|
@@ -261,7 +261,7 @@ interface AxAIService<TModel = unknown, TEmbedModel = unknown> {
|
|
|
261
261
|
getFeatures(model?: TModel): AxAIFeatures;
|
|
262
262
|
getModelList(): AxAIModelList<TModel> | undefined;
|
|
263
263
|
getMetrics(): AxAIServiceMetrics;
|
|
264
|
-
chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream
|
|
264
|
+
chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
265
265
|
embed(req: Readonly<AxEmbedRequest<TEmbedModel>>, options?: Readonly<AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxEmbedResponse>;
|
|
266
266
|
setOptions(options: Readonly<AxAIServiceOptions>): void;
|
|
267
267
|
getOptions(): Readonly<AxAIServiceOptions>;
|
|
@@ -326,7 +326,7 @@ declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatRe
|
|
|
326
326
|
private updateLatencyMetrics;
|
|
327
327
|
private updateErrorMetrics;
|
|
328
328
|
getMetrics(): AxAIServiceMetrics;
|
|
329
|
-
chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream
|
|
329
|
+
chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
330
330
|
private _chat1;
|
|
331
331
|
private cleanupFunctionSchema;
|
|
332
332
|
private _chat2;
|
|
@@ -1280,7 +1280,7 @@ declare class AxAI implements AxAIService {
|
|
|
1280
1280
|
};
|
|
1281
1281
|
getModelList(): AxAIModelList | undefined;
|
|
1282
1282
|
getMetrics(): AxAIServiceMetrics;
|
|
1283
|
-
chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions>): Promise<AxChatResponse | ReadableStream
|
|
1283
|
+
chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
1284
1284
|
embed(req: Readonly<AxEmbedRequest>, options?: Readonly<AxAIServiceActionOptions & AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
|
|
1285
1285
|
setOptions(options: Readonly<AxAIServiceOptions>): void;
|
|
1286
1286
|
getOptions(): Readonly<AxAIServiceOptions>;
|
|
@@ -1312,6 +1312,7 @@ interface AxField {
|
|
|
1312
1312
|
classes?: string[];
|
|
1313
1313
|
};
|
|
1314
1314
|
isOptional?: boolean;
|
|
1315
|
+
isInternal?: boolean;
|
|
1315
1316
|
}
|
|
1316
1317
|
type AxIField = Omit<AxField, 'title'> & {
|
|
1317
1318
|
title: string;
|
|
@@ -1367,7 +1368,6 @@ type AxProgramDemos = {
|
|
|
1367
1368
|
};
|
|
1368
1369
|
type AxProgramExamples = AxProgramDemos | AxProgramDemos['traces'];
|
|
1369
1370
|
type AxProgramForwardOptions = {
|
|
1370
|
-
maxCompletions?: number;
|
|
1371
1371
|
maxRetries?: number;
|
|
1372
1372
|
maxSteps?: number;
|
|
1373
1373
|
mem?: AxAIMemory;
|
|
@@ -1657,7 +1657,6 @@ declare class AxPromptTemplate {
|
|
|
1657
1657
|
}
|
|
1658
1658
|
|
|
1659
1659
|
interface AxGenOptions {
|
|
1660
|
-
maxCompletions?: number;
|
|
1661
1660
|
maxRetries?: number;
|
|
1662
1661
|
maxSteps?: number;
|
|
1663
1662
|
mem?: AxAIMemory;
|
|
@@ -1863,7 +1862,7 @@ declare class AxBalancer implements AxAIService {
|
|
|
1863
1862
|
private canRetryService;
|
|
1864
1863
|
private handleFailure;
|
|
1865
1864
|
private handleSuccess;
|
|
1866
|
-
chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions> | undefined): Promise<AxChatResponse | ReadableStream
|
|
1865
|
+
chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions> | undefined): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
1867
1866
|
embed(req: Readonly<AxEmbedRequest>, options?: Readonly<AxAIServiceActionOptions> | undefined): Promise<AxEmbedResponse>;
|
|
1868
1867
|
setOptions(options: Readonly<AxAIServiceOptions>): void;
|
|
1869
1868
|
getOptions(): Readonly<AxAIServiceOptions>;
|
|
@@ -2247,6 +2246,44 @@ declare enum AxSpanKindValues {
|
|
|
2247
2246
|
UNKNOWN = "unknown"
|
|
2248
2247
|
}
|
|
2249
2248
|
|
|
2249
|
+
type AxMockAIServiceConfig = {
|
|
2250
|
+
name?: string;
|
|
2251
|
+
id?: string;
|
|
2252
|
+
modelInfo?: Partial<AxModelInfoWithProvider>;
|
|
2253
|
+
embedModelInfo?: AxModelInfoWithProvider;
|
|
2254
|
+
features?: {
|
|
2255
|
+
functions?: boolean;
|
|
2256
|
+
streaming?: boolean;
|
|
2257
|
+
};
|
|
2258
|
+
models?: AxAIModelList;
|
|
2259
|
+
options?: AxAIServiceOptions;
|
|
2260
|
+
chatResponse?: AxChatResponse | ReadableStream<AxChatResponse> | (() => Promise<AxChatResponse | ReadableStream<AxChatResponse>>) | ((req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<unknown, unknown>>) => Promise<AxChatResponse | ReadableStream<AxChatResponse>>);
|
|
2261
|
+
embedResponse?: AxEmbedResponse | ((req: Readonly<AxEmbedRequest>) => AxEmbedResponse | Promise<AxEmbedResponse>);
|
|
2262
|
+
shouldError?: boolean;
|
|
2263
|
+
errorMessage?: string;
|
|
2264
|
+
latencyMs?: number;
|
|
2265
|
+
};
|
|
2266
|
+
declare class AxMockAIService implements AxAIService {
|
|
2267
|
+
private readonly config;
|
|
2268
|
+
private metrics;
|
|
2269
|
+
constructor(config?: AxMockAIServiceConfig);
|
|
2270
|
+
getName(): string;
|
|
2271
|
+
getId(): string;
|
|
2272
|
+
getModelInfo(): Readonly<AxModelInfoWithProvider>;
|
|
2273
|
+
getEmbedModelInfo(): Readonly<AxModelInfoWithProvider> | undefined;
|
|
2274
|
+
getFeatures(_model?: string): {
|
|
2275
|
+
functions: boolean;
|
|
2276
|
+
streaming: boolean;
|
|
2277
|
+
};
|
|
2278
|
+
getModelList(): AxAIModelList | undefined;
|
|
2279
|
+
getMetrics(): AxAIServiceMetrics;
|
|
2280
|
+
chat(req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<unknown, unknown>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
2281
|
+
embed(req: Readonly<AxEmbedRequest>, _options?: Readonly<AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
|
|
2282
|
+
setOptions(options: Readonly<AxAIServiceOptions>): void;
|
|
2283
|
+
getOptions(): Readonly<AxAIServiceOptions>;
|
|
2284
|
+
private updateMetrics;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2250
2287
|
interface AxRateLimiterTokenUsageOptions {
|
|
2251
2288
|
debug?: boolean;
|
|
2252
2289
|
}
|
|
@@ -2338,43 +2375,6 @@ declare class AxInstanceRegistry<T> {
|
|
|
2338
2375
|
[Symbol.iterator](): Generator<T, void, unknown>;
|
|
2339
2376
|
}
|
|
2340
2377
|
|
|
2341
|
-
declare class AxMockAIService implements AxAIService {
|
|
2342
|
-
private readonly config;
|
|
2343
|
-
private options;
|
|
2344
|
-
private metrics;
|
|
2345
|
-
constructor(config?: {
|
|
2346
|
-
name?: string;
|
|
2347
|
-
id?: string;
|
|
2348
|
-
modelInfo?: Partial<AxModelInfoWithProvider>;
|
|
2349
|
-
embedModelInfo?: AxModelInfoWithProvider;
|
|
2350
|
-
features?: {
|
|
2351
|
-
functions?: boolean;
|
|
2352
|
-
streaming?: boolean;
|
|
2353
|
-
};
|
|
2354
|
-
models?: AxAIModelList;
|
|
2355
|
-
chatResponse?: AxChatResponse | ((req: Readonly<AxChatRequest>) => AxChatResponse | Promise<AxChatResponse>);
|
|
2356
|
-
embedResponse?: AxEmbedResponse | ((req: Readonly<AxEmbedRequest>) => AxEmbedResponse | Promise<AxEmbedResponse>);
|
|
2357
|
-
shouldError?: boolean;
|
|
2358
|
-
errorMessage?: string;
|
|
2359
|
-
latencyMs?: number;
|
|
2360
|
-
});
|
|
2361
|
-
getName(): string;
|
|
2362
|
-
getId(): string;
|
|
2363
|
-
getModelInfo(): Readonly<AxModelInfoWithProvider>;
|
|
2364
|
-
getEmbedModelInfo(): Readonly<AxModelInfoWithProvider> | undefined;
|
|
2365
|
-
getFeatures(_model?: string): {
|
|
2366
|
-
functions: boolean;
|
|
2367
|
-
streaming: boolean;
|
|
2368
|
-
};
|
|
2369
|
-
getModelList(): AxAIModelList | undefined;
|
|
2370
|
-
getMetrics(): AxAIServiceMetrics;
|
|
2371
|
-
chat(req: Readonly<AxChatRequest>, _options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
2372
|
-
embed(req: Readonly<AxEmbedRequest>, _options?: Readonly<AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
|
|
2373
|
-
setOptions(options: Readonly<AxAIServiceOptions>): void;
|
|
2374
|
-
getOptions(): Readonly<AxAIServiceOptions>;
|
|
2375
|
-
private updateMetrics;
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
2378
|
declare class AxRAG extends AxChainOfThought<{
|
|
2379
2379
|
context: string[];
|
|
2380
2380
|
question: string;
|
|
@@ -2395,4 +2395,4 @@ declare class AxRAG extends AxChainOfThought<{
|
|
|
2395
2395
|
}>;
|
|
2396
2396
|
}
|
|
2397
2397
|
|
|
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 AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxOptimizerArgs, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramStreamingForwardOptions, type AxProgramTrace, type AxProgramUsage, AxProgramWithSignature, type AxProgramWithSignatureOptions, AxPromptTemplate, AxRAG, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxRewriteIn, type AxRewriteOut, AxRoute, AxRouter, type AxRouterForwardOptions, AxSignature, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable };
|
|
2398
|
+
export { AxAI, AxAIAnthropic, type AxAIAnthropicArgs, type AxAIAnthropicChatError, type AxAIAnthropicChatRequest, type AxAIAnthropicChatRequestCacheParam, type AxAIAnthropicChatResponse, type AxAIAnthropicChatResponseDelta, type AxAIAnthropicConfig, type AxAIAnthropicContentBlockDeltaEvent, type AxAIAnthropicContentBlockStartEvent, type AxAIAnthropicContentBlockStopEvent, type AxAIAnthropicErrorEvent, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, AxAIAnthropicVertexModel, type AxAIArgs, AxAIAzureOpenAI, type AxAIAzureOpenAIArgs, type AxAIAzureOpenAIConfig, AxAICohere, type AxAICohereArgs, type AxAICohereChatRequest, type AxAICohereChatRequestToolResults, type AxAICohereChatResponse, type AxAICohereChatResponseDelta, type AxAICohereChatResponseToolCalls, type AxAICohereConfig, AxAICohereEmbedModel, type AxAICohereEmbedRequest, type AxAICohereEmbedResponse, AxAICohereModel, AxAIDeepSeek, type AxAIDeepSeekArgs, AxAIDeepSeekModel, type AxAIEmbedModels, type AxAIFeatures, AxAIGoogleGemini, type AxAIGoogleGeminiArgs, type AxAIGoogleGeminiBatchEmbedRequest, type AxAIGoogleGeminiBatchEmbedResponse, type AxAIGoogleGeminiChatRequest, type AxAIGoogleGeminiChatResponse, type AxAIGoogleGeminiChatResponseDelta, type AxAIGoogleGeminiConfig, type AxAIGoogleGeminiContent, AxAIGoogleGeminiEmbedModel, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleSearchRetrieval, type AxAIGoogleVertexBatchEmbedRequest, type AxAIGoogleVertexBatchEmbedResponse, AxAIGroq, type AxAIGroqArgs, AxAIGroqModel, AxAIHuggingFace, type AxAIHuggingFaceArgs, type AxAIHuggingFaceConfig, AxAIHuggingFaceModel, type AxAIHuggingFaceRequest, type AxAIHuggingFaceResponse, type AxAIMemory, AxAIMistral, type AxAIMistralArgs, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIArgs, AxAIOpenAIBase, type AxAIOpenAIBaseArgs, type AxAIOpenAIChatRequest, type AxAIOpenAIChatResponse, type AxAIOpenAIChatResponseDelta, type AxAIOpenAIConfig, AxAIOpenAIEmbedModel, type AxAIOpenAIEmbedRequest, type AxAIOpenAIEmbedResponse, type AxAIOpenAILogprob, AxAIOpenAIModel, type AxAIOpenAIResponseDelta, type AxAIOpenAIUsage, type AxAIPromptConfig, AxAIReka, type AxAIRekaArgs, type AxAIRekaChatRequest, type AxAIRekaChatResponse, type AxAIRekaChatResponseDelta, type AxAIRekaConfig, AxAIRekaModel, type AxAIRekaUsage, type AxAIService, type AxAIServiceActionOptions, AxAIServiceAuthenticationError, AxAIServiceError, type AxAIServiceImpl, type AxAIServiceMetrics, AxAIServiceNetworkError, type AxAIServiceOptions, AxAIServiceResponseError, AxAIServiceStatusError, AxAIServiceStreamTerminatedError, AxAIServiceTimeoutError, AxAITogether, type AxAITogetherArgs, type AxAPI, type AxAPIConfig, AxAgent, type AxAgentFeatures, type AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBootstrapFewShot, AxChainOfThought, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, AxDB, type AxDBArgs, AxDBBase, type AxDBBaseArgs, type AxDBBaseOpOptions, AxDBCloudflare, type AxDBCloudflareArgs, type AxDBCloudflareOpOptions, type AxDBLoaderOptions, AxDBManager, type AxDBManagerArgs, type AxDBMatch, AxDBMemory, type AxDBMemoryArgs, type AxDBMemoryOpOptions, AxDBPinecone, type AxDBPineconeArgs, type AxDBPineconeOpOptions, type AxDBQueryRequest, type AxDBQueryResponse, type AxDBQueryService, type AxDBService, type AxDBState, type AxDBUpsertRequest, type AxDBUpsertResponse, AxDBWeaviate, type AxDBWeaviateArgs, type AxDBWeaviateOpOptions, type AxDataRow, AxDefaultQueryRewriter, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, type AxEvaluateArgs, type AxExample, type AxField, type AxFieldProcessor, type AxFieldTemplateFn, type AxFieldValue, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenOptions, type AxGenOut, type AxGenStreamingOut, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJSInterpreter, AxJSInterpreterPermission, AxLLMRequestTypeValues, AxMemory, type AxMetricFn, type AxMetricFnArgs, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxOptimizerArgs, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramStreamingForwardOptions, type AxProgramTrace, type AxProgramUsage, AxProgramWithSignature, type AxProgramWithSignatureOptions, AxPromptTemplate, AxRAG, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxRewriteIn, type AxRewriteOut, AxRoute, AxRouter, type AxRouterForwardOptions, AxSignature, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable };
|
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReadableStream
|
|
1
|
+
import { ReadableStream } from 'stream/web';
|
|
2
2
|
import { Span, Tracer } from '@opentelemetry/api';
|
|
3
3
|
|
|
4
4
|
interface RetryConfig {
|
|
@@ -233,10 +233,10 @@ type AxEmbedRequest<TEmbedModel = string> = {
|
|
|
233
233
|
embedModel?: TEmbedModel;
|
|
234
234
|
};
|
|
235
235
|
type AxInternalEmbedRequest<TEmbedModel> = Omit<AxEmbedRequest, 'embedModel'> & Required<Pick<AxEmbedRequest<TEmbedModel>, 'embedModel'>>;
|
|
236
|
-
type AxRateLimiterFunction = <T = unknown>(reqFunc: () => Promise<T | ReadableStream
|
|
236
|
+
type AxRateLimiterFunction = <T = unknown>(reqFunc: () => Promise<T | ReadableStream<T>>, info: Readonly<{
|
|
237
237
|
modelUsage?: AxTokenUsage;
|
|
238
238
|
embedModelUsage?: AxTokenUsage;
|
|
239
|
-
}>) => Promise<T | ReadableStream
|
|
239
|
+
}>) => Promise<T | ReadableStream<T>>;
|
|
240
240
|
type AxAIPromptConfig = {
|
|
241
241
|
stream?: boolean;
|
|
242
242
|
};
|
|
@@ -261,7 +261,7 @@ interface AxAIService<TModel = unknown, TEmbedModel = unknown> {
|
|
|
261
261
|
getFeatures(model?: TModel): AxAIFeatures;
|
|
262
262
|
getModelList(): AxAIModelList<TModel> | undefined;
|
|
263
263
|
getMetrics(): AxAIServiceMetrics;
|
|
264
|
-
chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream
|
|
264
|
+
chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
265
265
|
embed(req: Readonly<AxEmbedRequest<TEmbedModel>>, options?: Readonly<AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxEmbedResponse>;
|
|
266
266
|
setOptions(options: Readonly<AxAIServiceOptions>): void;
|
|
267
267
|
getOptions(): Readonly<AxAIServiceOptions>;
|
|
@@ -326,7 +326,7 @@ declare class AxBaseAI<TModel, TEmbedModel, TChatRequest, TEmbedRequest, TChatRe
|
|
|
326
326
|
private updateLatencyMetrics;
|
|
327
327
|
private updateErrorMetrics;
|
|
328
328
|
getMetrics(): AxAIServiceMetrics;
|
|
329
|
-
chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream
|
|
329
|
+
chat(req: Readonly<AxChatRequest<TModel>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<TModel, TEmbedModel>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
330
330
|
private _chat1;
|
|
331
331
|
private cleanupFunctionSchema;
|
|
332
332
|
private _chat2;
|
|
@@ -1280,7 +1280,7 @@ declare class AxAI implements AxAIService {
|
|
|
1280
1280
|
};
|
|
1281
1281
|
getModelList(): AxAIModelList | undefined;
|
|
1282
1282
|
getMetrics(): AxAIServiceMetrics;
|
|
1283
|
-
chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions>): Promise<AxChatResponse | ReadableStream
|
|
1283
|
+
chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
1284
1284
|
embed(req: Readonly<AxEmbedRequest>, options?: Readonly<AxAIServiceActionOptions & AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
|
|
1285
1285
|
setOptions(options: Readonly<AxAIServiceOptions>): void;
|
|
1286
1286
|
getOptions(): Readonly<AxAIServiceOptions>;
|
|
@@ -1312,6 +1312,7 @@ interface AxField {
|
|
|
1312
1312
|
classes?: string[];
|
|
1313
1313
|
};
|
|
1314
1314
|
isOptional?: boolean;
|
|
1315
|
+
isInternal?: boolean;
|
|
1315
1316
|
}
|
|
1316
1317
|
type AxIField = Omit<AxField, 'title'> & {
|
|
1317
1318
|
title: string;
|
|
@@ -1367,7 +1368,6 @@ type AxProgramDemos = {
|
|
|
1367
1368
|
};
|
|
1368
1369
|
type AxProgramExamples = AxProgramDemos | AxProgramDemos['traces'];
|
|
1369
1370
|
type AxProgramForwardOptions = {
|
|
1370
|
-
maxCompletions?: number;
|
|
1371
1371
|
maxRetries?: number;
|
|
1372
1372
|
maxSteps?: number;
|
|
1373
1373
|
mem?: AxAIMemory;
|
|
@@ -1657,7 +1657,6 @@ declare class AxPromptTemplate {
|
|
|
1657
1657
|
}
|
|
1658
1658
|
|
|
1659
1659
|
interface AxGenOptions {
|
|
1660
|
-
maxCompletions?: number;
|
|
1661
1660
|
maxRetries?: number;
|
|
1662
1661
|
maxSteps?: number;
|
|
1663
1662
|
mem?: AxAIMemory;
|
|
@@ -1863,7 +1862,7 @@ declare class AxBalancer implements AxAIService {
|
|
|
1863
1862
|
private canRetryService;
|
|
1864
1863
|
private handleFailure;
|
|
1865
1864
|
private handleSuccess;
|
|
1866
|
-
chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions> | undefined): Promise<AxChatResponse | ReadableStream
|
|
1865
|
+
chat(req: Readonly<AxChatRequest>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions> | undefined): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
1867
1866
|
embed(req: Readonly<AxEmbedRequest>, options?: Readonly<AxAIServiceActionOptions> | undefined): Promise<AxEmbedResponse>;
|
|
1868
1867
|
setOptions(options: Readonly<AxAIServiceOptions>): void;
|
|
1869
1868
|
getOptions(): Readonly<AxAIServiceOptions>;
|
|
@@ -2247,6 +2246,44 @@ declare enum AxSpanKindValues {
|
|
|
2247
2246
|
UNKNOWN = "unknown"
|
|
2248
2247
|
}
|
|
2249
2248
|
|
|
2249
|
+
type AxMockAIServiceConfig = {
|
|
2250
|
+
name?: string;
|
|
2251
|
+
id?: string;
|
|
2252
|
+
modelInfo?: Partial<AxModelInfoWithProvider>;
|
|
2253
|
+
embedModelInfo?: AxModelInfoWithProvider;
|
|
2254
|
+
features?: {
|
|
2255
|
+
functions?: boolean;
|
|
2256
|
+
streaming?: boolean;
|
|
2257
|
+
};
|
|
2258
|
+
models?: AxAIModelList;
|
|
2259
|
+
options?: AxAIServiceOptions;
|
|
2260
|
+
chatResponse?: AxChatResponse | ReadableStream<AxChatResponse> | (() => Promise<AxChatResponse | ReadableStream<AxChatResponse>>) | ((req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<unknown, unknown>>) => Promise<AxChatResponse | ReadableStream<AxChatResponse>>);
|
|
2261
|
+
embedResponse?: AxEmbedResponse | ((req: Readonly<AxEmbedRequest>) => AxEmbedResponse | Promise<AxEmbedResponse>);
|
|
2262
|
+
shouldError?: boolean;
|
|
2263
|
+
errorMessage?: string;
|
|
2264
|
+
latencyMs?: number;
|
|
2265
|
+
};
|
|
2266
|
+
declare class AxMockAIService implements AxAIService {
|
|
2267
|
+
private readonly config;
|
|
2268
|
+
private metrics;
|
|
2269
|
+
constructor(config?: AxMockAIServiceConfig);
|
|
2270
|
+
getName(): string;
|
|
2271
|
+
getId(): string;
|
|
2272
|
+
getModelInfo(): Readonly<AxModelInfoWithProvider>;
|
|
2273
|
+
getEmbedModelInfo(): Readonly<AxModelInfoWithProvider> | undefined;
|
|
2274
|
+
getFeatures(_model?: string): {
|
|
2275
|
+
functions: boolean;
|
|
2276
|
+
streaming: boolean;
|
|
2277
|
+
};
|
|
2278
|
+
getModelList(): AxAIModelList | undefined;
|
|
2279
|
+
getMetrics(): AxAIServiceMetrics;
|
|
2280
|
+
chat(req: Readonly<AxChatRequest<unknown>>, options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions<unknown, unknown>>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
2281
|
+
embed(req: Readonly<AxEmbedRequest>, _options?: Readonly<AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
|
|
2282
|
+
setOptions(options: Readonly<AxAIServiceOptions>): void;
|
|
2283
|
+
getOptions(): Readonly<AxAIServiceOptions>;
|
|
2284
|
+
private updateMetrics;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2250
2287
|
interface AxRateLimiterTokenUsageOptions {
|
|
2251
2288
|
debug?: boolean;
|
|
2252
2289
|
}
|
|
@@ -2338,43 +2375,6 @@ declare class AxInstanceRegistry<T> {
|
|
|
2338
2375
|
[Symbol.iterator](): Generator<T, void, unknown>;
|
|
2339
2376
|
}
|
|
2340
2377
|
|
|
2341
|
-
declare class AxMockAIService implements AxAIService {
|
|
2342
|
-
private readonly config;
|
|
2343
|
-
private options;
|
|
2344
|
-
private metrics;
|
|
2345
|
-
constructor(config?: {
|
|
2346
|
-
name?: string;
|
|
2347
|
-
id?: string;
|
|
2348
|
-
modelInfo?: Partial<AxModelInfoWithProvider>;
|
|
2349
|
-
embedModelInfo?: AxModelInfoWithProvider;
|
|
2350
|
-
features?: {
|
|
2351
|
-
functions?: boolean;
|
|
2352
|
-
streaming?: boolean;
|
|
2353
|
-
};
|
|
2354
|
-
models?: AxAIModelList;
|
|
2355
|
-
chatResponse?: AxChatResponse | ((req: Readonly<AxChatRequest>) => AxChatResponse | Promise<AxChatResponse>);
|
|
2356
|
-
embedResponse?: AxEmbedResponse | ((req: Readonly<AxEmbedRequest>) => AxEmbedResponse | Promise<AxEmbedResponse>);
|
|
2357
|
-
shouldError?: boolean;
|
|
2358
|
-
errorMessage?: string;
|
|
2359
|
-
latencyMs?: number;
|
|
2360
|
-
});
|
|
2361
|
-
getName(): string;
|
|
2362
|
-
getId(): string;
|
|
2363
|
-
getModelInfo(): Readonly<AxModelInfoWithProvider>;
|
|
2364
|
-
getEmbedModelInfo(): Readonly<AxModelInfoWithProvider> | undefined;
|
|
2365
|
-
getFeatures(_model?: string): {
|
|
2366
|
-
functions: boolean;
|
|
2367
|
-
streaming: boolean;
|
|
2368
|
-
};
|
|
2369
|
-
getModelList(): AxAIModelList | undefined;
|
|
2370
|
-
getMetrics(): AxAIServiceMetrics;
|
|
2371
|
-
chat(req: Readonly<AxChatRequest>, _options?: Readonly<AxAIPromptConfig & AxAIServiceActionOptions>): Promise<AxChatResponse | ReadableStream<AxChatResponse>>;
|
|
2372
|
-
embed(req: Readonly<AxEmbedRequest>, _options?: Readonly<AxAIServiceActionOptions>): Promise<AxEmbedResponse>;
|
|
2373
|
-
setOptions(options: Readonly<AxAIServiceOptions>): void;
|
|
2374
|
-
getOptions(): Readonly<AxAIServiceOptions>;
|
|
2375
|
-
private updateMetrics;
|
|
2376
|
-
}
|
|
2377
|
-
|
|
2378
2378
|
declare class AxRAG extends AxChainOfThought<{
|
|
2379
2379
|
context: string[];
|
|
2380
2380
|
question: string;
|
|
@@ -2395,4 +2395,4 @@ declare class AxRAG extends AxChainOfThought<{
|
|
|
2395
2395
|
}>;
|
|
2396
2396
|
}
|
|
2397
2397
|
|
|
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 AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxOptimizerArgs, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramStreamingForwardOptions, type AxProgramTrace, type AxProgramUsage, AxProgramWithSignature, type AxProgramWithSignatureOptions, AxPromptTemplate, AxRAG, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxRewriteIn, type AxRewriteOut, AxRoute, AxRouter, type AxRouterForwardOptions, AxSignature, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable };
|
|
2398
|
+
export { AxAI, AxAIAnthropic, type AxAIAnthropicArgs, type AxAIAnthropicChatError, type AxAIAnthropicChatRequest, type AxAIAnthropicChatRequestCacheParam, type AxAIAnthropicChatResponse, type AxAIAnthropicChatResponseDelta, type AxAIAnthropicConfig, type AxAIAnthropicContentBlockDeltaEvent, type AxAIAnthropicContentBlockStartEvent, type AxAIAnthropicContentBlockStopEvent, type AxAIAnthropicErrorEvent, type AxAIAnthropicMessageDeltaEvent, type AxAIAnthropicMessageStartEvent, type AxAIAnthropicMessageStopEvent, AxAIAnthropicModel, type AxAIAnthropicPingEvent, AxAIAnthropicVertexModel, type AxAIArgs, AxAIAzureOpenAI, type AxAIAzureOpenAIArgs, type AxAIAzureOpenAIConfig, AxAICohere, type AxAICohereArgs, type AxAICohereChatRequest, type AxAICohereChatRequestToolResults, type AxAICohereChatResponse, type AxAICohereChatResponseDelta, type AxAICohereChatResponseToolCalls, type AxAICohereConfig, AxAICohereEmbedModel, type AxAICohereEmbedRequest, type AxAICohereEmbedResponse, AxAICohereModel, AxAIDeepSeek, type AxAIDeepSeekArgs, AxAIDeepSeekModel, type AxAIEmbedModels, type AxAIFeatures, AxAIGoogleGemini, type AxAIGoogleGeminiArgs, type AxAIGoogleGeminiBatchEmbedRequest, type AxAIGoogleGeminiBatchEmbedResponse, type AxAIGoogleGeminiChatRequest, type AxAIGoogleGeminiChatResponse, type AxAIGoogleGeminiChatResponseDelta, type AxAIGoogleGeminiConfig, type AxAIGoogleGeminiContent, AxAIGoogleGeminiEmbedModel, type AxAIGoogleGeminiGenerationConfig, AxAIGoogleGeminiModel, type AxAIGoogleGeminiOptionsTools, AxAIGoogleGeminiSafetyCategory, type AxAIGoogleGeminiSafetySettings, AxAIGoogleGeminiSafetyThreshold, type AxAIGoogleGeminiTool, type AxAIGoogleGeminiToolConfig, type AxAIGoogleGeminiToolFunctionDeclaration, type AxAIGoogleGeminiToolGoogleSearchRetrieval, type AxAIGoogleVertexBatchEmbedRequest, type AxAIGoogleVertexBatchEmbedResponse, AxAIGroq, type AxAIGroqArgs, AxAIGroqModel, AxAIHuggingFace, type AxAIHuggingFaceArgs, type AxAIHuggingFaceConfig, AxAIHuggingFaceModel, type AxAIHuggingFaceRequest, type AxAIHuggingFaceResponse, type AxAIMemory, AxAIMistral, type AxAIMistralArgs, AxAIMistralEmbedModels, AxAIMistralModel, type AxAIModelList, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIArgs, AxAIOpenAIBase, type AxAIOpenAIBaseArgs, type AxAIOpenAIChatRequest, type AxAIOpenAIChatResponse, type AxAIOpenAIChatResponseDelta, type AxAIOpenAIConfig, AxAIOpenAIEmbedModel, type AxAIOpenAIEmbedRequest, type AxAIOpenAIEmbedResponse, type AxAIOpenAILogprob, AxAIOpenAIModel, type AxAIOpenAIResponseDelta, type AxAIOpenAIUsage, type AxAIPromptConfig, AxAIReka, type AxAIRekaArgs, type AxAIRekaChatRequest, type AxAIRekaChatResponse, type AxAIRekaChatResponseDelta, type AxAIRekaConfig, AxAIRekaModel, type AxAIRekaUsage, type AxAIService, type AxAIServiceActionOptions, AxAIServiceAuthenticationError, AxAIServiceError, type AxAIServiceImpl, type AxAIServiceMetrics, AxAIServiceNetworkError, type AxAIServiceOptions, AxAIServiceResponseError, AxAIServiceStatusError, AxAIServiceStreamTerminatedError, AxAIServiceTimeoutError, AxAITogether, type AxAITogetherArgs, type AxAPI, type AxAPIConfig, AxAgent, type AxAgentFeatures, type AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, AxBootstrapFewShot, AxChainOfThought, type AxChatRequest, type AxChatResponse, type AxChatResponseFunctionCall, type AxChatResponseResult, AxDB, type AxDBArgs, AxDBBase, type AxDBBaseArgs, type AxDBBaseOpOptions, AxDBCloudflare, type AxDBCloudflareArgs, type AxDBCloudflareOpOptions, type AxDBLoaderOptions, AxDBManager, type AxDBManagerArgs, type AxDBMatch, AxDBMemory, type AxDBMemoryArgs, type AxDBMemoryOpOptions, AxDBPinecone, type AxDBPineconeArgs, type AxDBPineconeOpOptions, type AxDBQueryRequest, type AxDBQueryResponse, type AxDBQueryService, type AxDBService, type AxDBState, type AxDBUpsertRequest, type AxDBUpsertResponse, AxDBWeaviate, type AxDBWeaviateArgs, type AxDBWeaviateOpOptions, type AxDataRow, AxDefaultQueryRewriter, AxDefaultResultReranker, type AxDockerContainer, AxDockerSession, type AxEmbedRequest, type AxEmbedResponse, AxEmbeddingAdapter, type AxEvaluateArgs, type AxExample, type AxField, type AxFieldProcessor, type AxFieldTemplateFn, type AxFieldValue, type AxFunction, AxFunctionError, type AxFunctionHandler, type AxFunctionJSONSchema, AxFunctionProcessor, AxGen, type AxGenDeltaOut, type AxGenIn, type AxGenOptions, type AxGenOut, type AxGenStreamingOut, type AxGenerateResult, AxHFDataLoader, type AxIField, type AxInputFunctionType, AxInstanceRegistry, type AxInternalChatRequest, type AxInternalEmbedRequest, AxJSInterpreter, AxJSInterpreterPermission, AxLLMRequestTypeValues, AxMemory, type AxMetricFn, type AxMetricFnArgs, AxMockAIService, type AxMockAIServiceConfig, type AxModelConfig, type AxModelInfo, type AxModelInfoWithProvider, type AxOptimizerArgs, AxProgram, type AxProgramDemos, type AxProgramExamples, type AxProgramForwardOptions, type AxProgramStreamingForwardOptions, type AxProgramTrace, type AxProgramUsage, AxProgramWithSignature, type AxProgramWithSignatureOptions, AxPromptTemplate, AxRAG, type AxRateLimiterFunction, AxRateLimiterTokenUsage, type AxRateLimiterTokenUsageOptions, type AxRerankerIn, type AxRerankerOut, type AxResponseHandlerArgs, type AxRewriteIn, type AxRewriteOut, AxRoute, AxRouter, type AxRouterForwardOptions, AxSignature, AxSpanKindValues, type AxStreamingAssertion, type AxStreamingEvent, AxTestPrompt, type AxTokenUsage, type AxTunable, type AxUsable };
|