@ax-llm/ax 15.0.17 → 15.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 +94 -77
- package/index.cjs.map +1 -1
- package/index.d.cts +7 -0
- package/index.d.ts +7 -0
- package/index.global.js +70 -53
- package/index.global.js.map +1 -1
- package/index.js +95 -78
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -23,6 +23,7 @@ interface AxAPIConfig extends AxAPI, RequestValidation, ResponseValidation {
|
|
|
23
23
|
url?: string | URL;
|
|
24
24
|
stream?: boolean;
|
|
25
25
|
debug?: boolean;
|
|
26
|
+
verbose?: boolean;
|
|
26
27
|
fetch?: typeof fetch;
|
|
27
28
|
span?: Span;
|
|
28
29
|
timeout?: number;
|
|
@@ -549,6 +550,7 @@ type AxLoggerData = {
|
|
|
549
550
|
type AxLoggerFunction = (message: AxLoggerData) => void;
|
|
550
551
|
type AxAIServiceOptions = {
|
|
551
552
|
debug?: boolean;
|
|
553
|
+
verbose?: boolean;
|
|
552
554
|
rateLimiter?: AxRateLimiterFunction;
|
|
553
555
|
fetch?: typeof fetch;
|
|
554
556
|
tracer?: Tracer;
|
|
@@ -927,7 +929,9 @@ declare class AxSignature<_TInput extends Record<string, any> = Record<string, a
|
|
|
927
929
|
private updateHash;
|
|
928
930
|
private validateSignatureConsistency;
|
|
929
931
|
private _forceComplexFields;
|
|
932
|
+
private _hasComplexFields?;
|
|
930
933
|
hasComplexFields: () => boolean;
|
|
934
|
+
private computeHasComplexFields;
|
|
931
935
|
validate: () => boolean;
|
|
932
936
|
hash: () => string;
|
|
933
937
|
toString: () => string;
|
|
@@ -2295,6 +2299,9 @@ type AxResultPickerFunction<OUT> = (data: AxResultPickerFunctionFieldResults<OUT
|
|
|
2295
2299
|
type AxProgramForwardOptions<MODEL> = AxAIServiceOptions & {
|
|
2296
2300
|
maxRetries?: number;
|
|
2297
2301
|
maxSteps?: number;
|
|
2302
|
+
retryOnError?: {
|
|
2303
|
+
maxRetries?: number;
|
|
2304
|
+
};
|
|
2298
2305
|
mem?: AxAIMemory;
|
|
2299
2306
|
ai?: AxAIService;
|
|
2300
2307
|
modelConfig?: AxModelConfig;
|
package/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ interface AxAPIConfig extends AxAPI, RequestValidation, ResponseValidation {
|
|
|
23
23
|
url?: string | URL;
|
|
24
24
|
stream?: boolean;
|
|
25
25
|
debug?: boolean;
|
|
26
|
+
verbose?: boolean;
|
|
26
27
|
fetch?: typeof fetch;
|
|
27
28
|
span?: Span;
|
|
28
29
|
timeout?: number;
|
|
@@ -549,6 +550,7 @@ type AxLoggerData = {
|
|
|
549
550
|
type AxLoggerFunction = (message: AxLoggerData) => void;
|
|
550
551
|
type AxAIServiceOptions = {
|
|
551
552
|
debug?: boolean;
|
|
553
|
+
verbose?: boolean;
|
|
552
554
|
rateLimiter?: AxRateLimiterFunction;
|
|
553
555
|
fetch?: typeof fetch;
|
|
554
556
|
tracer?: Tracer;
|
|
@@ -927,7 +929,9 @@ declare class AxSignature<_TInput extends Record<string, any> = Record<string, a
|
|
|
927
929
|
private updateHash;
|
|
928
930
|
private validateSignatureConsistency;
|
|
929
931
|
private _forceComplexFields;
|
|
932
|
+
private _hasComplexFields?;
|
|
930
933
|
hasComplexFields: () => boolean;
|
|
934
|
+
private computeHasComplexFields;
|
|
931
935
|
validate: () => boolean;
|
|
932
936
|
hash: () => string;
|
|
933
937
|
toString: () => string;
|
|
@@ -2295,6 +2299,9 @@ type AxResultPickerFunction<OUT> = (data: AxResultPickerFunctionFieldResults<OUT
|
|
|
2295
2299
|
type AxProgramForwardOptions<MODEL> = AxAIServiceOptions & {
|
|
2296
2300
|
maxRetries?: number;
|
|
2297
2301
|
maxSteps?: number;
|
|
2302
|
+
retryOnError?: {
|
|
2303
|
+
maxRetries?: number;
|
|
2304
|
+
};
|
|
2298
2305
|
mem?: AxAIMemory;
|
|
2299
2306
|
ai?: AxAIService;
|
|
2300
2307
|
modelConfig?: AxModelConfig;
|