@ax-llm/ax 10.0.46 → 10.0.48
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 +208 -94
- package/index.cjs.map +1 -1
- package/index.d.cts +44 -55
- package/index.d.ts +44 -55
- package/index.js +213 -99
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -8,79 +8,58 @@ interface RetryConfig {
|
|
|
8
8
|
backoffFactor: number;
|
|
9
9
|
retryableStatusCodes: number[];
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
interface RequestValidation {
|
|
12
|
+
validateRequest?: (request: unknown) => boolean | Promise<boolean>;
|
|
13
|
+
}
|
|
14
|
+
interface ResponseValidation {
|
|
15
|
+
validateResponse?: (response: unknown) => boolean | Promise<boolean>;
|
|
16
|
+
}
|
|
17
|
+
interface AxAPI {
|
|
18
|
+
name?: string;
|
|
19
|
+
headers?: Record<string, string>;
|
|
20
|
+
put?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface AxAPIConfig extends AxAPI, RequestValidation, ResponseValidation {
|
|
23
|
+
url: string | URL;
|
|
24
|
+
stream?: boolean;
|
|
25
|
+
debug?: boolean;
|
|
26
|
+
fetch?: typeof fetch;
|
|
27
|
+
span?: Span;
|
|
28
|
+
timeout?: number;
|
|
29
|
+
retry?: Partial<RetryConfig>;
|
|
30
|
+
}
|
|
14
31
|
declare class AxAIServiceError extends Error {
|
|
15
32
|
readonly url: string;
|
|
16
33
|
readonly requestBody?: unknown | undefined;
|
|
17
|
-
readonly context: Record<string, unknown>;
|
|
18
34
|
readonly timestamp: string;
|
|
19
35
|
readonly errorId: string;
|
|
36
|
+
readonly context: Record<string, unknown>;
|
|
20
37
|
constructor(message: string, url: string, requestBody?: unknown | undefined, context?: Record<string, unknown>);
|
|
21
38
|
toString(): string;
|
|
22
39
|
toJSON(): Record<string, unknown>;
|
|
23
40
|
}
|
|
24
|
-
/**
|
|
25
|
-
* HTTP Status Error with enhanced context
|
|
26
|
-
*/
|
|
27
41
|
declare class AxAIServiceStatusError extends AxAIServiceError {
|
|
28
42
|
readonly status: number;
|
|
29
43
|
readonly statusText: string;
|
|
30
44
|
constructor(status: number, statusText: string, url: string, requestBody?: unknown, context?: Record<string, unknown>);
|
|
31
45
|
}
|
|
32
|
-
/**
|
|
33
|
-
* Network/IO Error with enhanced context
|
|
34
|
-
*/
|
|
35
46
|
declare class AxAIServiceNetworkError extends AxAIServiceError {
|
|
36
47
|
readonly originalError: Error;
|
|
37
48
|
constructor(originalError: Error, url: string, requestBody?: unknown, context?: Record<string, unknown>);
|
|
38
49
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Response Processing Error with validation context
|
|
41
|
-
*/
|
|
42
50
|
declare class AxAIServiceResponseError extends AxAIServiceError {
|
|
43
51
|
constructor(message: string, url: string, requestBody?: unknown, context?: Record<string, unknown>);
|
|
44
52
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Stream Terminated Error with enhanced context
|
|
47
|
-
*/
|
|
48
53
|
declare class AxAIServiceStreamTerminatedError extends AxAIServiceError {
|
|
49
54
|
readonly lastChunk?: unknown | undefined;
|
|
50
55
|
constructor(url: string, requestBody?: unknown, lastChunk?: unknown | undefined, context?: Record<string, unknown>);
|
|
51
56
|
}
|
|
52
|
-
/**
|
|
53
|
-
* Request timeout error
|
|
54
|
-
*/
|
|
55
57
|
declare class AxAIServiceTimeoutError extends AxAIServiceError {
|
|
56
58
|
constructor(url: string, timeoutMs: number, requestBody?: unknown, context?: Record<string, unknown>);
|
|
57
59
|
}
|
|
58
|
-
/**
|
|
59
|
-
* Authentication error
|
|
60
|
-
*/
|
|
61
60
|
declare class AxAIServiceAuthenticationError extends AxAIServiceError {
|
|
62
61
|
constructor(url: string, requestBody?: unknown, context?: Record<string, unknown>);
|
|
63
62
|
}
|
|
64
|
-
/**
|
|
65
|
-
* API Configuration interface
|
|
66
|
-
*/
|
|
67
|
-
interface AxAPI {
|
|
68
|
-
name?: string;
|
|
69
|
-
headers?: Record<string, string>;
|
|
70
|
-
put?: boolean;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Extended API Configuration
|
|
74
|
-
*/
|
|
75
|
-
interface AxAPIConfig extends AxAPI {
|
|
76
|
-
url: string | URL;
|
|
77
|
-
stream?: boolean;
|
|
78
|
-
debug?: boolean;
|
|
79
|
-
fetch?: typeof fetch;
|
|
80
|
-
span?: Span;
|
|
81
|
-
timeout?: number;
|
|
82
|
-
retry?: Partial<RetryConfig>;
|
|
83
|
-
}
|
|
84
63
|
|
|
85
64
|
type AxAIModelMap = Record<string, string>;
|
|
86
65
|
type AxModelInfo = {
|
|
@@ -551,8 +530,9 @@ declare class AxAIAnthropic extends AxBaseAI<AxAIAnthropicChatRequest, unknown,
|
|
|
551
530
|
}
|
|
552
531
|
|
|
553
532
|
declare enum AxAIOpenAIModel {
|
|
554
|
-
|
|
533
|
+
O1 = "o1",
|
|
555
534
|
O1Mini = "o1-mini",
|
|
535
|
+
O3Mini = "o3-mini",
|
|
556
536
|
GPT4 = "gpt-4",
|
|
557
537
|
GPT4O = "gpt-4o",
|
|
558
538
|
GPT4OMini = "gpt-4o-mini",
|
|
@@ -581,6 +561,8 @@ type AxAIOpenAIConfig = Omit<AxModelConfig, 'topK'> & {
|
|
|
581
561
|
logprobs?: number;
|
|
582
562
|
echo?: boolean;
|
|
583
563
|
dimensions?: number;
|
|
564
|
+
reasoningEffort?: 'low' | 'medium' | 'high';
|
|
565
|
+
store?: boolean;
|
|
584
566
|
};
|
|
585
567
|
type AxAIOpenAILogprob = {
|
|
586
568
|
tokens: string[];
|
|
@@ -608,6 +590,8 @@ interface AxAIOpenAIResponseDelta<T> {
|
|
|
608
590
|
}
|
|
609
591
|
type AxAIOpenAIChatRequest = {
|
|
610
592
|
model: string;
|
|
593
|
+
reasoning_effort?: 'low' | 'medium' | 'high';
|
|
594
|
+
store?: boolean;
|
|
611
595
|
messages: ({
|
|
612
596
|
role: 'system';
|
|
613
597
|
content: string;
|
|
@@ -1471,24 +1455,16 @@ declare class AxProgram<IN extends AxGenIn, OUT extends AxGenOut> implements AxT
|
|
|
1471
1455
|
interface AxAssertion {
|
|
1472
1456
|
fn(values: Record<string, unknown>): boolean | undefined;
|
|
1473
1457
|
message?: string;
|
|
1474
|
-
optional?: boolean;
|
|
1475
1458
|
}
|
|
1476
1459
|
interface AxStreamingAssertion {
|
|
1477
1460
|
fieldName: string;
|
|
1478
1461
|
fn(content: string, done?: boolean): boolean | undefined;
|
|
1479
1462
|
message?: string;
|
|
1480
|
-
optional?: boolean;
|
|
1481
1463
|
}
|
|
1482
1464
|
declare class AxAssertionError extends Error {
|
|
1483
|
-
|
|
1484
|
-
private optional?;
|
|
1485
|
-
constructor({ message, values, optional, }: Readonly<{
|
|
1465
|
+
constructor({ message, }: Readonly<{
|
|
1486
1466
|
message: string;
|
|
1487
|
-
values: Record<string, unknown>;
|
|
1488
|
-
optional?: boolean;
|
|
1489
1467
|
}>);
|
|
1490
|
-
getValue: () => Record<string, unknown>;
|
|
1491
|
-
getOptional: () => boolean | undefined;
|
|
1492
1468
|
getFixingInstructions: () => {
|
|
1493
1469
|
name: string;
|
|
1494
1470
|
title: string;
|
|
@@ -1512,6 +1488,17 @@ declare class AxMemory implements AxAIMemory {
|
|
|
1512
1488
|
reset(sessionId?: string): void;
|
|
1513
1489
|
}
|
|
1514
1490
|
|
|
1491
|
+
declare class AxFunctionError extends Error {
|
|
1492
|
+
private fields;
|
|
1493
|
+
constructor(fields: {
|
|
1494
|
+
field: string;
|
|
1495
|
+
message: string;
|
|
1496
|
+
}[]);
|
|
1497
|
+
getFields: () => {
|
|
1498
|
+
field: string;
|
|
1499
|
+
message: string;
|
|
1500
|
+
}[];
|
|
1501
|
+
}
|
|
1515
1502
|
type AxChatResponseFunctionCall = {
|
|
1516
1503
|
id?: string;
|
|
1517
1504
|
name: string;
|
|
@@ -1623,8 +1610,8 @@ declare class AxGen<IN extends AxGenIn = AxGenIn, OUT extends AxGenerateResult<A
|
|
|
1623
1610
|
private functions?;
|
|
1624
1611
|
private functionsExecuted;
|
|
1625
1612
|
constructor(signature: Readonly<AxSignature | string>, options?: Readonly<AxGenOptions>);
|
|
1626
|
-
addAssert: (fn: AxAssertion["fn"], message?: string
|
|
1627
|
-
addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string
|
|
1613
|
+
addAssert: (fn: AxAssertion["fn"], message?: string) => void;
|
|
1614
|
+
addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
|
|
1628
1615
|
private forwardSendRequest;
|
|
1629
1616
|
private forwardCore;
|
|
1630
1617
|
private processStreamingResponse;
|
|
@@ -1702,6 +1689,7 @@ declare class AxApacheTika {
|
|
|
1702
1689
|
*/
|
|
1703
1690
|
type AxBalancerOptions = {
|
|
1704
1691
|
comparator?: (a: AxAIService, b: AxAIService) => number;
|
|
1692
|
+
debug?: boolean;
|
|
1705
1693
|
};
|
|
1706
1694
|
/**
|
|
1707
1695
|
* Balancer that rotates through services.
|
|
@@ -1710,6 +1698,7 @@ declare class AxBalancer implements AxAIService {
|
|
|
1710
1698
|
private services;
|
|
1711
1699
|
private currentServiceIndex;
|
|
1712
1700
|
private currentService;
|
|
1701
|
+
private debug;
|
|
1713
1702
|
constructor(services: readonly AxAIService[], options?: AxBalancerOptions);
|
|
1714
1703
|
/**
|
|
1715
1704
|
* Service comparator that respects the input order of services.
|
|
@@ -2260,4 +2249,4 @@ declare class AxRAG extends AxChainOfThought<{
|
|
|
2260
2249
|
}>;
|
|
2261
2250
|
}
|
|
2262
2251
|
|
|
2263
|
-
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, 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, 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 AxAIModelMap, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIArgs, 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 AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, type AxBaseAIFeatures, 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 AxFieldTemplateFn, type AxFieldValue, type AxFunction, type AxFunctionExec, 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 };
|
|
2252
|
+
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, 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, 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 AxAIModelMap, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIArgs, 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 AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, type AxBaseAIFeatures, 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 AxFieldTemplateFn, type AxFieldValue, type AxFunction, AxFunctionError, type AxFunctionExec, 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 };
|
package/index.d.ts
CHANGED
|
@@ -8,79 +8,58 @@ interface RetryConfig {
|
|
|
8
8
|
backoffFactor: number;
|
|
9
9
|
retryableStatusCodes: number[];
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
interface RequestValidation {
|
|
12
|
+
validateRequest?: (request: unknown) => boolean | Promise<boolean>;
|
|
13
|
+
}
|
|
14
|
+
interface ResponseValidation {
|
|
15
|
+
validateResponse?: (response: unknown) => boolean | Promise<boolean>;
|
|
16
|
+
}
|
|
17
|
+
interface AxAPI {
|
|
18
|
+
name?: string;
|
|
19
|
+
headers?: Record<string, string>;
|
|
20
|
+
put?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface AxAPIConfig extends AxAPI, RequestValidation, ResponseValidation {
|
|
23
|
+
url: string | URL;
|
|
24
|
+
stream?: boolean;
|
|
25
|
+
debug?: boolean;
|
|
26
|
+
fetch?: typeof fetch;
|
|
27
|
+
span?: Span;
|
|
28
|
+
timeout?: number;
|
|
29
|
+
retry?: Partial<RetryConfig>;
|
|
30
|
+
}
|
|
14
31
|
declare class AxAIServiceError extends Error {
|
|
15
32
|
readonly url: string;
|
|
16
33
|
readonly requestBody?: unknown | undefined;
|
|
17
|
-
readonly context: Record<string, unknown>;
|
|
18
34
|
readonly timestamp: string;
|
|
19
35
|
readonly errorId: string;
|
|
36
|
+
readonly context: Record<string, unknown>;
|
|
20
37
|
constructor(message: string, url: string, requestBody?: unknown | undefined, context?: Record<string, unknown>);
|
|
21
38
|
toString(): string;
|
|
22
39
|
toJSON(): Record<string, unknown>;
|
|
23
40
|
}
|
|
24
|
-
/**
|
|
25
|
-
* HTTP Status Error with enhanced context
|
|
26
|
-
*/
|
|
27
41
|
declare class AxAIServiceStatusError extends AxAIServiceError {
|
|
28
42
|
readonly status: number;
|
|
29
43
|
readonly statusText: string;
|
|
30
44
|
constructor(status: number, statusText: string, url: string, requestBody?: unknown, context?: Record<string, unknown>);
|
|
31
45
|
}
|
|
32
|
-
/**
|
|
33
|
-
* Network/IO Error with enhanced context
|
|
34
|
-
*/
|
|
35
46
|
declare class AxAIServiceNetworkError extends AxAIServiceError {
|
|
36
47
|
readonly originalError: Error;
|
|
37
48
|
constructor(originalError: Error, url: string, requestBody?: unknown, context?: Record<string, unknown>);
|
|
38
49
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Response Processing Error with validation context
|
|
41
|
-
*/
|
|
42
50
|
declare class AxAIServiceResponseError extends AxAIServiceError {
|
|
43
51
|
constructor(message: string, url: string, requestBody?: unknown, context?: Record<string, unknown>);
|
|
44
52
|
}
|
|
45
|
-
/**
|
|
46
|
-
* Stream Terminated Error with enhanced context
|
|
47
|
-
*/
|
|
48
53
|
declare class AxAIServiceStreamTerminatedError extends AxAIServiceError {
|
|
49
54
|
readonly lastChunk?: unknown | undefined;
|
|
50
55
|
constructor(url: string, requestBody?: unknown, lastChunk?: unknown | undefined, context?: Record<string, unknown>);
|
|
51
56
|
}
|
|
52
|
-
/**
|
|
53
|
-
* Request timeout error
|
|
54
|
-
*/
|
|
55
57
|
declare class AxAIServiceTimeoutError extends AxAIServiceError {
|
|
56
58
|
constructor(url: string, timeoutMs: number, requestBody?: unknown, context?: Record<string, unknown>);
|
|
57
59
|
}
|
|
58
|
-
/**
|
|
59
|
-
* Authentication error
|
|
60
|
-
*/
|
|
61
60
|
declare class AxAIServiceAuthenticationError extends AxAIServiceError {
|
|
62
61
|
constructor(url: string, requestBody?: unknown, context?: Record<string, unknown>);
|
|
63
62
|
}
|
|
64
|
-
/**
|
|
65
|
-
* API Configuration interface
|
|
66
|
-
*/
|
|
67
|
-
interface AxAPI {
|
|
68
|
-
name?: string;
|
|
69
|
-
headers?: Record<string, string>;
|
|
70
|
-
put?: boolean;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Extended API Configuration
|
|
74
|
-
*/
|
|
75
|
-
interface AxAPIConfig extends AxAPI {
|
|
76
|
-
url: string | URL;
|
|
77
|
-
stream?: boolean;
|
|
78
|
-
debug?: boolean;
|
|
79
|
-
fetch?: typeof fetch;
|
|
80
|
-
span?: Span;
|
|
81
|
-
timeout?: number;
|
|
82
|
-
retry?: Partial<RetryConfig>;
|
|
83
|
-
}
|
|
84
63
|
|
|
85
64
|
type AxAIModelMap = Record<string, string>;
|
|
86
65
|
type AxModelInfo = {
|
|
@@ -551,8 +530,9 @@ declare class AxAIAnthropic extends AxBaseAI<AxAIAnthropicChatRequest, unknown,
|
|
|
551
530
|
}
|
|
552
531
|
|
|
553
532
|
declare enum AxAIOpenAIModel {
|
|
554
|
-
|
|
533
|
+
O1 = "o1",
|
|
555
534
|
O1Mini = "o1-mini",
|
|
535
|
+
O3Mini = "o3-mini",
|
|
556
536
|
GPT4 = "gpt-4",
|
|
557
537
|
GPT4O = "gpt-4o",
|
|
558
538
|
GPT4OMini = "gpt-4o-mini",
|
|
@@ -581,6 +561,8 @@ type AxAIOpenAIConfig = Omit<AxModelConfig, 'topK'> & {
|
|
|
581
561
|
logprobs?: number;
|
|
582
562
|
echo?: boolean;
|
|
583
563
|
dimensions?: number;
|
|
564
|
+
reasoningEffort?: 'low' | 'medium' | 'high';
|
|
565
|
+
store?: boolean;
|
|
584
566
|
};
|
|
585
567
|
type AxAIOpenAILogprob = {
|
|
586
568
|
tokens: string[];
|
|
@@ -608,6 +590,8 @@ interface AxAIOpenAIResponseDelta<T> {
|
|
|
608
590
|
}
|
|
609
591
|
type AxAIOpenAIChatRequest = {
|
|
610
592
|
model: string;
|
|
593
|
+
reasoning_effort?: 'low' | 'medium' | 'high';
|
|
594
|
+
store?: boolean;
|
|
611
595
|
messages: ({
|
|
612
596
|
role: 'system';
|
|
613
597
|
content: string;
|
|
@@ -1471,24 +1455,16 @@ declare class AxProgram<IN extends AxGenIn, OUT extends AxGenOut> implements AxT
|
|
|
1471
1455
|
interface AxAssertion {
|
|
1472
1456
|
fn(values: Record<string, unknown>): boolean | undefined;
|
|
1473
1457
|
message?: string;
|
|
1474
|
-
optional?: boolean;
|
|
1475
1458
|
}
|
|
1476
1459
|
interface AxStreamingAssertion {
|
|
1477
1460
|
fieldName: string;
|
|
1478
1461
|
fn(content: string, done?: boolean): boolean | undefined;
|
|
1479
1462
|
message?: string;
|
|
1480
|
-
optional?: boolean;
|
|
1481
1463
|
}
|
|
1482
1464
|
declare class AxAssertionError extends Error {
|
|
1483
|
-
|
|
1484
|
-
private optional?;
|
|
1485
|
-
constructor({ message, values, optional, }: Readonly<{
|
|
1465
|
+
constructor({ message, }: Readonly<{
|
|
1486
1466
|
message: string;
|
|
1487
|
-
values: Record<string, unknown>;
|
|
1488
|
-
optional?: boolean;
|
|
1489
1467
|
}>);
|
|
1490
|
-
getValue: () => Record<string, unknown>;
|
|
1491
|
-
getOptional: () => boolean | undefined;
|
|
1492
1468
|
getFixingInstructions: () => {
|
|
1493
1469
|
name: string;
|
|
1494
1470
|
title: string;
|
|
@@ -1512,6 +1488,17 @@ declare class AxMemory implements AxAIMemory {
|
|
|
1512
1488
|
reset(sessionId?: string): void;
|
|
1513
1489
|
}
|
|
1514
1490
|
|
|
1491
|
+
declare class AxFunctionError extends Error {
|
|
1492
|
+
private fields;
|
|
1493
|
+
constructor(fields: {
|
|
1494
|
+
field: string;
|
|
1495
|
+
message: string;
|
|
1496
|
+
}[]);
|
|
1497
|
+
getFields: () => {
|
|
1498
|
+
field: string;
|
|
1499
|
+
message: string;
|
|
1500
|
+
}[];
|
|
1501
|
+
}
|
|
1515
1502
|
type AxChatResponseFunctionCall = {
|
|
1516
1503
|
id?: string;
|
|
1517
1504
|
name: string;
|
|
@@ -1623,8 +1610,8 @@ declare class AxGen<IN extends AxGenIn = AxGenIn, OUT extends AxGenerateResult<A
|
|
|
1623
1610
|
private functions?;
|
|
1624
1611
|
private functionsExecuted;
|
|
1625
1612
|
constructor(signature: Readonly<AxSignature | string>, options?: Readonly<AxGenOptions>);
|
|
1626
|
-
addAssert: (fn: AxAssertion["fn"], message?: string
|
|
1627
|
-
addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string
|
|
1613
|
+
addAssert: (fn: AxAssertion["fn"], message?: string) => void;
|
|
1614
|
+
addStreamingAssert: (fieldName: string, fn: AxStreamingAssertion["fn"], message?: string) => void;
|
|
1628
1615
|
private forwardSendRequest;
|
|
1629
1616
|
private forwardCore;
|
|
1630
1617
|
private processStreamingResponse;
|
|
@@ -1702,6 +1689,7 @@ declare class AxApacheTika {
|
|
|
1702
1689
|
*/
|
|
1703
1690
|
type AxBalancerOptions = {
|
|
1704
1691
|
comparator?: (a: AxAIService, b: AxAIService) => number;
|
|
1692
|
+
debug?: boolean;
|
|
1705
1693
|
};
|
|
1706
1694
|
/**
|
|
1707
1695
|
* Balancer that rotates through services.
|
|
@@ -1710,6 +1698,7 @@ declare class AxBalancer implements AxAIService {
|
|
|
1710
1698
|
private services;
|
|
1711
1699
|
private currentServiceIndex;
|
|
1712
1700
|
private currentService;
|
|
1701
|
+
private debug;
|
|
1713
1702
|
constructor(services: readonly AxAIService[], options?: AxBalancerOptions);
|
|
1714
1703
|
/**
|
|
1715
1704
|
* Service comparator that respects the input order of services.
|
|
@@ -2260,4 +2249,4 @@ declare class AxRAG extends AxChainOfThought<{
|
|
|
2260
2249
|
}>;
|
|
2261
2250
|
}
|
|
2262
2251
|
|
|
2263
|
-
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, 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, 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 AxAIModelMap, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIArgs, 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 AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, type AxBaseAIFeatures, 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 AxFieldTemplateFn, type AxFieldValue, type AxFunction, type AxFunctionExec, 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 };
|
|
2252
|
+
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, 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, 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 AxAIModelMap, type AxAIModels, AxAIOllama, type AxAIOllamaAIConfig, type AxAIOllamaArgs, AxAIOpenAI, type AxAIOpenAIArgs, 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 AxAgentOptions, type AxAgentic, AxApacheTika, type AxApacheTikaArgs, type AxApacheTikaConvertOptions, type AxAssertion, AxAssertionError, AxBalancer, type AxBalancerOptions, AxBaseAI, type AxBaseAIArgs, type AxBaseAIFeatures, 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 AxFieldTemplateFn, type AxFieldValue, type AxFunction, AxFunctionError, type AxFunctionExec, 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 };
|