@ax-llm/ax 14.0.40 → 14.0.42
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 +6 -6
- package/index.cjs.map +1 -1
- package/index.d.cts +20 -1
- package/index.d.ts +20 -1
- package/index.global.js +8 -8
- package/index.global.js.map +1 -1
- package/index.js +15 -15
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -387,6 +387,11 @@ type AxChatRequest<TModel = string> = {
|
|
|
387
387
|
params?: string | object;
|
|
388
388
|
};
|
|
389
389
|
}[];
|
|
390
|
+
thoughtBlock?: {
|
|
391
|
+
data: string;
|
|
392
|
+
signature?: string;
|
|
393
|
+
encrypted?: boolean;
|
|
394
|
+
};
|
|
390
395
|
cache?: boolean;
|
|
391
396
|
} | {
|
|
392
397
|
role: 'function';
|
|
@@ -712,6 +717,14 @@ declare class AxFluentFieldType<TType extends AxFieldType['type'] = AxFieldType[
|
|
|
712
717
|
* @param description - Human-readable description of what the pattern validates (e.g., "Must be a valid username with only lowercase letters, numbers, and underscores")
|
|
713
718
|
*/
|
|
714
719
|
regex(pattern: string, description: string): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, TIsInternal, TFields>;
|
|
720
|
+
/**
|
|
721
|
+
* Set date format validation for strings
|
|
722
|
+
*/
|
|
723
|
+
date(): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, TIsInternal, TFields>;
|
|
724
|
+
/**
|
|
725
|
+
* Set datetime format validation for strings
|
|
726
|
+
*/
|
|
727
|
+
datetime(): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, TIsInternal, TFields>;
|
|
715
728
|
}
|
|
716
729
|
type ValidateNoMediaTypes<TFields> = {
|
|
717
730
|
[K in keyof TFields]: TFields[K] extends {
|
|
@@ -737,6 +750,7 @@ declare const f: (() => AxSignatureBuilder) & {
|
|
|
737
750
|
audio: (desc?: string) => AxFluentFieldType<"audio", false, undefined, false, false, undefined>;
|
|
738
751
|
file: (desc?: string) => AxFluentFieldType<"file", false, undefined, false, false, undefined>;
|
|
739
752
|
url: (desc?: string) => AxFluentFieldType<"url", false, undefined, false, false, undefined>;
|
|
753
|
+
email: (desc?: string) => AxFluentFieldType<"string", false, undefined, false, false, undefined>;
|
|
740
754
|
code: (language?: string, desc?: string) => AxFluentFieldType<"code", false, undefined, false, false, undefined>;
|
|
741
755
|
object: <TFields extends Record<string, AxFluentFieldInfo<any, any, any, any, any, any> | AxFluentFieldType<any, any, any, any, any, any>>>(fields: TFields & ValidateNoMediaTypes<TFields>, desc?: string) => AxFluentFieldType<"object", false, undefined, false, false, TFields>;
|
|
742
756
|
};
|
|
@@ -1011,6 +1025,11 @@ declare class AxMemory implements AxAIMemory {
|
|
|
1011
1025
|
params?: string | object;
|
|
1012
1026
|
};
|
|
1013
1027
|
}[];
|
|
1028
|
+
thoughtBlock?: {
|
|
1029
|
+
data: string;
|
|
1030
|
+
signature?: string;
|
|
1031
|
+
encrypted?: boolean;
|
|
1032
|
+
};
|
|
1014
1033
|
cache?: boolean;
|
|
1015
1034
|
} | {
|
|
1016
1035
|
role: "function";
|
|
@@ -3664,7 +3683,7 @@ type AxAIGoogleGeminiContent = {
|
|
|
3664
3683
|
};
|
|
3665
3684
|
type AxAIGoogleGeminiContentPart = {
|
|
3666
3685
|
thought?: boolean;
|
|
3667
|
-
|
|
3686
|
+
thought_signature?: string;
|
|
3668
3687
|
metadata?: {
|
|
3669
3688
|
videoMetadata: object;
|
|
3670
3689
|
};
|
package/index.d.ts
CHANGED
|
@@ -387,6 +387,11 @@ type AxChatRequest<TModel = string> = {
|
|
|
387
387
|
params?: string | object;
|
|
388
388
|
};
|
|
389
389
|
}[];
|
|
390
|
+
thoughtBlock?: {
|
|
391
|
+
data: string;
|
|
392
|
+
signature?: string;
|
|
393
|
+
encrypted?: boolean;
|
|
394
|
+
};
|
|
390
395
|
cache?: boolean;
|
|
391
396
|
} | {
|
|
392
397
|
role: 'function';
|
|
@@ -712,6 +717,14 @@ declare class AxFluentFieldType<TType extends AxFieldType['type'] = AxFieldType[
|
|
|
712
717
|
* @param description - Human-readable description of what the pattern validates (e.g., "Must be a valid username with only lowercase letters, numbers, and underscores")
|
|
713
718
|
*/
|
|
714
719
|
regex(pattern: string, description: string): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, TIsInternal, TFields>;
|
|
720
|
+
/**
|
|
721
|
+
* Set date format validation for strings
|
|
722
|
+
*/
|
|
723
|
+
date(): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, TIsInternal, TFields>;
|
|
724
|
+
/**
|
|
725
|
+
* Set datetime format validation for strings
|
|
726
|
+
*/
|
|
727
|
+
datetime(): AxFluentFieldType<TType, TIsArray, TOptions, TIsOptional, TIsInternal, TFields>;
|
|
715
728
|
}
|
|
716
729
|
type ValidateNoMediaTypes<TFields> = {
|
|
717
730
|
[K in keyof TFields]: TFields[K] extends {
|
|
@@ -737,6 +750,7 @@ declare const f: (() => AxSignatureBuilder) & {
|
|
|
737
750
|
audio: (desc?: string) => AxFluentFieldType<"audio", false, undefined, false, false, undefined>;
|
|
738
751
|
file: (desc?: string) => AxFluentFieldType<"file", false, undefined, false, false, undefined>;
|
|
739
752
|
url: (desc?: string) => AxFluentFieldType<"url", false, undefined, false, false, undefined>;
|
|
753
|
+
email: (desc?: string) => AxFluentFieldType<"string", false, undefined, false, false, undefined>;
|
|
740
754
|
code: (language?: string, desc?: string) => AxFluentFieldType<"code", false, undefined, false, false, undefined>;
|
|
741
755
|
object: <TFields extends Record<string, AxFluentFieldInfo<any, any, any, any, any, any> | AxFluentFieldType<any, any, any, any, any, any>>>(fields: TFields & ValidateNoMediaTypes<TFields>, desc?: string) => AxFluentFieldType<"object", false, undefined, false, false, TFields>;
|
|
742
756
|
};
|
|
@@ -1011,6 +1025,11 @@ declare class AxMemory implements AxAIMemory {
|
|
|
1011
1025
|
params?: string | object;
|
|
1012
1026
|
};
|
|
1013
1027
|
}[];
|
|
1028
|
+
thoughtBlock?: {
|
|
1029
|
+
data: string;
|
|
1030
|
+
signature?: string;
|
|
1031
|
+
encrypted?: boolean;
|
|
1032
|
+
};
|
|
1014
1033
|
cache?: boolean;
|
|
1015
1034
|
} | {
|
|
1016
1035
|
role: "function";
|
|
@@ -3664,7 +3683,7 @@ type AxAIGoogleGeminiContent = {
|
|
|
3664
3683
|
};
|
|
3665
3684
|
type AxAIGoogleGeminiContentPart = {
|
|
3666
3685
|
thought?: boolean;
|
|
3667
|
-
|
|
3686
|
+
thought_signature?: string;
|
|
3668
3687
|
metadata?: {
|
|
3669
3688
|
videoMetadata: object;
|
|
3670
3689
|
};
|