@isdk/ai-tool 0.0.8 → 0.0.9
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/README.cn.md +49 -15
- package/README.md +245 -2
- package/dist/chunk-PDXMSKQH.mjs +1 -0
- package/dist/funcs.js +1 -1
- package/dist/funcs.mjs +1 -1
- package/dist/index.d.mts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/docs/README.md +245 -2
- package/docs/classes/AbortError.md +8 -8
- package/docs/classes/AlreadyExistsError.md +8 -8
- package/docs/classes/BaseError.md +8 -8
- package/docs/classes/CancelableAbility.md +20 -20
- package/docs/classes/ClientTools.md +53 -53
- package/docs/classes/CommonError.md +8 -8
- package/docs/classes/EventClient.md +75 -75
- package/docs/classes/EventServer.md +73 -73
- package/docs/classes/EventToolFunc.md +43 -43
- package/docs/classes/FStringPromptTemplate.md +18 -18
- package/docs/classes/FewShotPromptTemplate.md +22 -22
- package/docs/classes/GolangPromptTemplate.md +18 -18
- package/docs/classes/HFEnvironment.md +9 -9
- package/docs/classes/HFInterpreter.md +39 -17
- package/docs/classes/HFTemplate.md +4 -4
- package/docs/classes/HfPromptTemplate.md +18 -18
- package/docs/classes/IntSet.md +12 -12
- package/docs/classes/NotFoundError.md +8 -8
- package/docs/classes/NotImplementationError.md +8 -8
- package/docs/classes/PromptExampleSelector.md +8 -8
- package/docs/classes/PromptTemplate.md +17 -17
- package/docs/classes/ReadableStreamError.md +8 -8
- package/docs/classes/ResClientTools.md +59 -59
- package/docs/classes/ResServerTools.md +57 -57
- package/docs/classes/SSEChannel.md +15 -15
- package/docs/classes/Semaphore.md +14 -14
- package/docs/classes/ServerTools.md +50 -50
- package/docs/classes/TaskAbortController.md +7 -7
- package/docs/classes/ToolFunc.md +40 -40
- package/docs/enums/AsyncFeatureBits.md +3 -3
- package/docs/enums/AsyncFeatures.md +3 -3
- package/docs/enums/ErrorCode.md +21 -21
- package/docs/enums/XXHashAlgorithm.md +2 -2
- package/docs/interfaces/AIChatAssistantMessageParam.md +6 -6
- package/docs/interfaces/AIChatContentPartImage.md +2 -2
- package/docs/interfaces/AIChatContentPartText.md +2 -2
- package/docs/interfaces/AIChatMessageParamBase.md +1 -1
- package/docs/interfaces/AIChatMessageToolCall.md +3 -3
- package/docs/interfaces/AIChatSystemMessageParam.md +3 -3
- package/docs/interfaces/AIChatToolMessageParam.md +4 -4
- package/docs/interfaces/AIChatUserMessageParam.md +7 -7
- package/docs/interfaces/AIResult.md +5 -5
- package/docs/interfaces/AIStreamParser.md +1 -1
- package/docs/interfaces/AIStreamParserOptions.md +1 -1
- package/docs/interfaces/BaseFunc.md +7 -7
- package/docs/interfaces/BaseFuncItem.md +6 -6
- package/docs/interfaces/CancelableAbilityOptions.md +2 -2
- package/docs/interfaces/ClientFuncItem.md +10 -10
- package/docs/interfaces/DotenvExpandOptions.md +3 -3
- package/docs/interfaces/DotenvExpandOutput.md +2 -2
- package/docs/interfaces/EventClientFuncParams.md +4 -4
- package/docs/interfaces/EventServerFuncParams.md +5 -5
- package/docs/interfaces/FewShotPromptTemplateOptions.md +11 -11
- package/docs/interfaces/FuncItem.md +7 -7
- package/docs/interfaces/FuncParam.md +6 -6
- package/docs/interfaces/PromptExampleSelectorOptions.md +2 -2
- package/docs/interfaces/PromptTemplateOptions.md +6 -6
- package/docs/interfaces/RemoteFuncItem.md +10 -10
- package/docs/interfaces/ResClientFuncParams.md +2 -2
- package/docs/interfaces/ResServerFuncParams.md +5 -5
- package/docs/interfaces/SanitizeFilenameOptions.md +2 -2
- package/docs/interfaces/ServerFuncItem.md +11 -11
- package/docs/interfaces/ServerFuncParams.md +2 -2
- package/docs/interfaces/StreamCallbacksAndOptions.md +4 -4
- package/docs/interfaces/TaskPromise.md +1 -1
- package/docs/interfaces/ToolFuncPackage.md +3 -3
- package/docs/modules.md +127 -124
- package/package.json +1 -1
- package/dist/chunk-B7IE5ATQ.mjs +0 -1
package/docs/modules.md
CHANGED
|
@@ -785,7 +785,7 @@ node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/toDate.d.ts:33
|
|
|
785
785
|
|
|
786
786
|
#### Defined in
|
|
787
787
|
|
|
788
|
-
[packages/ai-tool/src/utils/chat.ts:74](https://github.com/isdk/ai-tool.js/blob/
|
|
788
|
+
[packages/ai-tool/src/utils/chat.ts:74](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L74)
|
|
789
789
|
|
|
790
790
|
___
|
|
791
791
|
|
|
@@ -795,7 +795,7 @@ ___
|
|
|
795
795
|
|
|
796
796
|
#### Defined in
|
|
797
797
|
|
|
798
|
-
[packages/ai-tool/src/utils/chat.ts:44](https://github.com/isdk/ai-tool.js/blob/
|
|
798
|
+
[packages/ai-tool/src/utils/chat.ts:44](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L44)
|
|
799
799
|
|
|
800
800
|
___
|
|
801
801
|
|
|
@@ -805,7 +805,7 @@ ___
|
|
|
805
805
|
|
|
806
806
|
#### Defined in
|
|
807
807
|
|
|
808
|
-
[packages/ai-tool/src/utils/chat.ts:42](https://github.com/isdk/ai-tool.js/blob/
|
|
808
|
+
[packages/ai-tool/src/utils/chat.ts:42](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L42)
|
|
809
809
|
|
|
810
810
|
___
|
|
811
811
|
|
|
@@ -815,7 +815,7 @@ ___
|
|
|
815
815
|
|
|
816
816
|
#### Defined in
|
|
817
817
|
|
|
818
|
-
[packages/ai-tool/src/utils/chat.ts:36](https://github.com/isdk/ai-tool.js/blob/
|
|
818
|
+
[packages/ai-tool/src/utils/chat.ts:36](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L36)
|
|
819
819
|
|
|
820
820
|
___
|
|
821
821
|
|
|
@@ -825,7 +825,7 @@ ___
|
|
|
825
825
|
|
|
826
826
|
#### Defined in
|
|
827
827
|
|
|
828
|
-
[packages/ai-tool/src/utils/consts.ts:10](https://github.com/isdk/ai-tool.js/blob/
|
|
828
|
+
[packages/ai-tool/src/utils/consts.ts:10](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L10)
|
|
829
829
|
|
|
830
830
|
___
|
|
831
831
|
|
|
@@ -849,7 +849,7 @@ ___
|
|
|
849
849
|
|
|
850
850
|
#### Defined in
|
|
851
851
|
|
|
852
|
-
[packages/ai-tool/src/utils/consts.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
852
|
+
[packages/ai-tool/src/utils/consts.ts:8](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L8)
|
|
853
853
|
|
|
854
854
|
___
|
|
855
855
|
|
|
@@ -859,7 +859,7 @@ ___
|
|
|
859
859
|
|
|
860
860
|
#### Defined in
|
|
861
861
|
|
|
862
|
-
[packages/ai-tool/src/utils/consts.ts:11](https://github.com/isdk/ai-tool.js/blob/
|
|
862
|
+
[packages/ai-tool/src/utils/consts.ts:11](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L11)
|
|
863
863
|
|
|
864
864
|
___
|
|
865
865
|
|
|
@@ -869,7 +869,7 @@ ___
|
|
|
869
869
|
|
|
870
870
|
#### Defined in
|
|
871
871
|
|
|
872
|
-
[packages/ai-tool/src/utils/chat.ts:13](https://github.com/isdk/ai-tool.js/blob/
|
|
872
|
+
[packages/ai-tool/src/utils/chat.ts:13](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L13)
|
|
873
873
|
|
|
874
874
|
___
|
|
875
875
|
|
|
@@ -879,7 +879,7 @@ ___
|
|
|
879
879
|
|
|
880
880
|
#### Defined in
|
|
881
881
|
|
|
882
|
-
[packages/ai-tool/src/utils/consts.ts:6](https://github.com/isdk/ai-tool.js/blob/
|
|
882
|
+
[packages/ai-tool/src/utils/consts.ts:6](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L6)
|
|
883
883
|
|
|
884
884
|
___
|
|
885
885
|
|
|
@@ -889,7 +889,7 @@ ___
|
|
|
889
889
|
|
|
890
890
|
#### Defined in
|
|
891
891
|
|
|
892
|
-
[packages/ai-tool/src/utils/cancelable-ability.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
892
|
+
[packages/ai-tool/src/utils/cancelable-ability.ts:8](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/cancelable-ability.ts#L8)
|
|
893
893
|
|
|
894
894
|
___
|
|
895
895
|
|
|
@@ -899,7 +899,7 @@ ___
|
|
|
899
899
|
|
|
900
900
|
#### Defined in
|
|
901
901
|
|
|
902
|
-
[packages/ai-tool/src/utils/base-error.ts:3](https://github.com/isdk/ai-tool.js/blob/
|
|
902
|
+
[packages/ai-tool/src/utils/base-error.ts:3](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/base-error.ts#L3)
|
|
903
903
|
|
|
904
904
|
___
|
|
905
905
|
|
|
@@ -926,7 +926,7 @@ ___
|
|
|
926
926
|
|
|
927
927
|
#### Defined in
|
|
928
928
|
|
|
929
|
-
[packages/ai-tool/src/utils/event/event-ability.ts:9](https://github.com/isdk/ai-tool.js/blob/
|
|
929
|
+
[packages/ai-tool/src/utils/event/event-ability.ts:9](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/event/event-ability.ts#L9)
|
|
930
930
|
|
|
931
931
|
___
|
|
932
932
|
|
|
@@ -952,7 +952,7 @@ ___
|
|
|
952
952
|
|
|
953
953
|
#### Defined in
|
|
954
954
|
|
|
955
|
-
[packages/ai-tool/src/utils/event/event-ability.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
955
|
+
[packages/ai-tool/src/utils/event/event-ability.ts:8](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/event/event-ability.ts#L8)
|
|
956
956
|
|
|
957
957
|
___
|
|
958
958
|
|
|
@@ -965,7 +965,7 @@ a literal text or a variable name.
|
|
|
965
965
|
|
|
966
966
|
#### Defined in
|
|
967
967
|
|
|
968
|
-
[packages/ai-tool/src/utils/prompt/template/python.ts:6](https://github.com/isdk/ai-tool.js/blob/
|
|
968
|
+
[packages/ai-tool/src/utils/prompt/template/python.ts:6](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/template/python.ts#L6)
|
|
969
969
|
|
|
970
970
|
___
|
|
971
971
|
|
|
@@ -975,7 +975,7 @@ ___
|
|
|
975
975
|
|
|
976
976
|
#### Defined in
|
|
977
977
|
|
|
978
|
-
[packages/ai-tool/src/tool-func.ts:24](https://github.com/isdk/ai-tool.js/blob/
|
|
978
|
+
[packages/ai-tool/src/tool-func.ts:24](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/tool-func.ts#L24)
|
|
979
979
|
|
|
980
980
|
___
|
|
981
981
|
|
|
@@ -991,7 +991,7 @@ ___
|
|
|
991
991
|
|
|
992
992
|
#### Defined in
|
|
993
993
|
|
|
994
|
-
[packages/ai-tool/src/utils/prompt/prompt-example-selector.ts:3](https://github.com/isdk/ai-tool.js/blob/
|
|
994
|
+
[packages/ai-tool/src/utils/prompt/prompt-example-selector.ts:3](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/prompt-example-selector.ts#L3)
|
|
995
995
|
|
|
996
996
|
___
|
|
997
997
|
|
|
@@ -1001,7 +1001,7 @@ ___
|
|
|
1001
1001
|
|
|
1002
1002
|
#### Defined in
|
|
1003
1003
|
|
|
1004
|
-
[packages/ai-tool/src/utils/prompt/consts.ts:17](https://github.com/isdk/ai-tool.js/blob/
|
|
1004
|
+
[packages/ai-tool/src/utils/prompt/consts.ts:17](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/consts.ts#L17)
|
|
1005
1005
|
|
|
1006
1006
|
___
|
|
1007
1007
|
|
|
@@ -1011,7 +1011,7 @@ ___
|
|
|
1011
1011
|
|
|
1012
1012
|
#### Defined in
|
|
1013
1013
|
|
|
1014
|
-
[packages/ai-tool/src/utils/prompt/consts.ts:10](https://github.com/isdk/ai-tool.js/blob/
|
|
1014
|
+
[packages/ai-tool/src/utils/prompt/consts.ts:10](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/consts.ts#L10)
|
|
1015
1015
|
|
|
1016
1016
|
___
|
|
1017
1017
|
|
|
@@ -1036,7 +1036,7 @@ ___
|
|
|
1036
1036
|
|
|
1037
1037
|
#### Defined in
|
|
1038
1038
|
|
|
1039
|
-
[packages/ai-tool/src/tool-func.ts:38](https://github.com/isdk/ai-tool.js/blob/
|
|
1039
|
+
[packages/ai-tool/src/tool-func.ts:38](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/tool-func.ts#L38)
|
|
1040
1040
|
|
|
1041
1041
|
___
|
|
1042
1042
|
|
|
@@ -1046,7 +1046,7 @@ ___
|
|
|
1046
1046
|
|
|
1047
1047
|
#### Defined in
|
|
1048
1048
|
|
|
1049
|
-
[packages/ai-tool/src/utils/chat.ts:41](https://github.com/isdk/ai-tool.js/blob/
|
|
1049
|
+
[packages/ai-tool/src/utils/chat.ts:41](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L41)
|
|
1050
1050
|
|
|
1051
1051
|
___
|
|
1052
1052
|
|
|
@@ -1056,7 +1056,7 @@ ___
|
|
|
1056
1056
|
|
|
1057
1057
|
#### Defined in
|
|
1058
1058
|
|
|
1059
|
-
[packages/ai-tool/src/utils/chat.ts:35](https://github.com/isdk/ai-tool.js/blob/
|
|
1059
|
+
[packages/ai-tool/src/utils/chat.ts:35](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L35)
|
|
1060
1060
|
|
|
1061
1061
|
___
|
|
1062
1062
|
|
|
@@ -1066,7 +1066,7 @@ ___
|
|
|
1066
1066
|
|
|
1067
1067
|
#### Defined in
|
|
1068
1068
|
|
|
1069
|
-
[packages/ai-tool/src/utils/chat.ts:4](https://github.com/isdk/ai-tool.js/blob/
|
|
1069
|
+
[packages/ai-tool/src/utils/chat.ts:4](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L4)
|
|
1070
1070
|
|
|
1071
1071
|
___
|
|
1072
1072
|
|
|
@@ -1076,7 +1076,7 @@ ___
|
|
|
1076
1076
|
|
|
1077
1077
|
#### Defined in
|
|
1078
1078
|
|
|
1079
|
-
[packages/ai-tool/src/utils/base-error.ts:33](https://github.com/isdk/ai-tool.js/blob/
|
|
1079
|
+
[packages/ai-tool/src/utils/base-error.ts:33](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/base-error.ts#L33)
|
|
1080
1080
|
|
|
1081
1081
|
___
|
|
1082
1082
|
|
|
@@ -1086,7 +1086,7 @@ ___
|
|
|
1086
1086
|
|
|
1087
1087
|
#### Defined in
|
|
1088
1088
|
|
|
1089
|
-
[packages/ai-tool/src/utils/consts.ts:5](https://github.com/isdk/ai-tool.js/blob/
|
|
1089
|
+
[packages/ai-tool/src/utils/consts.ts:5](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L5)
|
|
1090
1090
|
|
|
1091
1091
|
___
|
|
1092
1092
|
|
|
@@ -1096,7 +1096,7 @@ ___
|
|
|
1096
1096
|
|
|
1097
1097
|
#### Defined in
|
|
1098
1098
|
|
|
1099
|
-
[packages/ai-tool/src/utils/base-error.ts:32](https://github.com/isdk/ai-tool.js/blob/
|
|
1099
|
+
[packages/ai-tool/src/utils/base-error.ts:32](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/base-error.ts#L32)
|
|
1100
1100
|
|
|
1101
1101
|
___
|
|
1102
1102
|
|
|
@@ -1124,7 +1124,7 @@ ___
|
|
|
1124
1124
|
|
|
1125
1125
|
#### Defined in
|
|
1126
1126
|
|
|
1127
|
-
[packages/ai-tool/src/client-tools.ts:153](https://github.com/isdk/ai-tool.js/blob/
|
|
1127
|
+
[packages/ai-tool/src/client-tools.ts:153](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/client-tools.ts#L153)
|
|
1128
1128
|
|
|
1129
1129
|
___
|
|
1130
1130
|
|
|
@@ -1134,7 +1134,7 @@ ___
|
|
|
1134
1134
|
|
|
1135
1135
|
#### Defined in
|
|
1136
1136
|
|
|
1137
|
-
[packages/ai-tool/src/utils/async-semaphore.ts:6](https://github.com/isdk/ai-tool.js/blob/
|
|
1137
|
+
[packages/ai-tool/src/utils/async-semaphore.ts:6](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/async-semaphore.ts#L6)
|
|
1138
1138
|
|
|
1139
1139
|
___
|
|
1140
1140
|
|
|
@@ -1144,7 +1144,7 @@ ___
|
|
|
1144
1144
|
|
|
1145
1145
|
#### Defined in
|
|
1146
1146
|
|
|
1147
|
-
[packages/ai-tool/src/utils/event/event-ability.ts:7](https://github.com/isdk/ai-tool.js/blob/
|
|
1147
|
+
[packages/ai-tool/src/utils/event/event-ability.ts:7](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/event/event-ability.ts#L7)
|
|
1148
1148
|
|
|
1149
1149
|
___
|
|
1150
1150
|
|
|
@@ -1154,7 +1154,7 @@ ___
|
|
|
1154
1154
|
|
|
1155
1155
|
#### Defined in
|
|
1156
1156
|
|
|
1157
|
-
[packages/ai-tool/src/utils/event/event-ability.ts:6](https://github.com/isdk/ai-tool.js/blob/
|
|
1157
|
+
[packages/ai-tool/src/utils/event/event-ability.ts:6](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/event/event-ability.ts#L6)
|
|
1158
1158
|
|
|
1159
1159
|
___
|
|
1160
1160
|
|
|
@@ -1167,7 +1167,7 @@ do not use /g global option here: when the regex is executed multiple times, it
|
|
|
1167
1167
|
|
|
1168
1168
|
#### Defined in
|
|
1169
1169
|
|
|
1170
|
-
[packages/ai-tool/src/utils/filename.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
1170
|
+
[packages/ai-tool/src/utils/filename.ts:8](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L8)
|
|
1171
1171
|
|
|
1172
1172
|
___
|
|
1173
1173
|
|
|
@@ -1181,10 +1181,11 @@ ___
|
|
|
1181
1181
|
| :------ | :------ |
|
|
1182
1182
|
| `randomInt` | (`to`: `number`, `from`: `number`) => `number` |
|
|
1183
1183
|
| `select` | (`obj`: `any`, `index?`: `string` \| `number`) => `any` |
|
|
1184
|
+
| `tojson` | (`value`: `any`, `indent?`: `string` \| `number` \| \{ `indent?`: `string` \| `number` }) => `string` |
|
|
1184
1185
|
|
|
1185
1186
|
#### Defined in
|
|
1186
1187
|
|
|
1187
|
-
[packages/ai-tool/src/utils/prompt/template/jinja/src/builtins.ts:
|
|
1188
|
+
[packages/ai-tool/src/utils/prompt/template/jinja/src/builtins.ts:59](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/template/jinja/src/builtins.ts#L59)
|
|
1188
1189
|
|
|
1189
1190
|
___
|
|
1190
1191
|
|
|
@@ -1194,7 +1195,7 @@ ___
|
|
|
1194
1195
|
|
|
1195
1196
|
#### Defined in
|
|
1196
1197
|
|
|
1197
|
-
[packages/ai-tool/src/utils/base-error.ts:29](https://github.com/isdk/ai-tool.js/blob/
|
|
1198
|
+
[packages/ai-tool/src/utils/base-error.ts:29](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/base-error.ts#L29)
|
|
1198
1199
|
|
|
1199
1200
|
___
|
|
1200
1201
|
|
|
@@ -1204,7 +1205,7 @@ ___
|
|
|
1204
1205
|
|
|
1205
1206
|
#### Defined in
|
|
1206
1207
|
|
|
1207
|
-
[packages/ai-tool/src/utils/base-error.ts:31](https://github.com/isdk/ai-tool.js/blob/
|
|
1208
|
+
[packages/ai-tool/src/utils/base-error.ts:31](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/base-error.ts#L31)
|
|
1208
1209
|
|
|
1209
1210
|
___
|
|
1210
1211
|
|
|
@@ -1214,7 +1215,7 @@ ___
|
|
|
1214
1215
|
|
|
1215
1216
|
#### Defined in
|
|
1216
1217
|
|
|
1217
|
-
[packages/ai-tool/src/utils/base-error.ts:30](https://github.com/isdk/ai-tool.js/blob/
|
|
1218
|
+
[packages/ai-tool/src/utils/base-error.ts:30](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/base-error.ts#L30)
|
|
1218
1219
|
|
|
1219
1220
|
___
|
|
1220
1221
|
|
|
@@ -1224,7 +1225,7 @@ ___
|
|
|
1224
1225
|
|
|
1225
1226
|
#### Defined in
|
|
1226
1227
|
|
|
1227
|
-
[packages/ai-tool/src/utils/consts.ts:3](https://github.com/isdk/ai-tool.js/blob/
|
|
1228
|
+
[packages/ai-tool/src/utils/consts.ts:3](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L3)
|
|
1228
1229
|
|
|
1229
1230
|
___
|
|
1230
1231
|
|
|
@@ -1234,7 +1235,7 @@ ___
|
|
|
1234
1235
|
|
|
1235
1236
|
#### Defined in
|
|
1236
1237
|
|
|
1237
|
-
[packages/ai-tool/src/utils/prompt/consts.ts:12](https://github.com/isdk/ai-tool.js/blob/
|
|
1238
|
+
[packages/ai-tool/src/utils/prompt/consts.ts:12](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/consts.ts#L12)
|
|
1238
1239
|
|
|
1239
1240
|
___
|
|
1240
1241
|
|
|
@@ -1247,7 +1248,7 @@ defaults to `chat`
|
|
|
1247
1248
|
|
|
1248
1249
|
#### Defined in
|
|
1249
1250
|
|
|
1250
|
-
[packages/ai-tool/src/utils/prompt/consts.ts:5](https://github.com/isdk/ai-tool.js/blob/
|
|
1251
|
+
[packages/ai-tool/src/utils/prompt/consts.ts:5](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/consts.ts#L5)
|
|
1251
1252
|
|
|
1252
1253
|
___
|
|
1253
1254
|
|
|
@@ -1257,7 +1258,7 @@ ___
|
|
|
1257
1258
|
|
|
1258
1259
|
#### Defined in
|
|
1259
1260
|
|
|
1260
|
-
[packages/ai-tool/src/utils/stream/error-readable-stream.ts:3](https://github.com/isdk/ai-tool.js/blob/
|
|
1261
|
+
[packages/ai-tool/src/utils/stream/error-readable-stream.ts:3](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/stream/error-readable-stream.ts#L3)
|
|
1261
1262
|
|
|
1262
1263
|
___
|
|
1263
1264
|
|
|
@@ -1285,7 +1286,7 @@ ___
|
|
|
1285
1286
|
|
|
1286
1287
|
#### Defined in
|
|
1287
1288
|
|
|
1288
|
-
[packages/ai-tool/src/utils/consts.ts:13](https://github.com/isdk/ai-tool.js/blob/
|
|
1289
|
+
[packages/ai-tool/src/utils/consts.ts:13](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L13)
|
|
1289
1290
|
|
|
1290
1291
|
___
|
|
1291
1292
|
|
|
@@ -1303,7 +1304,7 @@ ___
|
|
|
1303
1304
|
|
|
1304
1305
|
#### Defined in
|
|
1305
1306
|
|
|
1306
|
-
[packages/ai-tool/src/res-client-tools.ts:68](https://github.com/isdk/ai-tool.js/blob/
|
|
1307
|
+
[packages/ai-tool/src/res-client-tools.ts:68](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/res-client-tools.ts#L68)
|
|
1307
1308
|
|
|
1308
1309
|
___
|
|
1309
1310
|
|
|
@@ -1320,7 +1321,7 @@ ___
|
|
|
1320
1321
|
|
|
1321
1322
|
#### Defined in
|
|
1322
1323
|
|
|
1323
|
-
[packages/ai-tool/src/res-server-tools.ts:77](https://github.com/isdk/ai-tool.js/blob/
|
|
1324
|
+
[packages/ai-tool/src/res-server-tools.ts:77](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/res-server-tools.ts#L77)
|
|
1324
1325
|
|
|
1325
1326
|
___
|
|
1326
1327
|
|
|
@@ -1330,7 +1331,7 @@ ___
|
|
|
1330
1331
|
|
|
1331
1332
|
#### Defined in
|
|
1332
1333
|
|
|
1333
|
-
[packages/ai-tool/src/utils/stream/error-readable-stream.ts:4](https://github.com/isdk/ai-tool.js/blob/
|
|
1334
|
+
[packages/ai-tool/src/utils/stream/error-readable-stream.ts:4](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/stream/error-readable-stream.ts#L4)
|
|
1334
1335
|
|
|
1335
1336
|
___
|
|
1336
1337
|
|
|
@@ -1340,7 +1341,7 @@ ___
|
|
|
1340
1341
|
|
|
1341
1342
|
#### Defined in
|
|
1342
1343
|
|
|
1343
|
-
[packages/ai-tool/src/utils/event/sse-channel.ts:17](https://github.com/isdk/ai-tool.js/blob/
|
|
1344
|
+
[packages/ai-tool/src/utils/event/sse-channel.ts:17](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/event/sse-channel.ts#L17)
|
|
1344
1345
|
|
|
1345
1346
|
___
|
|
1346
1347
|
|
|
@@ -1368,7 +1369,7 @@ ___
|
|
|
1368
1369
|
|
|
1369
1370
|
#### Defined in
|
|
1370
1371
|
|
|
1371
|
-
[packages/ai-tool/src/server-tools.ts:66](https://github.com/isdk/ai-tool.js/blob/
|
|
1372
|
+
[packages/ai-tool/src/server-tools.ts:66](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/server-tools.ts#L66)
|
|
1372
1373
|
|
|
1373
1374
|
___
|
|
1374
1375
|
|
|
@@ -1378,7 +1379,7 @@ ___
|
|
|
1378
1379
|
|
|
1379
1380
|
#### Defined in
|
|
1380
1381
|
|
|
1381
|
-
[packages/ai-tool/src/tool-func.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
1382
|
+
[packages/ai-tool/src/tool-func.ts:8](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/tool-func.ts#L8)
|
|
1382
1383
|
|
|
1383
1384
|
___
|
|
1384
1385
|
|
|
@@ -1388,7 +1389,7 @@ ___
|
|
|
1388
1389
|
|
|
1389
1390
|
#### Defined in
|
|
1390
1391
|
|
|
1391
|
-
[packages/ai-tool/src/tool-func.ts:7](https://github.com/isdk/ai-tool.js/blob/
|
|
1392
|
+
[packages/ai-tool/src/tool-func.ts:7](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/tool-func.ts#L7)
|
|
1392
1393
|
|
|
1393
1394
|
___
|
|
1394
1395
|
|
|
@@ -1398,7 +1399,7 @@ ___
|
|
|
1398
1399
|
|
|
1399
1400
|
#### Defined in
|
|
1400
1401
|
|
|
1401
|
-
[packages/ai-tool/src/tool-func.ts:9](https://github.com/isdk/ai-tool.js/blob/
|
|
1402
|
+
[packages/ai-tool/src/tool-func.ts:9](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/tool-func.ts#L9)
|
|
1402
1403
|
|
|
1403
1404
|
___
|
|
1404
1405
|
|
|
@@ -1433,7 +1434,7 @@ ___
|
|
|
1433
1434
|
|
|
1434
1435
|
#### Defined in
|
|
1435
1436
|
|
|
1436
|
-
[packages/ai-tool/src/tool-func.ts:342](https://github.com/isdk/ai-tool.js/blob/
|
|
1437
|
+
[packages/ai-tool/src/tool-func.ts:342](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/tool-func.ts#L342)
|
|
1437
1438
|
|
|
1438
1439
|
___
|
|
1439
1440
|
|
|
@@ -1445,7 +1446,7 @@ Regular expression pattern for reserved names on Windows systems.
|
|
|
1445
1446
|
|
|
1446
1447
|
#### Defined in
|
|
1447
1448
|
|
|
1448
|
-
[packages/ai-tool/src/utils/filename.ts:13](https://github.com/isdk/ai-tool.js/blob/
|
|
1449
|
+
[packages/ai-tool/src/utils/filename.ts:13](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L13)
|
|
1449
1450
|
|
|
1450
1451
|
___
|
|
1451
1452
|
|
|
@@ -1455,7 +1456,7 @@ ___
|
|
|
1455
1456
|
|
|
1456
1457
|
#### Defined in
|
|
1457
1458
|
|
|
1458
|
-
[packages/ai-tool/src/utils/hash/xxhash.ts:5](https://github.com/isdk/ai-tool.js/blob/
|
|
1459
|
+
[packages/ai-tool/src/utils/hash/xxhash.ts:5](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/hash/xxhash.ts#L5)
|
|
1459
1460
|
|
|
1460
1461
|
___
|
|
1461
1462
|
|
|
@@ -1465,7 +1466,7 @@ ___
|
|
|
1465
1466
|
|
|
1466
1467
|
#### Defined in
|
|
1467
1468
|
|
|
1468
|
-
[packages/ai-tool/src/utils/prompt/prompt-template.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
1469
|
+
[packages/ai-tool/src/utils/prompt/prompt-template.ts:8](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/prompt-template.ts#L8)
|
|
1469
1470
|
|
|
1470
1471
|
___
|
|
1471
1472
|
|
|
@@ -1475,7 +1476,7 @@ ___
|
|
|
1475
1476
|
|
|
1476
1477
|
#### Defined in
|
|
1477
1478
|
|
|
1478
|
-
[packages/ai-tool/src/funcs/event.ts:22](https://github.com/isdk/ai-tool.js/blob/
|
|
1479
|
+
[packages/ai-tool/src/funcs/event.ts:22](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/funcs/event.ts#L22)
|
|
1479
1480
|
|
|
1480
1481
|
___
|
|
1481
1482
|
|
|
@@ -1485,7 +1486,7 @@ ___
|
|
|
1485
1486
|
|
|
1486
1487
|
#### Defined in
|
|
1487
1488
|
|
|
1488
|
-
[packages/ai-tool/src/funcs/event-client.ts:180](https://github.com/isdk/ai-tool.js/blob/
|
|
1489
|
+
[packages/ai-tool/src/funcs/event-client.ts:180](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/funcs/event-client.ts#L180)
|
|
1489
1490
|
|
|
1490
1491
|
___
|
|
1491
1492
|
|
|
@@ -1495,7 +1496,7 @@ ___
|
|
|
1495
1496
|
|
|
1496
1497
|
#### Defined in
|
|
1497
1498
|
|
|
1498
|
-
[packages/ai-tool/src/funcs/event-server.ts:133](https://github.com/isdk/ai-tool.js/blob/
|
|
1499
|
+
[packages/ai-tool/src/funcs/event-server.ts:133](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/funcs/event-server.ts#L133)
|
|
1499
1500
|
|
|
1500
1501
|
___
|
|
1501
1502
|
|
|
@@ -1505,7 +1506,7 @@ ___
|
|
|
1505
1506
|
|
|
1506
1507
|
#### Defined in
|
|
1507
1508
|
|
|
1508
|
-
[packages/ai-tool/src/funcs/lrucache.ts:40](https://github.com/isdk/ai-tool.js/blob/
|
|
1509
|
+
[packages/ai-tool/src/funcs/lrucache.ts:40](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/funcs/lrucache.ts#L40)
|
|
1509
1510
|
|
|
1510
1511
|
___
|
|
1511
1512
|
|
|
@@ -1570,7 +1571,7 @@ Will throw an error if the response is not OK.
|
|
|
1570
1571
|
|
|
1571
1572
|
#### Defined in
|
|
1572
1573
|
|
|
1573
|
-
[packages/ai-tool/src/utils/stream/ai-stream.ts:122](https://github.com/isdk/ai-tool.js/blob/
|
|
1574
|
+
[packages/ai-tool/src/utils/stream/ai-stream.ts:122](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/stream/ai-stream.ts#L122)
|
|
1574
1575
|
|
|
1575
1576
|
___
|
|
1576
1577
|
|
|
@@ -1601,7 +1602,7 @@ Creates a rate limiter function that blocks with a promise whenever the rate lim
|
|
|
1601
1602
|
|
|
1602
1603
|
#### Defined in
|
|
1603
1604
|
|
|
1604
|
-
[packages/ai-tool/src/utils/async-semaphore.ts:347](https://github.com/isdk/ai-tool.js/blob/
|
|
1605
|
+
[packages/ai-tool/src/utils/async-semaphore.ts:347](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/async-semaphore.ts#L347)
|
|
1605
1606
|
|
|
1606
1607
|
___
|
|
1607
1608
|
|
|
@@ -1625,7 +1626,7 @@ ___
|
|
|
1625
1626
|
|
|
1626
1627
|
#### Defined in
|
|
1627
1628
|
|
|
1628
|
-
[packages/ai-tool/src/funcs/lrucache.ts:6](https://github.com/isdk/ai-tool.js/blob/
|
|
1629
|
+
[packages/ai-tool/src/funcs/lrucache.ts:6](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/funcs/lrucache.ts#L6)
|
|
1629
1630
|
|
|
1630
1631
|
___
|
|
1631
1632
|
|
|
@@ -1646,7 +1647,7 @@ ___
|
|
|
1646
1647
|
|
|
1647
1648
|
#### Defined in
|
|
1648
1649
|
|
|
1649
|
-
[packages/ai-tool/src/utils/event/event-ability.ts:80](https://github.com/isdk/ai-tool.js/blob/
|
|
1650
|
+
[packages/ai-tool/src/utils/event/event-ability.ts:80](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/event/event-ability.ts#L80)
|
|
1650
1651
|
|
|
1651
1652
|
___
|
|
1652
1653
|
|
|
@@ -1812,7 +1813,7 @@ const transformer = createCallbacksTransformer(callbacks);
|
|
|
1812
1813
|
|
|
1813
1814
|
#### Defined in
|
|
1814
1815
|
|
|
1815
|
-
[packages/ai-tool/src/utils/stream/create-callbacks-stream.ts:36](https://github.com/isdk/ai-tool.js/blob/
|
|
1816
|
+
[packages/ai-tool/src/utils/stream/create-callbacks-stream.ts:36](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/stream/create-callbacks-stream.ts#L36)
|
|
1816
1817
|
|
|
1817
1818
|
___
|
|
1818
1819
|
|
|
@@ -1832,7 +1833,7 @@ An empty and closed ReadableStream instance.
|
|
|
1832
1833
|
|
|
1833
1834
|
#### Defined in
|
|
1834
1835
|
|
|
1835
|
-
[packages/ai-tool/src/utils/stream/create-empty-stream.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
1836
|
+
[packages/ai-tool/src/utils/stream/create-empty-stream.ts:8](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/stream/create-empty-stream.ts#L8)
|
|
1836
1837
|
|
|
1837
1838
|
___
|
|
1838
1839
|
|
|
@@ -1864,7 +1865,7 @@ ___
|
|
|
1864
1865
|
|
|
1865
1866
|
#### Defined in
|
|
1866
1867
|
|
|
1867
|
-
[packages/ai-tool/src/utils/end-with-repeated-sequence.ts:3](https://github.com/isdk/ai-tool.js/blob/
|
|
1868
|
+
[packages/ai-tool/src/utils/end-with-repeated-sequence.ts:3](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/end-with-repeated-sequence.ts#L3)
|
|
1868
1869
|
|
|
1869
1870
|
___
|
|
1870
1871
|
|
|
@@ -1890,7 +1891,7 @@ Error object
|
|
|
1890
1891
|
|
|
1891
1892
|
#### Defined in
|
|
1892
1893
|
|
|
1893
|
-
[packages/ai-tool/src/utils/base-error.ts:220](https://github.com/isdk/ai-tool.js/blob/
|
|
1894
|
+
[packages/ai-tool/src/utils/base-error.ts:220](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/base-error.ts#L220)
|
|
1894
1895
|
|
|
1895
1896
|
___
|
|
1896
1897
|
|
|
@@ -1921,7 +1922,7 @@ TransformStream parsing events.
|
|
|
1921
1922
|
|
|
1922
1923
|
#### Defined in
|
|
1923
1924
|
|
|
1924
|
-
[packages/ai-tool/src/utils/stream/ai-stream.ts:37](https://github.com/isdk/ai-tool.js/blob/
|
|
1925
|
+
[packages/ai-tool/src/utils/stream/ai-stream.ts:37](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/stream/ai-stream.ts#L37)
|
|
1925
1926
|
|
|
1926
1927
|
___
|
|
1927
1928
|
|
|
@@ -1953,7 +1954,7 @@ ___
|
|
|
1953
1954
|
|
|
1954
1955
|
#### Defined in
|
|
1955
1956
|
|
|
1956
|
-
[packages/ai-tool/src/utils/prompt/hf-prompt-template.ts:148](https://github.com/isdk/ai-tool.js/blob/
|
|
1957
|
+
[packages/ai-tool/src/utils/prompt/hf-prompt-template.ts:148](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/hf-prompt-template.ts#L148)
|
|
1957
1958
|
|
|
1958
1959
|
___
|
|
1959
1960
|
|
|
@@ -1974,7 +1975,7 @@ ___
|
|
|
1974
1975
|
|
|
1975
1976
|
#### Defined in
|
|
1976
1977
|
|
|
1977
|
-
[packages/ai-tool/src/funcs/lrucache.ts:22](https://github.com/isdk/ai-tool.js/blob/
|
|
1978
|
+
[packages/ai-tool/src/funcs/lrucache.ts:22](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/funcs/lrucache.ts#L22)
|
|
1978
1979
|
|
|
1979
1980
|
___
|
|
1980
1981
|
|
|
@@ -1995,7 +1996,7 @@ ___
|
|
|
1995
1996
|
|
|
1996
1997
|
#### Defined in
|
|
1997
1998
|
|
|
1998
|
-
[packages/ai-tool/src/utils/to-datetime.ts:29](https://github.com/isdk/ai-tool.js/blob/
|
|
1999
|
+
[packages/ai-tool/src/utils/to-datetime.ts:29](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/to-datetime.ts#L29)
|
|
1999
2000
|
|
|
2000
2001
|
___
|
|
2001
2002
|
|
|
@@ -2034,7 +2035,7 @@ console.log(process.env.HELLO) // undefined
|
|
|
2034
2035
|
|
|
2035
2036
|
#### Defined in
|
|
2036
2037
|
|
|
2037
|
-
[packages/ai-tool/src/utils/prompt/template/env.ts:82](https://github.com/isdk/ai-tool.js/blob/
|
|
2038
|
+
[packages/ai-tool/src/utils/prompt/template/env.ts:82](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/template/env.ts#L82)
|
|
2038
2039
|
|
|
2039
2040
|
___
|
|
2040
2041
|
|
|
@@ -2078,7 +2079,7 @@ const expandedObj = expandObjEnv(obj, { processEnv: myCustomEnv }); // Assuming
|
|
|
2078
2079
|
|
|
2079
2080
|
#### Defined in
|
|
2080
2081
|
|
|
2081
|
-
[packages/ai-tool/src/utils/prompt/template/env.ts:142](https://github.com/isdk/ai-tool.js/blob/
|
|
2082
|
+
[packages/ai-tool/src/utils/prompt/template/env.ts:142](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/template/env.ts#L142)
|
|
2082
2083
|
|
|
2083
2084
|
___
|
|
2084
2085
|
|
|
@@ -2118,7 +2119,7 @@ extNameLevel(".json5");
|
|
|
2118
2119
|
|
|
2119
2120
|
#### Defined in
|
|
2120
2121
|
|
|
2121
|
-
[packages/ai-tool/src/utils/filename.ts:209](https://github.com/isdk/ai-tool.js/blob/
|
|
2122
|
+
[packages/ai-tool/src/utils/filename.ts:209](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L209)
|
|
2122
2123
|
|
|
2123
2124
|
___
|
|
2124
2125
|
|
|
@@ -2137,7 +2138,7 @@ A compiled regular expression for reserved filename characters.
|
|
|
2137
2138
|
|
|
2138
2139
|
#### Defined in
|
|
2139
2140
|
|
|
2140
|
-
[packages/ai-tool/src/utils/filename.ts:42](https://github.com/isdk/ai-tool.js/blob/
|
|
2141
|
+
[packages/ai-tool/src/utils/filename.ts:42](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L42)
|
|
2141
2142
|
|
|
2142
2143
|
___
|
|
2143
2144
|
|
|
@@ -2167,7 +2168,7 @@ An array containing all string keys of the specified enumeration.
|
|
|
2167
2168
|
|
|
2168
2169
|
#### Defined in
|
|
2169
2170
|
|
|
2170
|
-
[packages/ai-tool/src/utils/get-all-enum-keys.ts:7](https://github.com/isdk/ai-tool.js/blob/
|
|
2171
|
+
[packages/ai-tool/src/utils/get-all-enum-keys.ts:7](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/get-all-enum-keys.ts#L7)
|
|
2171
2172
|
|
|
2172
2173
|
___
|
|
2173
2174
|
|
|
@@ -2188,7 +2189,7 @@ ___
|
|
|
2188
2189
|
|
|
2189
2190
|
#### Defined in
|
|
2190
2191
|
|
|
2191
|
-
[packages/ai-tool/src/utils/config.ts:56](https://github.com/isdk/ai-tool.js/blob/
|
|
2192
|
+
[packages/ai-tool/src/utils/config.ts:56](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/config.ts#L56)
|
|
2192
2193
|
|
|
2193
2194
|
___
|
|
2194
2195
|
|
|
@@ -2209,7 +2210,7 @@ ___
|
|
|
2209
2210
|
|
|
2210
2211
|
#### Defined in
|
|
2211
2212
|
|
|
2212
|
-
[packages/ai-tool/src/utils/config.ts:80](https://github.com/isdk/ai-tool.js/blob/
|
|
2213
|
+
[packages/ai-tool/src/utils/config.ts:80](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/config.ts#L80)
|
|
2213
2214
|
|
|
2214
2215
|
___
|
|
2215
2216
|
|
|
@@ -2246,7 +2247,7 @@ console.log(getKeysPath(obj)); // Output: ['a.b.c', 'd[0]', 'd[1].e']
|
|
|
2246
2247
|
|
|
2247
2248
|
#### Defined in
|
|
2248
2249
|
|
|
2249
|
-
[packages/ai-tool/src/utils/get-keys-path.ts:16](https://github.com/isdk/ai-tool.js/blob/
|
|
2250
|
+
[packages/ai-tool/src/utils/get-keys-path.ts:16](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/get-keys-path.ts#L16)
|
|
2250
2251
|
|
|
2251
2252
|
___
|
|
2252
2253
|
|
|
@@ -2271,7 +2272,7 @@ Returns a concatenated string of multiple extensions, or an empty string if no e
|
|
|
2271
2272
|
|
|
2272
2273
|
#### Defined in
|
|
2273
2274
|
|
|
2274
|
-
[packages/ai-tool/src/utils/filename.ts:174](https://github.com/isdk/ai-tool.js/blob/
|
|
2275
|
+
[packages/ai-tool/src/utils/filename.ts:174](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L174)
|
|
2275
2276
|
|
|
2276
2277
|
___
|
|
2277
2278
|
|
|
@@ -2302,7 +2303,7 @@ console.log(realPath); // Outputs the resolved path.
|
|
|
2302
2303
|
|
|
2303
2304
|
#### Defined in
|
|
2304
2305
|
|
|
2305
|
-
[packages/ai-tool/src/utils/load-file-from-paths.ts:
|
|
2306
|
+
[packages/ai-tool/src/utils/load-file-from-paths.ts:148](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/load-file-from-paths.ts#L148)
|
|
2306
2307
|
|
|
2307
2308
|
___
|
|
2308
2309
|
|
|
@@ -2322,7 +2323,7 @@ ___
|
|
|
2322
2323
|
|
|
2323
2324
|
#### Defined in
|
|
2324
2325
|
|
|
2325
|
-
[packages/ai-tool/src/utils/stream/error-readable-stream.ts:12](https://github.com/isdk/ai-tool.js/blob/
|
|
2326
|
+
[packages/ai-tool/src/utils/stream/error-readable-stream.ts:12](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/stream/error-readable-stream.ts#L12)
|
|
2326
2327
|
|
|
2327
2328
|
___
|
|
2328
2329
|
|
|
@@ -2345,7 +2346,7 @@ Operator precedence can be found here: https://developer.mozilla.org/en-US/docs/
|
|
|
2345
2346
|
|
|
2346
2347
|
#### Defined in
|
|
2347
2348
|
|
|
2348
|
-
[packages/ai-tool/src/utils/prompt/template/jinja/src/parser.ts:30](https://github.com/isdk/ai-tool.js/blob/
|
|
2349
|
+
[packages/ai-tool/src/utils/prompt/template/jinja/src/parser.ts:30](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/template/jinja/src/parser.ts#L30)
|
|
2349
2350
|
|
|
2350
2351
|
___
|
|
2351
2352
|
|
|
@@ -2368,7 +2369,7 @@ Generate a list of tokens from a source string.
|
|
|
2368
2369
|
|
|
2369
2370
|
#### Defined in
|
|
2370
2371
|
|
|
2371
|
-
[packages/ai-tool/src/utils/prompt/template/jinja/src/lexer.ts:189](https://github.com/isdk/ai-tool.js/blob/
|
|
2372
|
+
[packages/ai-tool/src/utils/prompt/template/jinja/src/lexer.ts:189](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/template/jinja/src/lexer.ts#L189)
|
|
2372
2373
|
|
|
2373
2374
|
___
|
|
2374
2375
|
|
|
@@ -2390,7 +2391,7 @@ ___
|
|
|
2390
2391
|
|
|
2391
2392
|
#### Defined in
|
|
2392
2393
|
|
|
2393
|
-
[packages/ai-tool/src/utils/prompt/template/env.ts:17](https://github.com/isdk/ai-tool.js/blob/
|
|
2394
|
+
[packages/ai-tool/src/utils/prompt/template/env.ts:17](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/template/env.ts#L17)
|
|
2394
2395
|
|
|
2395
2396
|
___
|
|
2396
2397
|
|
|
@@ -2415,7 +2416,7 @@ template have been replaced with their corresponding values.
|
|
|
2415
2416
|
|
|
2416
2417
|
#### Defined in
|
|
2417
2418
|
|
|
2418
|
-
[packages/ai-tool/src/utils/prompt/template/python.ts:71](https://github.com/isdk/ai-tool.js/blob/
|
|
2419
|
+
[packages/ai-tool/src/utils/prompt/template/python.ts:71](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/template/python.ts#L71)
|
|
2419
2420
|
|
|
2420
2421
|
___
|
|
2421
2422
|
|
|
@@ -2439,7 +2440,7 @@ Parse and interpolate template
|
|
|
2439
2440
|
|
|
2440
2441
|
#### Defined in
|
|
2441
2442
|
|
|
2442
|
-
[packages/ai-tool/src/utils/prompt/template/golang.ts:269](https://github.com/isdk/ai-tool.js/blob/
|
|
2443
|
+
[packages/ai-tool/src/utils/prompt/template/golang.ts:269](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/template/golang.ts#L269)
|
|
2443
2444
|
|
|
2444
2445
|
___
|
|
2445
2446
|
|
|
@@ -2478,7 +2479,7 @@ IsModelNameMatched("gpt-2", (modelName) => modelName.startsWith("gpt-")) // retu
|
|
|
2478
2479
|
|
|
2479
2480
|
#### Defined in
|
|
2480
2481
|
|
|
2481
|
-
[packages/ai-tool/src/utils/is-model-name-matched.ts:21](https://github.com/isdk/ai-tool.js/blob/
|
|
2482
|
+
[packages/ai-tool/src/utils/is-model-name-matched.ts:21](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/is-model-name-matched.ts#L21)
|
|
2482
2483
|
|
|
2483
2484
|
___
|
|
2484
2485
|
|
|
@@ -2513,7 +2514,7 @@ isValidFilename('my<file.txt'); // Returns false
|
|
|
2513
2514
|
|
|
2514
2515
|
#### Defined in
|
|
2515
2516
|
|
|
2516
|
-
[packages/ai-tool/src/utils/filename.ts:63](https://github.com/isdk/ai-tool.js/blob/
|
|
2517
|
+
[packages/ai-tool/src/utils/filename.ts:63](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L63)
|
|
2517
2518
|
|
|
2518
2519
|
___
|
|
2519
2520
|
|
|
@@ -2537,7 +2538,7 @@ A boolean indicating whether the filepath is valid. Returns true if valid; false
|
|
|
2537
2538
|
|
|
2538
2539
|
#### Defined in
|
|
2539
2540
|
|
|
2540
|
-
[packages/ai-tool/src/utils/filename.ts:72](https://github.com/isdk/ai-tool.js/blob/
|
|
2541
|
+
[packages/ai-tool/src/utils/filename.ts:72](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L72)
|
|
2541
2542
|
|
|
2542
2543
|
___
|
|
2543
2544
|
|
|
@@ -2557,7 +2558,7 @@ ___
|
|
|
2557
2558
|
|
|
2558
2559
|
#### Defined in
|
|
2559
2560
|
|
|
2560
|
-
[packages/ai-tool/src/utils/stream/is-web-stream.ts:1](https://github.com/isdk/ai-tool.js/blob/
|
|
2561
|
+
[packages/ai-tool/src/utils/stream/is-web-stream.ts:1](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/stream/is-web-stream.ts#L1)
|
|
2561
2562
|
|
|
2562
2563
|
___
|
|
2563
2564
|
|
|
@@ -2598,7 +2599,7 @@ console.log(jsonFilterToWhere(jsonFilter)); // Outputs a WHERE clause based on t
|
|
|
2598
2599
|
|
|
2599
2600
|
#### Defined in
|
|
2600
2601
|
|
|
2601
|
-
[packages/ai-tool/src/utils/json-filter.ts:123](https://github.com/isdk/ai-tool.js/blob/
|
|
2602
|
+
[packages/ai-tool/src/utils/json-filter.ts:123](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/json-filter.ts#L123)
|
|
2602
2603
|
|
|
2603
2604
|
___
|
|
2604
2605
|
|
|
@@ -2623,7 +2624,7 @@ ___
|
|
|
2623
2624
|
|
|
2624
2625
|
#### Defined in
|
|
2625
2626
|
|
|
2626
|
-
[packages/ai-tool/src/utils/json-to-markdown-str.ts:2](https://github.com/isdk/ai-tool.js/blob/
|
|
2627
|
+
[packages/ai-tool/src/utils/json-to-markdown-str.ts:2](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/json-to-markdown-str.ts#L2)
|
|
2627
2628
|
|
|
2628
2629
|
___
|
|
2629
2630
|
|
|
@@ -2643,6 +2644,7 @@ Loads a file from given paths, optionally searching for specific extensions.
|
|
|
2643
2644
|
| `options?` | `Object` | - |
|
|
2644
2645
|
| `options.exclude?` | `string` \| `string`[] | - |
|
|
2645
2646
|
| `options.filepath?` | `string` | - |
|
|
2647
|
+
| `options.signal?` | `AbortSignal` | - |
|
|
2646
2648
|
|
|
2647
2649
|
#### Returns
|
|
2648
2650
|
|
|
@@ -2662,7 +2664,7 @@ const content = loadFileFromPaths('config', ['/etc', '/usr/local/etc'], ['.json'
|
|
|
2662
2664
|
|
|
2663
2665
|
#### Defined in
|
|
2664
2666
|
|
|
2665
|
-
[packages/ai-tool/src/utils/load-file-from-paths.ts:22](https://github.com/isdk/ai-tool.js/blob/
|
|
2667
|
+
[packages/ai-tool/src/utils/load-file-from-paths.ts:22](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/load-file-from-paths.ts#L22)
|
|
2666
2668
|
|
|
2667
2669
|
___
|
|
2668
2670
|
|
|
@@ -2677,7 +2679,7 @@ ___
|
|
|
2677
2679
|
| `filename` | `string` |
|
|
2678
2680
|
| `searchPaths?` | `string`[] |
|
|
2679
2681
|
| `extNames?` | `string`[] |
|
|
2680
|
-
| `options?` | `BufferEncoding` \| \{ `encoding?`: BufferEncoding \| undefined ; `filepath?`: `string` } |
|
|
2682
|
+
| `options?` | `BufferEncoding` \| \{ `encoding?`: BufferEncoding \| undefined ; `filepath?`: `string` ; `signal?`: `AbortSignal` } |
|
|
2681
2683
|
| `exclude?` | `string` \| `string`[] |
|
|
2682
2684
|
|
|
2683
2685
|
#### Returns
|
|
@@ -2686,7 +2688,7 @@ ___
|
|
|
2686
2688
|
|
|
2687
2689
|
#### Defined in
|
|
2688
2690
|
|
|
2689
|
-
[packages/ai-tool/src/utils/load-file-from-paths.ts:
|
|
2691
|
+
[packages/ai-tool/src/utils/load-file-from-paths.ts:79](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/load-file-from-paths.ts#L79)
|
|
2690
2692
|
|
|
2691
2693
|
___
|
|
2692
2694
|
|
|
@@ -2707,7 +2709,7 @@ typeof [`ToolFunc`](classes/ToolFunc.md)
|
|
|
2707
2709
|
|
|
2708
2710
|
#### Defined in
|
|
2709
2711
|
|
|
2710
|
-
[packages/ai-tool/src/utils/cancelable-ability.ts:340](https://github.com/isdk/ai-tool.js/blob/
|
|
2712
|
+
[packages/ai-tool/src/utils/cancelable-ability.ts:340](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/cancelable-ability.ts#L340)
|
|
2711
2713
|
|
|
2712
2714
|
___
|
|
2713
2715
|
|
|
@@ -2756,7 +2758,7 @@ matchUrlProtocol("noProtocolHere");
|
|
|
2756
2758
|
|
|
2757
2759
|
#### Defined in
|
|
2758
2760
|
|
|
2759
|
-
[packages/ai-tool/src/utils/match-url-protocol.ts:23](https://github.com/isdk/ai-tool.js/blob/
|
|
2761
|
+
[packages/ai-tool/src/utils/match-url-protocol.ts:23](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/match-url-protocol.ts#L23)
|
|
2760
2762
|
|
|
2761
2763
|
___
|
|
2762
2764
|
|
|
@@ -2776,7 +2778,7 @@ ___
|
|
|
2776
2778
|
|
|
2777
2779
|
#### Defined in
|
|
2778
2780
|
|
|
2779
|
-
[packages/ai-tool/src/utils/chat.ts:116](https://github.com/isdk/ai-tool.js/blob/
|
|
2781
|
+
[packages/ai-tool/src/utils/chat.ts:116](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L116)
|
|
2780
2782
|
|
|
2781
2783
|
___
|
|
2782
2784
|
|
|
@@ -2802,7 +2804,7 @@ A string representing the formatted parameter size with the appropriate scale un
|
|
|
2802
2804
|
|
|
2803
2805
|
#### Defined in
|
|
2804
2806
|
|
|
2805
|
-
[packages/ai-tool/src/utils/convert-params-size.ts:11](https://github.com/isdk/ai-tool.js/blob/
|
|
2807
|
+
[packages/ai-tool/src/utils/convert-params-size.ts:11](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/convert-params-size.ts#L11)
|
|
2806
2808
|
|
|
2807
2809
|
___
|
|
2808
2810
|
|
|
@@ -2827,7 +2829,7 @@ extract from langchain.js/langchain-core/src/prompts/template.ts
|
|
|
2827
2829
|
|
|
2828
2830
|
#### Defined in
|
|
2829
2831
|
|
|
2830
|
-
[packages/ai-tool/src/utils/prompt/template/python.ts:16](https://github.com/isdk/ai-tool.js/blob/
|
|
2832
|
+
[packages/ai-tool/src/utils/prompt/template/python.ts:16](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/template/python.ts#L16)
|
|
2831
2833
|
|
|
2832
2834
|
___
|
|
2833
2835
|
|
|
@@ -2861,7 +2863,7 @@ console.log(json); // { name: 'John' }
|
|
|
2861
2863
|
|
|
2862
2864
|
#### Defined in
|
|
2863
2865
|
|
|
2864
|
-
[packages/ai-tool/src/utils/parse-js-json.ts:14](https://github.com/isdk/ai-tool.js/blob/
|
|
2866
|
+
[packages/ai-tool/src/utils/parse-js-json.ts:14](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/parse-js-json.ts#L14)
|
|
2865
2867
|
|
|
2866
2868
|
___
|
|
2867
2869
|
|
|
@@ -2881,7 +2883,7 @@ ___
|
|
|
2881
2883
|
|
|
2882
2884
|
#### Defined in
|
|
2883
2885
|
|
|
2884
|
-
[packages/ai-tool/src/utils/config.ts:25](https://github.com/isdk/ai-tool.js/blob/
|
|
2886
|
+
[packages/ai-tool/src/utils/config.ts:25](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/config.ts#L25)
|
|
2885
2887
|
|
|
2886
2888
|
___
|
|
2887
2889
|
|
|
@@ -2899,13 +2901,13 @@ A compiled regular expression for control characters in a filename.
|
|
|
2899
2901
|
|
|
2900
2902
|
#### Defined in
|
|
2901
2903
|
|
|
2902
|
-
[packages/ai-tool/src/utils/filename.ts:50](https://github.com/isdk/ai-tool.js/blob/
|
|
2904
|
+
[packages/ai-tool/src/utils/filename.ts:50](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L50)
|
|
2903
2905
|
|
|
2904
2906
|
___
|
|
2905
2907
|
|
|
2906
2908
|
### readFilenamesRecursiveSync
|
|
2907
2909
|
|
|
2908
|
-
▸ **readFilenamesRecursiveSync**(`dir`, `isFileMatched?`): `string`[]
|
|
2910
|
+
▸ **readFilenamesRecursiveSync**(`dir`, `isFileMatched?`, `signal?`): `string`[]
|
|
2909
2911
|
|
|
2910
2912
|
Recursively reads all filenames in the given directory or directories.
|
|
2911
2913
|
Optionally filters the results using a file matching callback.
|
|
@@ -2916,6 +2918,7 @@ Optionally filters the results using a file matching callback.
|
|
|
2916
2918
|
| :------ | :------ | :------ |
|
|
2917
2919
|
| `dir` | `string` \| `string`[] | A single directory path or an array of directory paths to start the search from. |
|
|
2918
2920
|
| `isFileMatched?` | (`filepath`: `string`) => `boolean` | An optional callback that determines whether a file should be included in the result. |
|
|
2921
|
+
| `signal?` | `AbortSignal` | - |
|
|
2919
2922
|
|
|
2920
2923
|
#### Returns
|
|
2921
2924
|
|
|
@@ -2932,7 +2935,7 @@ console.log(files); // Outputs an array of JavaScript file paths.
|
|
|
2932
2935
|
|
|
2933
2936
|
#### Defined in
|
|
2934
2937
|
|
|
2935
|
-
[packages/ai-tool/src/utils/load-file-from-paths.ts:
|
|
2938
|
+
[packages/ai-tool/src/utils/load-file-from-paths.ts:105](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/load-file-from-paths.ts#L105)
|
|
2936
2939
|
|
|
2937
2940
|
___
|
|
2938
2941
|
|
|
@@ -2961,7 +2964,7 @@ https://github.com/whatwg/streams/commit/8d7a0bf26eb2cc23e884ddbaac7c1da4b91cf2b
|
|
|
2961
2964
|
|
|
2962
2965
|
#### Defined in
|
|
2963
2966
|
|
|
2964
|
-
[packages/ai-tool/src/utils/stream/ai-stream.ts:166](https://github.com/isdk/ai-tool.js/blob/
|
|
2967
|
+
[packages/ai-tool/src/utils/stream/ai-stream.ts:166](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/stream/ai-stream.ts#L166)
|
|
2965
2968
|
|
|
2966
2969
|
___
|
|
2967
2970
|
|
|
@@ -2975,7 +2978,7 @@ ___
|
|
|
2975
2978
|
|
|
2976
2979
|
#### Defined in
|
|
2977
2980
|
|
|
2978
|
-
[packages/ai-tool/src/funcs/index.ts:9](https://github.com/isdk/ai-tool.js/blob/
|
|
2981
|
+
[packages/ai-tool/src/funcs/index.ts:9](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/funcs/index.ts#L9)
|
|
2979
2982
|
|
|
2980
2983
|
___
|
|
2981
2984
|
|
|
@@ -2995,7 +2998,7 @@ ___
|
|
|
2995
2998
|
|
|
2996
2999
|
#### Defined in
|
|
2997
3000
|
|
|
2998
|
-
[packages/ai-tool/src/utils/config.ts:15](https://github.com/isdk/ai-tool.js/blob/
|
|
3001
|
+
[packages/ai-tool/src/utils/config.ts:15](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/config.ts#L15)
|
|
2999
3002
|
|
|
3000
3003
|
___
|
|
3001
3004
|
|
|
@@ -3024,7 +3027,7 @@ The sanitized filename.
|
|
|
3024
3027
|
|
|
3025
3028
|
#### Defined in
|
|
3026
3029
|
|
|
3027
|
-
[packages/ai-tool/src/utils/filename.ts:97](https://github.com/isdk/ai-tool.js/blob/
|
|
3030
|
+
[packages/ai-tool/src/utils/filename.ts:97](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L97)
|
|
3028
3031
|
|
|
3029
3032
|
___
|
|
3030
3033
|
|
|
@@ -3049,13 +3052,13 @@ The sanitized file path as a string.
|
|
|
3049
3052
|
|
|
3050
3053
|
#### Defined in
|
|
3051
3054
|
|
|
3052
|
-
[packages/ai-tool/src/utils/filename.ts:149](https://github.com/isdk/ai-tool.js/blob/
|
|
3055
|
+
[packages/ai-tool/src/utils/filename.ts:149](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L149)
|
|
3053
3056
|
|
|
3054
3057
|
___
|
|
3055
3058
|
|
|
3056
3059
|
### saveConfigFile
|
|
3057
3060
|
|
|
3058
|
-
▸ **saveConfigFile**(`filename`, `config`, `extLevel?`): `
|
|
3061
|
+
▸ **saveConfigFile**(`filename`, `config`, `extLevel?`): `string`
|
|
3059
3062
|
|
|
3060
3063
|
#### Parameters
|
|
3061
3064
|
|
|
@@ -3067,11 +3070,11 @@ ___
|
|
|
3067
3070
|
|
|
3068
3071
|
#### Returns
|
|
3069
3072
|
|
|
3070
|
-
`
|
|
3073
|
+
`string`
|
|
3071
3074
|
|
|
3072
3075
|
#### Defined in
|
|
3073
3076
|
|
|
3074
|
-
[packages/ai-tool/src/utils/config.ts:85](https://github.com/isdk/ai-tool.js/blob/
|
|
3077
|
+
[packages/ai-tool/src/utils/config.ts:85](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/config.ts#L85)
|
|
3075
3078
|
|
|
3076
3079
|
___
|
|
3077
3080
|
|
|
@@ -3095,7 +3098,7 @@ The parameter size in bytes.
|
|
|
3095
3098
|
|
|
3096
3099
|
#### Defined in
|
|
3097
3100
|
|
|
3098
|
-
[packages/ai-tool/src/utils/convert-params-size.ts:44](https://github.com/isdk/ai-tool.js/blob/
|
|
3101
|
+
[packages/ai-tool/src/utils/convert-params-size.ts:44](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/convert-params-size.ts#L44)
|
|
3099
3102
|
|
|
3100
3103
|
___
|
|
3101
3104
|
|
|
@@ -3121,7 +3124,7 @@ ___
|
|
|
3121
3124
|
|
|
3122
3125
|
#### Defined in
|
|
3123
3126
|
|
|
3124
|
-
[packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:4](https://github.com/isdk/ai-tool.js/blob/
|
|
3127
|
+
[packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:4](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/prompt/few-shot-prompt-template.ts#L4)
|
|
3125
3128
|
|
|
3126
3129
|
___
|
|
3127
3130
|
|
|
@@ -3151,7 +3154,7 @@ console.log(splitSentence(text)); // returns ['Hello world!', 'How are you toda
|
|
|
3151
3154
|
|
|
3152
3155
|
#### Defined in
|
|
3153
3156
|
|
|
3154
|
-
[packages/ai-tool/src/utils/split-sentence.ts:29](https://github.com/isdk/ai-tool.js/blob/
|
|
3157
|
+
[packages/ai-tool/src/utils/split-sentence.ts:29](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/split-sentence.ts#L29)
|
|
3155
3158
|
|
|
3156
3159
|
___
|
|
3157
3160
|
|
|
@@ -3215,7 +3218,7 @@ ___
|
|
|
3215
3218
|
|
|
3216
3219
|
#### Defined in
|
|
3217
3220
|
|
|
3218
|
-
[packages/ai-tool/src/utils/to-datetime.ts:25](https://github.com/isdk/ai-tool.js/blob/
|
|
3221
|
+
[packages/ai-tool/src/utils/to-datetime.ts:25](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/to-datetime.ts#L25)
|
|
3219
3222
|
|
|
3220
3223
|
___
|
|
3221
3224
|
|
|
@@ -3243,7 +3246,7 @@ Throws a BaseError object
|
|
|
3243
3246
|
|
|
3244
3247
|
#### Defined in
|
|
3245
3248
|
|
|
3246
|
-
[packages/ai-tool/src/utils/base-error.ts:235](https://github.com/isdk/ai-tool.js/blob/
|
|
3249
|
+
[packages/ai-tool/src/utils/base-error.ts:235](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/base-error.ts#L235)
|
|
3247
3250
|
|
|
3248
3251
|
___
|
|
3249
3252
|
|
|
@@ -3263,7 +3266,7 @@ ___
|
|
|
3263
3266
|
|
|
3264
3267
|
#### Defined in
|
|
3265
3268
|
|
|
3266
|
-
[packages/ai-tool/src/utils/to-datetime.ts:9](https://github.com/isdk/ai-tool.js/blob/
|
|
3269
|
+
[packages/ai-tool/src/utils/to-datetime.ts:9](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/to-datetime.ts#L9)
|
|
3267
3270
|
|
|
3268
3271
|
___
|
|
3269
3272
|
|
|
@@ -3305,7 +3308,7 @@ const output2 = trimStart(" text"); // " text"
|
|
|
3305
3308
|
|
|
3306
3309
|
#### Defined in
|
|
3307
3310
|
|
|
3308
|
-
[packages/ai-tool/src/utils/stream/ai-stream.ts:92](https://github.com/isdk/ai-tool.js/blob/
|
|
3311
|
+
[packages/ai-tool/src/utils/stream/ai-stream.ts:92](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/stream/ai-stream.ts#L92)
|
|
3309
3312
|
|
|
3310
3313
|
___
|
|
3311
3314
|
|
|
@@ -3345,7 +3348,7 @@ truncTo(1.2345, 2, 0.6)
|
|
|
3345
3348
|
|
|
3346
3349
|
#### Defined in
|
|
3347
3350
|
|
|
3348
|
-
[packages/ai-tool/src/utils/trunc-to.ts:19](https://github.com/isdk/ai-tool.js/blob/
|
|
3351
|
+
[packages/ai-tool/src/utils/trunc-to.ts:19](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/trunc-to.ts#L19)
|
|
3349
3352
|
|
|
3350
3353
|
___
|
|
3351
3354
|
|
|
@@ -3366,7 +3369,7 @@ ___
|
|
|
3366
3369
|
|
|
3367
3370
|
#### Defined in
|
|
3368
3371
|
|
|
3369
|
-
[packages/ai-tool/src/utils/hash/uuid.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
3372
|
+
[packages/ai-tool/src/utils/hash/uuid.ts:8](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/hash/uuid.ts#L8)
|
|
3370
3373
|
|
|
3371
3374
|
___
|
|
3372
3375
|
|
|
@@ -3601,7 +3604,7 @@ ___
|
|
|
3601
3604
|
|
|
3602
3605
|
#### Defined in
|
|
3603
3606
|
|
|
3604
|
-
[packages/ai-tool/src/utils/wait.ts:1](https://github.com/isdk/ai-tool.js/blob/
|
|
3607
|
+
[packages/ai-tool/src/utils/wait.ts:1](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/wait.ts#L1)
|
|
3605
3608
|
|
|
3606
3609
|
___
|
|
3607
3610
|
|
|
@@ -3623,7 +3626,7 @@ ___
|
|
|
3623
3626
|
|
|
3624
3627
|
#### Defined in
|
|
3625
3628
|
|
|
3626
|
-
[packages/ai-tool/src/utils/hash/xxhash.ts:32](https://github.com/isdk/ai-tool.js/blob/
|
|
3629
|
+
[packages/ai-tool/src/utils/hash/xxhash.ts:32](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/hash/xxhash.ts#L32)
|
|
3627
3630
|
|
|
3628
3631
|
___
|
|
3629
3632
|
|
|
@@ -3644,7 +3647,7 @@ ___
|
|
|
3644
3647
|
|
|
3645
3648
|
#### Defined in
|
|
3646
3649
|
|
|
3647
|
-
[packages/ai-tool/src/utils/hash/xxhash.ts:11](https://github.com/isdk/ai-tool.js/blob/
|
|
3650
|
+
[packages/ai-tool/src/utils/hash/xxhash.ts:11](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/hash/xxhash.ts#L11)
|
|
3648
3651
|
|
|
3649
3652
|
___
|
|
3650
3653
|
|
|
@@ -3665,7 +3668,7 @@ ___
|
|
|
3665
3668
|
|
|
3666
3669
|
#### Defined in
|
|
3667
3670
|
|
|
3668
|
-
[packages/ai-tool/src/utils/hash/xxhash.ts:18](https://github.com/isdk/ai-tool.js/blob/
|
|
3671
|
+
[packages/ai-tool/src/utils/hash/xxhash.ts:18](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/hash/xxhash.ts#L18)
|
|
3669
3672
|
|
|
3670
3673
|
___
|
|
3671
3674
|
|
|
@@ -3687,4 +3690,4 @@ ___
|
|
|
3687
3690
|
|
|
3688
3691
|
#### Defined in
|
|
3689
3692
|
|
|
3690
|
-
[packages/ai-tool/src/utils/hash/xxhash.ts:48](https://github.com/isdk/ai-tool.js/blob/
|
|
3693
|
+
[packages/ai-tool/src/utils/hash/xxhash.ts:48](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/hash/xxhash.ts#L48)
|