@isdk/ai-tool 0.0.9 → 0.1.0

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.
Files changed (80) hide show
  1. package/dist/chunk-W4ZFS46G.mjs +1 -0
  2. package/dist/funcs.d.mts +1 -1
  3. package/dist/funcs.d.ts +1 -1
  4. package/dist/funcs.js +1 -1
  5. package/dist/funcs.mjs +1 -1
  6. package/dist/{index-Dgo3ZXPQ.d.mts → index-DvpywQaE.d.mts} +43 -35
  7. package/dist/{index-Dgo3ZXPQ.d.ts → index-DvpywQaE.d.ts} +43 -35
  8. package/dist/index.d.mts +26 -8
  9. package/dist/index.d.ts +26 -8
  10. package/dist/index.js +1 -1
  11. package/dist/index.mjs +1 -1
  12. package/docs/classes/AbortError.md +8 -8
  13. package/docs/classes/AlreadyExistsError.md +8 -8
  14. package/docs/classes/BaseError.md +8 -8
  15. package/docs/classes/CancelableAbility.md +20 -20
  16. package/docs/classes/ClientTools.md +94 -56
  17. package/docs/classes/CommonError.md +8 -8
  18. package/docs/classes/EventClient.md +117 -77
  19. package/docs/classes/EventServer.md +173 -74
  20. package/docs/classes/EventToolFunc.md +98 -43
  21. package/docs/classes/FStringPromptTemplate.md +18 -18
  22. package/docs/classes/FewShotPromptTemplate.md +22 -22
  23. package/docs/classes/GolangPromptTemplate.md +18 -18
  24. package/docs/classes/HFEnvironment.md +9 -9
  25. package/docs/classes/HFInterpreter.md +46 -22
  26. package/docs/classes/HFTemplate.md +4 -4
  27. package/docs/classes/HfPromptTemplate.md +18 -18
  28. package/docs/classes/IntSet.md +12 -12
  29. package/docs/classes/NotFoundError.md +8 -8
  30. package/docs/classes/NotImplementationError.md +8 -8
  31. package/docs/classes/PromptExampleSelector.md +8 -8
  32. package/docs/classes/PromptTemplate.md +17 -17
  33. package/docs/classes/ReadableStreamError.md +8 -8
  34. package/docs/classes/ResClientTools.md +91 -491
  35. package/docs/classes/ResServerTools.md +133 -474
  36. package/docs/classes/SSEChannel.md +15 -15
  37. package/docs/classes/Semaphore.md +14 -14
  38. package/docs/classes/ServerTools.md +71 -54
  39. package/docs/classes/TaskAbortController.md +7 -7
  40. package/docs/classes/ToolFunc.md +91 -40
  41. package/docs/enums/AsyncFeatureBits.md +3 -3
  42. package/docs/enums/AsyncFeatures.md +3 -3
  43. package/docs/enums/ErrorCode.md +21 -21
  44. package/docs/enums/XXHashAlgorithm.md +2 -2
  45. package/docs/interfaces/AIChatAssistantMessageParam.md +6 -6
  46. package/docs/interfaces/AIChatContentPartImage.md +2 -2
  47. package/docs/interfaces/AIChatContentPartText.md +2 -2
  48. package/docs/interfaces/AIChatMessageParamBase.md +1 -1
  49. package/docs/interfaces/AIChatMessageToolCall.md +3 -3
  50. package/docs/interfaces/AIChatSystemMessageParam.md +3 -3
  51. package/docs/interfaces/AIChatToolMessageParam.md +4 -4
  52. package/docs/interfaces/AIChatUserMessageParam.md +7 -7
  53. package/docs/interfaces/AIResult.md +5 -5
  54. package/docs/interfaces/AIStreamParser.md +1 -1
  55. package/docs/interfaces/AIStreamParserOptions.md +1 -1
  56. package/docs/interfaces/BaseFunc.md +37 -7
  57. package/docs/interfaces/BaseFuncItem.md +28 -6
  58. package/docs/interfaces/CancelableAbilityOptions.md +2 -2
  59. package/docs/interfaces/ClientFuncItem.md +25 -10
  60. package/docs/interfaces/DotenvExpandOptions.md +3 -3
  61. package/docs/interfaces/DotenvExpandOutput.md +2 -2
  62. package/docs/interfaces/EventClientFuncParams.md +4 -4
  63. package/docs/interfaces/EventServerFuncParams.md +5 -5
  64. package/docs/interfaces/FewShotPromptTemplateOptions.md +11 -11
  65. package/docs/interfaces/FuncItem.md +37 -7
  66. package/docs/interfaces/FuncParam.md +6 -6
  67. package/docs/interfaces/PromptExampleSelectorOptions.md +2 -2
  68. package/docs/interfaces/PromptTemplateOptions.md +6 -6
  69. package/docs/interfaces/RemoteFuncItem.md +29 -10
  70. package/docs/interfaces/ResClientFuncParams.md +10 -4
  71. package/docs/interfaces/ResServerFuncParams.md +12 -10
  72. package/docs/interfaces/SanitizeFilenameOptions.md +2 -2
  73. package/docs/interfaces/ServerFuncItem.md +26 -11
  74. package/docs/interfaces/ServerFuncParams.md +2 -4
  75. package/docs/interfaces/StreamCallbacksAndOptions.md +4 -4
  76. package/docs/interfaces/TaskPromise.md +1 -1
  77. package/docs/interfaces/ToolFuncPackage.md +3 -3
  78. package/docs/modules.md +151 -162
  79. package/package.json +1 -1
  80. package/dist/chunk-PDXMSKQH.mjs +0 -1
package/docs/modules.md CHANGED
@@ -132,8 +132,6 @@
132
132
  - [PromptTypes](modules.md#prompttypes)
133
133
  - [RStreamErrCode](modules.md#rstreamerrcode)
134
134
  - [RemoteToolFuncSchema](modules.md#remotetoolfuncschema)
135
- - [ResClientToolsSchema](modules.md#resclienttoolsschema)
136
- - [ResServerToolsSchema](modules.md#resservertoolsschema)
137
135
  - [ResponseRStreamErrCode](modules.md#responserstreamerrcode)
138
136
  - [SSEChannelAlreadyClosedErrCode](modules.md#ssechannelalreadyclosederrcode)
139
137
  - [ServerToolFuncSchema](modules.md#servertoolfuncschema)
@@ -159,6 +157,7 @@
159
157
  - [backendEventable](modules.md#backendeventable)
160
158
  - [canonicalize](modules.md#canonicalize)
161
159
  - [canonicalizeEx](modules.md#canonicalizeex)
160
+ - [countRegexMatches](modules.md#countregexmatches)
162
161
  - [createAbilityInjector](modules.md#createabilityinjector)
163
162
  - [createCallbacksTransformer](modules.md#createcallbackstransformer)
164
163
  - [createEmptyReadableStream](modules.md#createemptyreadablestream)
@@ -785,7 +784,7 @@ node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/toDate.d.ts:33
785
784
 
786
785
  #### Defined in
787
786
 
788
- [packages/ai-tool/src/utils/chat.ts:74](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L74)
787
+ [packages/ai-tool/src/utils/chat.ts:74](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/chat.ts#L74)
789
788
 
790
789
  ___
791
790
 
@@ -795,7 +794,7 @@ ___
795
794
 
796
795
  #### Defined in
797
796
 
798
- [packages/ai-tool/src/utils/chat.ts:44](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L44)
797
+ [packages/ai-tool/src/utils/chat.ts:44](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/chat.ts#L44)
799
798
 
800
799
  ___
801
800
 
@@ -805,7 +804,7 @@ ___
805
804
 
806
805
  #### Defined in
807
806
 
808
- [packages/ai-tool/src/utils/chat.ts:42](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L42)
807
+ [packages/ai-tool/src/utils/chat.ts:42](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/chat.ts#L42)
809
808
 
810
809
  ___
811
810
 
@@ -815,7 +814,7 @@ ___
815
814
 
816
815
  #### Defined in
817
816
 
818
- [packages/ai-tool/src/utils/chat.ts:36](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L36)
817
+ [packages/ai-tool/src/utils/chat.ts:36](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/chat.ts#L36)
819
818
 
820
819
  ___
821
820
 
@@ -825,7 +824,7 @@ ___
825
824
 
826
825
  #### Defined in
827
826
 
828
- [packages/ai-tool/src/utils/consts.ts:10](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L10)
827
+ [packages/ai-tool/src/utils/consts.ts:10](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/consts.ts#L10)
829
828
 
830
829
  ___
831
830
 
@@ -849,7 +848,7 @@ ___
849
848
 
850
849
  #### Defined in
851
850
 
852
- [packages/ai-tool/src/utils/consts.ts:8](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L8)
851
+ [packages/ai-tool/src/utils/consts.ts:8](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/consts.ts#L8)
853
852
 
854
853
  ___
855
854
 
@@ -859,7 +858,7 @@ ___
859
858
 
860
859
  #### Defined in
861
860
 
862
- [packages/ai-tool/src/utils/consts.ts:11](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L11)
861
+ [packages/ai-tool/src/utils/consts.ts:11](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/consts.ts#L11)
863
862
 
864
863
  ___
865
864
 
@@ -869,7 +868,7 @@ ___
869
868
 
870
869
  #### Defined in
871
870
 
872
- [packages/ai-tool/src/utils/chat.ts:13](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L13)
871
+ [packages/ai-tool/src/utils/chat.ts:13](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/chat.ts#L13)
873
872
 
874
873
  ___
875
874
 
@@ -879,7 +878,7 @@ ___
879
878
 
880
879
  #### Defined in
881
880
 
882
- [packages/ai-tool/src/utils/consts.ts:6](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L6)
881
+ [packages/ai-tool/src/utils/consts.ts:6](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/consts.ts#L6)
883
882
 
884
883
  ___
885
884
 
@@ -889,7 +888,7 @@ ___
889
888
 
890
889
  #### Defined in
891
890
 
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)
891
+ [packages/ai-tool/src/utils/cancelable-ability.ts:8](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/cancelable-ability.ts#L8)
893
892
 
894
893
  ___
895
894
 
@@ -899,7 +898,7 @@ ___
899
898
 
900
899
  #### Defined in
901
900
 
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)
901
+ [packages/ai-tool/src/utils/base-error.ts:3](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/base-error.ts#L3)
903
902
 
904
903
  ___
905
904
 
@@ -926,7 +925,7 @@ ___
926
925
 
927
926
  #### Defined in
928
927
 
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)
928
+ [packages/ai-tool/src/utils/event/event-ability.ts:9](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/event/event-ability.ts#L9)
930
929
 
931
930
  ___
932
931
 
@@ -952,7 +951,7 @@ ___
952
951
 
953
952
  #### Defined in
954
953
 
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)
954
+ [packages/ai-tool/src/utils/event/event-ability.ts:8](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/event/event-ability.ts#L8)
956
955
 
957
956
  ___
958
957
 
@@ -965,7 +964,7 @@ a literal text or a variable name.
965
964
 
966
965
  #### Defined in
967
966
 
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)
967
+ [packages/ai-tool/src/utils/prompt/template/python.ts:6](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/template/python.ts#L6)
969
968
 
970
969
  ___
971
970
 
@@ -975,7 +974,7 @@ ___
975
974
 
976
975
  #### Defined in
977
976
 
978
- [packages/ai-tool/src/tool-func.ts:24](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/tool-func.ts#L24)
977
+ [packages/ai-tool/src/tool-func.ts:24](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/tool-func.ts#L24)
979
978
 
980
979
  ___
981
980
 
@@ -991,7 +990,7 @@ ___
991
990
 
992
991
  #### Defined in
993
992
 
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)
993
+ [packages/ai-tool/src/utils/prompt/prompt-example-selector.ts:3](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/prompt-example-selector.ts#L3)
995
994
 
996
995
  ___
997
996
 
@@ -1001,7 +1000,7 @@ ___
1001
1000
 
1002
1001
  #### Defined in
1003
1002
 
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)
1003
+ [packages/ai-tool/src/utils/prompt/consts.ts:17](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/consts.ts#L17)
1005
1004
 
1006
1005
  ___
1007
1006
 
@@ -1011,7 +1010,7 @@ ___
1011
1010
 
1012
1011
  #### Defined in
1013
1012
 
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)
1013
+ [packages/ai-tool/src/utils/prompt/consts.ts:10](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/consts.ts#L10)
1015
1014
 
1016
1015
  ___
1017
1016
 
@@ -1036,7 +1035,7 @@ ___
1036
1035
 
1037
1036
  #### Defined in
1038
1037
 
1039
- [packages/ai-tool/src/tool-func.ts:38](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/tool-func.ts#L38)
1038
+ [packages/ai-tool/src/tool-func.ts:38](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/tool-func.ts#L38)
1040
1039
 
1041
1040
  ___
1042
1041
 
@@ -1046,7 +1045,7 @@ ___
1046
1045
 
1047
1046
  #### Defined in
1048
1047
 
1049
- [packages/ai-tool/src/utils/chat.ts:41](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L41)
1048
+ [packages/ai-tool/src/utils/chat.ts:41](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/chat.ts#L41)
1050
1049
 
1051
1050
  ___
1052
1051
 
@@ -1056,7 +1055,7 @@ ___
1056
1055
 
1057
1056
  #### Defined in
1058
1057
 
1059
- [packages/ai-tool/src/utils/chat.ts:35](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L35)
1058
+ [packages/ai-tool/src/utils/chat.ts:35](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/chat.ts#L35)
1060
1059
 
1061
1060
  ___
1062
1061
 
@@ -1066,7 +1065,7 @@ ___
1066
1065
 
1067
1066
  #### Defined in
1068
1067
 
1069
- [packages/ai-tool/src/utils/chat.ts:4](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L4)
1068
+ [packages/ai-tool/src/utils/chat.ts:4](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/chat.ts#L4)
1070
1069
 
1071
1070
  ___
1072
1071
 
@@ -1076,7 +1075,7 @@ ___
1076
1075
 
1077
1076
  #### Defined in
1078
1077
 
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)
1078
+ [packages/ai-tool/src/utils/base-error.ts:33](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/base-error.ts#L33)
1080
1079
 
1081
1080
  ___
1082
1081
 
@@ -1086,7 +1085,7 @@ ___
1086
1085
 
1087
1086
  #### Defined in
1088
1087
 
1089
- [packages/ai-tool/src/utils/consts.ts:5](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L5)
1088
+ [packages/ai-tool/src/utils/consts.ts:5](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/consts.ts#L5)
1090
1089
 
1091
1090
  ___
1092
1091
 
@@ -1096,7 +1095,7 @@ ___
1096
1095
 
1097
1096
  #### Defined in
1098
1097
 
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)
1098
+ [packages/ai-tool/src/utils/base-error.ts:32](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/base-error.ts#L32)
1100
1099
 
1101
1100
  ___
1102
1101
 
@@ -1119,12 +1118,10 @@ ___
1119
1118
  | `apiRoot.set` | [object Object] |
1120
1119
  | `fetchOptions` | \{ `type`: `string` = 'object' } |
1121
1120
  | `fetchOptions.type` | `string` |
1122
- | `stream` | \{ `type`: `string` = 'boolean' } |
1123
- | `stream.type` | `string` |
1124
1121
 
1125
1122
  #### Defined in
1126
1123
 
1127
- [packages/ai-tool/src/client-tools.ts:153](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/client-tools.ts#L153)
1124
+ [packages/ai-tool/src/client-tools.ts:153](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/client-tools.ts#L153)
1128
1125
 
1129
1126
  ___
1130
1127
 
@@ -1134,7 +1131,7 @@ ___
1134
1131
 
1135
1132
  #### Defined in
1136
1133
 
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)
1134
+ [packages/ai-tool/src/utils/async-semaphore.ts:6](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/async-semaphore.ts#L6)
1138
1135
 
1139
1136
  ___
1140
1137
 
@@ -1144,7 +1141,7 @@ ___
1144
1141
 
1145
1142
  #### Defined in
1146
1143
 
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)
1144
+ [packages/ai-tool/src/utils/event/event-ability.ts:7](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/event/event-ability.ts#L7)
1148
1145
 
1149
1146
  ___
1150
1147
 
@@ -1154,7 +1151,7 @@ ___
1154
1151
 
1155
1152
  #### Defined in
1156
1153
 
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)
1154
+ [packages/ai-tool/src/utils/event/event-ability.ts:6](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/event/event-ability.ts#L6)
1158
1155
 
1159
1156
  ___
1160
1157
 
@@ -1167,7 +1164,7 @@ do not use /g global option here: when the regex is executed multiple times, it
1167
1164
 
1168
1165
  #### Defined in
1169
1166
 
1170
- [packages/ai-tool/src/utils/filename.ts:8](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L8)
1167
+ [packages/ai-tool/src/utils/filename.ts:8](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/filename.ts#L8)
1171
1168
 
1172
1169
  ___
1173
1170
 
@@ -1181,11 +1178,11 @@ ___
1181
1178
  | :------ | :------ |
1182
1179
  | `randomInt` | (`to`: `number`, `from`: `number`) => `number` |
1183
1180
  | `select` | (`obj`: `any`, `index?`: `string` \| `number`) => `any` |
1184
- | `tojson` | (`value`: `any`, `indent?`: `string` \| `number` \| \{ `indent?`: `string` \| `number` }) => `string` |
1181
+ | `tojson` | (`value`: `any`, `indent?`: `number` \| \{ `depth?`: `number` ; `indent?`: `number` }, `depth?`: `number`) => `string` |
1185
1182
 
1186
1183
  #### Defined in
1187
1184
 
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)
1185
+ [packages/ai-tool/src/utils/prompt/template/jinja/src/builtins.ts:61](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/template/jinja/src/builtins.ts#L61)
1189
1186
 
1190
1187
  ___
1191
1188
 
@@ -1195,7 +1192,7 @@ ___
1195
1192
 
1196
1193
  #### Defined in
1197
1194
 
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)
1195
+ [packages/ai-tool/src/utils/base-error.ts:29](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/base-error.ts#L29)
1199
1196
 
1200
1197
  ___
1201
1198
 
@@ -1205,7 +1202,7 @@ ___
1205
1202
 
1206
1203
  #### Defined in
1207
1204
 
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)
1205
+ [packages/ai-tool/src/utils/base-error.ts:31](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/base-error.ts#L31)
1209
1206
 
1210
1207
  ___
1211
1208
 
@@ -1215,7 +1212,7 @@ ___
1215
1212
 
1216
1213
  #### Defined in
1217
1214
 
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)
1215
+ [packages/ai-tool/src/utils/base-error.ts:30](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/base-error.ts#L30)
1219
1216
 
1220
1217
  ___
1221
1218
 
@@ -1225,7 +1222,7 @@ ___
1225
1222
 
1226
1223
  #### Defined in
1227
1224
 
1228
- [packages/ai-tool/src/utils/consts.ts:3](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L3)
1225
+ [packages/ai-tool/src/utils/consts.ts:3](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/consts.ts#L3)
1229
1226
 
1230
1227
  ___
1231
1228
 
@@ -1235,7 +1232,7 @@ ___
1235
1232
 
1236
1233
  #### Defined in
1237
1234
 
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)
1235
+ [packages/ai-tool/src/utils/prompt/consts.ts:12](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/consts.ts#L12)
1239
1236
 
1240
1237
  ___
1241
1238
 
@@ -1248,7 +1245,7 @@ defaults to `chat`
1248
1245
 
1249
1246
  #### Defined in
1250
1247
 
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)
1248
+ [packages/ai-tool/src/utils/prompt/consts.ts:5](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/consts.ts#L5)
1252
1249
 
1253
1250
  ___
1254
1251
 
@@ -1258,7 +1255,7 @@ ___
1258
1255
 
1259
1256
  #### Defined in
1260
1257
 
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)
1258
+ [packages/ai-tool/src/utils/stream/error-readable-stream.ts:3](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/stream/error-readable-stream.ts#L3)
1262
1259
 
1263
1260
  ___
1264
1261
 
@@ -1281,47 +1278,10 @@ ___
1281
1278
  | `apiRoot.set` | [object Object] |
1282
1279
  | `fetchOptions` | \{ `type`: `string` = 'object' } |
1283
1280
  | `fetchOptions.type` | `string` |
1284
- | `stream` | \{ `type`: `string` = 'boolean' } |
1285
- | `stream.type` | `string` |
1286
-
1287
- #### Defined in
1288
-
1289
- [packages/ai-tool/src/utils/consts.ts:13](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/consts.ts#L13)
1290
-
1291
- ___
1292
-
1293
- ### ResClientToolsSchema
1294
-
1295
- • `Const` **ResClientToolsSchema**: `Object`
1296
-
1297
- #### Type declaration
1298
-
1299
- | Name | Type |
1300
- | :------ | :------ |
1301
- | `methods` | \{ `type`: `string` = 'array'; `assign`: (`value`: `string`[], `dest`: `any`, `src?`: `any`, `name?`: `string`, `options?`: `any`) => `void` } |
1302
- | `methods.type` | `string` |
1303
- | `methods.assign` | [object Object] |
1304
-
1305
- #### Defined in
1306
-
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)
1308
-
1309
- ___
1310
-
1311
- ### ResServerToolsSchema
1312
-
1313
- • `Const` **ResServerToolsSchema**: `Object`
1314
-
1315
- #### Type declaration
1316
-
1317
- | Name | Type |
1318
- | :------ | :------ |
1319
- | `methods` | \{ `type`: `string` = 'array' } |
1320
- | `methods.type` | `string` |
1321
1281
 
1322
1282
  #### Defined in
1323
1283
 
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)
1284
+ [packages/ai-tool/src/utils/consts.ts:13](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/consts.ts#L13)
1325
1285
 
1326
1286
  ___
1327
1287
 
@@ -1331,7 +1291,7 @@ ___
1331
1291
 
1332
1292
  #### Defined in
1333
1293
 
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)
1294
+ [packages/ai-tool/src/utils/stream/error-readable-stream.ts:4](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/stream/error-readable-stream.ts#L4)
1335
1295
 
1336
1296
  ___
1337
1297
 
@@ -1341,7 +1301,7 @@ ___
1341
1301
 
1342
1302
  #### Defined in
1343
1303
 
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)
1304
+ [packages/ai-tool/src/utils/event/sse-channel.ts:17](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/event/sse-channel.ts#L17)
1345
1305
 
1346
1306
  ___
1347
1307
 
@@ -1364,12 +1324,10 @@ ___
1364
1324
  | `apiRoot.set` | [object Object] |
1365
1325
  | `fetchOptions` | \{ `type`: `string` = 'object' } |
1366
1326
  | `fetchOptions.type` | `string` |
1367
- | `stream` | \{ `type`: `string` = 'boolean' } |
1368
- | `stream.type` | `string` |
1369
1327
 
1370
1328
  #### Defined in
1371
1329
 
1372
- [packages/ai-tool/src/server-tools.ts:66](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/server-tools.ts#L66)
1330
+ [packages/ai-tool/src/server-tools.ts:62](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/server-tools.ts#L62)
1373
1331
 
1374
1332
  ___
1375
1333
 
@@ -1379,7 +1337,7 @@ ___
1379
1337
 
1380
1338
  #### Defined in
1381
1339
 
1382
- [packages/ai-tool/src/tool-func.ts:8](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/tool-func.ts#L8)
1340
+ [packages/ai-tool/src/tool-func.ts:8](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/tool-func.ts#L8)
1383
1341
 
1384
1342
  ___
1385
1343
 
@@ -1389,7 +1347,7 @@ ___
1389
1347
 
1390
1348
  #### Defined in
1391
1349
 
1392
- [packages/ai-tool/src/tool-func.ts:7](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/tool-func.ts#L7)
1350
+ [packages/ai-tool/src/tool-func.ts:7](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/tool-func.ts#L7)
1393
1351
 
1394
1352
  ___
1395
1353
 
@@ -1399,7 +1357,7 @@ ___
1399
1357
 
1400
1358
  #### Defined in
1401
1359
 
1402
- [packages/ai-tool/src/tool-func.ts:9](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/tool-func.ts#L9)
1360
+ [packages/ai-tool/src/tool-func.ts:9](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/tool-func.ts#L9)
1403
1361
 
1404
1362
  ___
1405
1363
 
@@ -1421,6 +1379,8 @@ ___
1421
1379
  | `func` | \{ `type`: `string` = 'function'; `assign`: (`value`: `string` \| `Function`, `dest`: [`ToolFunc`](classes/ToolFunc.md), `src?`: [`ToolFunc`](classes/ToolFunc.md), `name?`: `string`, `options?`: `any`) => `string` \| `Function` } |
1422
1380
  | `func.type` | `string` |
1423
1381
  | `func.assign` | [object Object] |
1382
+ | `isApi` | \{ `type`: `string` = 'boolean' } |
1383
+ | `isApi.type` | `string` |
1424
1384
  | `name` | \{ `type`: `string` = 'string' } |
1425
1385
  | `name.type` | `string` |
1426
1386
  | `params` | \{ `type`: `string` = 'object' } |
@@ -1429,12 +1389,14 @@ ___
1429
1389
  | `result.type` | `string` |
1430
1390
  | `setup` | \{ `type`: `string` = 'function' } |
1431
1391
  | `setup.type` | `string` |
1392
+ | `stream` | \{ `type`: `string` = 'boolean' } |
1393
+ | `stream.type` | `string` |
1432
1394
  | `tags` | \{ `type`: `string`[] } |
1433
1395
  | `tags.type` | `string`[] |
1434
1396
 
1435
1397
  #### Defined in
1436
1398
 
1437
- [packages/ai-tool/src/tool-func.ts:342](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/tool-func.ts#L342)
1399
+ [packages/ai-tool/src/tool-func.ts:348](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/tool-func.ts#L348)
1438
1400
 
1439
1401
  ___
1440
1402
 
@@ -1446,7 +1408,7 @@ Regular expression pattern for reserved names on Windows systems.
1446
1408
 
1447
1409
  #### Defined in
1448
1410
 
1449
- [packages/ai-tool/src/utils/filename.ts:13](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L13)
1411
+ [packages/ai-tool/src/utils/filename.ts:13](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/filename.ts#L13)
1450
1412
 
1451
1413
  ___
1452
1414
 
@@ -1456,7 +1418,7 @@ ___
1456
1418
 
1457
1419
  #### Defined in
1458
1420
 
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)
1421
+ [packages/ai-tool/src/utils/hash/xxhash.ts:5](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/hash/xxhash.ts#L5)
1460
1422
 
1461
1423
  ___
1462
1424
 
@@ -1466,7 +1428,7 @@ ___
1466
1428
 
1467
1429
  #### Defined in
1468
1430
 
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)
1431
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:8](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/prompt-template.ts#L8)
1470
1432
 
1471
1433
  ___
1472
1434
 
@@ -1476,7 +1438,7 @@ ___
1476
1438
 
1477
1439
  #### Defined in
1478
1440
 
1479
- [packages/ai-tool/src/funcs/event.ts:22](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/funcs/event.ts#L22)
1441
+ [packages/ai-tool/src/funcs/event.ts:22](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/funcs/event.ts#L22)
1480
1442
 
1481
1443
  ___
1482
1444
 
@@ -1486,7 +1448,7 @@ ___
1486
1448
 
1487
1449
  #### Defined in
1488
1450
 
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)
1451
+ [packages/ai-tool/src/funcs/event-client.ts:180](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/funcs/event-client.ts#L180)
1490
1452
 
1491
1453
  ___
1492
1454
 
@@ -1496,7 +1458,7 @@ ___
1496
1458
 
1497
1459
  #### Defined in
1498
1460
 
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)
1461
+ [packages/ai-tool/src/funcs/event-server.ts:133](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/funcs/event-server.ts#L133)
1500
1462
 
1501
1463
  ___
1502
1464
 
@@ -1506,7 +1468,7 @@ ___
1506
1468
 
1507
1469
  #### Defined in
1508
1470
 
1509
- [packages/ai-tool/src/funcs/lrucache.ts:40](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/funcs/lrucache.ts#L40)
1471
+ [packages/ai-tool/src/funcs/lrucache.ts:40](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/funcs/lrucache.ts#L40)
1510
1472
 
1511
1473
  ___
1512
1474
 
@@ -1571,7 +1533,7 @@ Will throw an error if the response is not OK.
1571
1533
 
1572
1534
  #### Defined in
1573
1535
 
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)
1536
+ [packages/ai-tool/src/utils/stream/ai-stream.ts:122](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/stream/ai-stream.ts#L122)
1575
1537
 
1576
1538
  ___
1577
1539
 
@@ -1602,7 +1564,7 @@ Creates a rate limiter function that blocks with a promise whenever the rate lim
1602
1564
 
1603
1565
  #### Defined in
1604
1566
 
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)
1567
+ [packages/ai-tool/src/utils/async-semaphore.ts:347](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/async-semaphore.ts#L347)
1606
1568
 
1607
1569
  ___
1608
1570
 
@@ -1626,7 +1588,7 @@ ___
1626
1588
 
1627
1589
  #### Defined in
1628
1590
 
1629
- [packages/ai-tool/src/funcs/lrucache.ts:6](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/funcs/lrucache.ts#L6)
1591
+ [packages/ai-tool/src/funcs/lrucache.ts:6](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/funcs/lrucache.ts#L6)
1630
1592
 
1631
1593
  ___
1632
1594
 
@@ -1647,7 +1609,7 @@ ___
1647
1609
 
1648
1610
  #### Defined in
1649
1611
 
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)
1612
+ [packages/ai-tool/src/utils/event/event-ability.ts:80](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/event/event-ability.ts#L80)
1651
1613
 
1652
1614
  ___
1653
1615
 
@@ -1692,6 +1654,33 @@ node_modules/.pnpm/json-canonicalize@1.0.6/node_modules/json-canonicalize/types/
1692
1654
 
1693
1655
  ___
1694
1656
 
1657
+ ### countRegexMatches
1658
+
1659
+ ▸ **countRegexMatches**(`content`, `regex`): `number`
1660
+
1661
+ Counts the number of matches for a given regular expression in a specified string.
1662
+ This function ensures that the regular expression is used globally by adding the 'g' flag,
1663
+ if it is not already present.
1664
+
1665
+ #### Parameters
1666
+
1667
+ | Name | Type | Description |
1668
+ | :------ | :------ | :------ |
1669
+ | `content` | `string` | The string to search within. |
1670
+ | `regex` | `RegExp` | The regular expression to use for matching. |
1671
+
1672
+ #### Returns
1673
+
1674
+ `number`
1675
+
1676
+ The total number of matches found.
1677
+
1678
+ #### Defined in
1679
+
1680
+ [packages/ai-tool/src/utils/count-regex-matches.ts:10](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/count-regex-matches.ts#L10)
1681
+
1682
+ ___
1683
+
1695
1684
  ### createAbilityInjector
1696
1685
 
1697
1686
  ▸ **createAbilityInjector**(`abilityClass`, `isGetClassFunc?`, `injectorOpts?`): `AbilityFn`
@@ -1813,7 +1802,7 @@ const transformer = createCallbacksTransformer(callbacks);
1813
1802
 
1814
1803
  #### Defined in
1815
1804
 
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)
1805
+ [packages/ai-tool/src/utils/stream/create-callbacks-stream.ts:36](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/stream/create-callbacks-stream.ts#L36)
1817
1806
 
1818
1807
  ___
1819
1808
 
@@ -1833,7 +1822,7 @@ An empty and closed ReadableStream instance.
1833
1822
 
1834
1823
  #### Defined in
1835
1824
 
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)
1825
+ [packages/ai-tool/src/utils/stream/create-empty-stream.ts:8](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/stream/create-empty-stream.ts#L8)
1837
1826
 
1838
1827
  ___
1839
1828
 
@@ -1865,7 +1854,7 @@ ___
1865
1854
 
1866
1855
  #### Defined in
1867
1856
 
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)
1857
+ [packages/ai-tool/src/utils/end-with-repeated-sequence.ts:3](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/end-with-repeated-sequence.ts#L3)
1869
1858
 
1870
1859
  ___
1871
1860
 
@@ -1891,7 +1880,7 @@ Error object
1891
1880
 
1892
1881
  #### Defined in
1893
1882
 
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)
1883
+ [packages/ai-tool/src/utils/base-error.ts:220](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/base-error.ts#L220)
1895
1884
 
1896
1885
  ___
1897
1886
 
@@ -1922,7 +1911,7 @@ TransformStream parsing events.
1922
1911
 
1923
1912
  #### Defined in
1924
1913
 
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)
1914
+ [packages/ai-tool/src/utils/stream/ai-stream.ts:37](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/stream/ai-stream.ts#L37)
1926
1915
 
1927
1916
  ___
1928
1917
 
@@ -1954,7 +1943,7 @@ ___
1954
1943
 
1955
1944
  #### Defined in
1956
1945
 
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)
1946
+ [packages/ai-tool/src/utils/prompt/hf-prompt-template.ts:148](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/hf-prompt-template.ts#L148)
1958
1947
 
1959
1948
  ___
1960
1949
 
@@ -1975,7 +1964,7 @@ ___
1975
1964
 
1976
1965
  #### Defined in
1977
1966
 
1978
- [packages/ai-tool/src/funcs/lrucache.ts:22](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/funcs/lrucache.ts#L22)
1967
+ [packages/ai-tool/src/funcs/lrucache.ts:22](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/funcs/lrucache.ts#L22)
1979
1968
 
1980
1969
  ___
1981
1970
 
@@ -1996,7 +1985,7 @@ ___
1996
1985
 
1997
1986
  #### Defined in
1998
1987
 
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)
1988
+ [packages/ai-tool/src/utils/to-datetime.ts:29](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/to-datetime.ts#L29)
2000
1989
 
2001
1990
  ___
2002
1991
 
@@ -2035,7 +2024,7 @@ console.log(process.env.HELLO) // undefined
2035
2024
 
2036
2025
  #### Defined in
2037
2026
 
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)
2027
+ [packages/ai-tool/src/utils/prompt/template/env.ts:82](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/template/env.ts#L82)
2039
2028
 
2040
2029
  ___
2041
2030
 
@@ -2079,7 +2068,7 @@ const expandedObj = expandObjEnv(obj, { processEnv: myCustomEnv }); // Assuming
2079
2068
 
2080
2069
  #### Defined in
2081
2070
 
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)
2071
+ [packages/ai-tool/src/utils/prompt/template/env.ts:142](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/template/env.ts#L142)
2083
2072
 
2084
2073
  ___
2085
2074
 
@@ -2119,7 +2108,7 @@ extNameLevel(".json5");
2119
2108
 
2120
2109
  #### Defined in
2121
2110
 
2122
- [packages/ai-tool/src/utils/filename.ts:209](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L209)
2111
+ [packages/ai-tool/src/utils/filename.ts:209](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/filename.ts#L209)
2123
2112
 
2124
2113
  ___
2125
2114
 
@@ -2138,7 +2127,7 @@ A compiled regular expression for reserved filename characters.
2138
2127
 
2139
2128
  #### Defined in
2140
2129
 
2141
- [packages/ai-tool/src/utils/filename.ts:42](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L42)
2130
+ [packages/ai-tool/src/utils/filename.ts:42](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/filename.ts#L42)
2142
2131
 
2143
2132
  ___
2144
2133
 
@@ -2168,7 +2157,7 @@ An array containing all string keys of the specified enumeration.
2168
2157
 
2169
2158
  #### Defined in
2170
2159
 
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)
2160
+ [packages/ai-tool/src/utils/get-all-enum-keys.ts:7](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/get-all-enum-keys.ts#L7)
2172
2161
 
2173
2162
  ___
2174
2163
 
@@ -2189,7 +2178,7 @@ ___
2189
2178
 
2190
2179
  #### Defined in
2191
2180
 
2192
- [packages/ai-tool/src/utils/config.ts:56](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/config.ts#L56)
2181
+ [packages/ai-tool/src/utils/config.ts:56](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/config.ts#L56)
2193
2182
 
2194
2183
  ___
2195
2184
 
@@ -2210,7 +2199,7 @@ ___
2210
2199
 
2211
2200
  #### Defined in
2212
2201
 
2213
- [packages/ai-tool/src/utils/config.ts:80](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/config.ts#L80)
2202
+ [packages/ai-tool/src/utils/config.ts:80](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/config.ts#L80)
2214
2203
 
2215
2204
  ___
2216
2205
 
@@ -2247,7 +2236,7 @@ console.log(getKeysPath(obj)); // Output: ['a.b.c', 'd[0]', 'd[1].e']
2247
2236
 
2248
2237
  #### Defined in
2249
2238
 
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)
2239
+ [packages/ai-tool/src/utils/get-keys-path.ts:16](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/get-keys-path.ts#L16)
2251
2240
 
2252
2241
  ___
2253
2242
 
@@ -2272,7 +2261,7 @@ Returns a concatenated string of multiple extensions, or an empty string if no e
2272
2261
 
2273
2262
  #### Defined in
2274
2263
 
2275
- [packages/ai-tool/src/utils/filename.ts:174](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L174)
2264
+ [packages/ai-tool/src/utils/filename.ts:174](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/filename.ts#L174)
2276
2265
 
2277
2266
  ___
2278
2267
 
@@ -2303,7 +2292,7 @@ console.log(realPath); // Outputs the resolved path.
2303
2292
 
2304
2293
  #### Defined in
2305
2294
 
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)
2295
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:148](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/load-file-from-paths.ts#L148)
2307
2296
 
2308
2297
  ___
2309
2298
 
@@ -2323,7 +2312,7 @@ ___
2323
2312
 
2324
2313
  #### Defined in
2325
2314
 
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)
2315
+ [packages/ai-tool/src/utils/stream/error-readable-stream.ts:12](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/stream/error-readable-stream.ts#L12)
2327
2316
 
2328
2317
  ___
2329
2318
 
@@ -2346,7 +2335,7 @@ Operator precedence can be found here: https://developer.mozilla.org/en-US/docs/
2346
2335
 
2347
2336
  #### Defined in
2348
2337
 
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)
2338
+ [packages/ai-tool/src/utils/prompt/template/jinja/src/parser.ts:32](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/template/jinja/src/parser.ts#L32)
2350
2339
 
2351
2340
  ___
2352
2341
 
@@ -2369,7 +2358,7 @@ Generate a list of tokens from a source string.
2369
2358
 
2370
2359
  #### Defined in
2371
2360
 
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)
2361
+ [packages/ai-tool/src/utils/prompt/template/jinja/src/lexer.ts:200](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/template/jinja/src/lexer.ts#L200)
2373
2362
 
2374
2363
  ___
2375
2364
 
@@ -2391,7 +2380,7 @@ ___
2391
2380
 
2392
2381
  #### Defined in
2393
2382
 
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)
2383
+ [packages/ai-tool/src/utils/prompt/template/env.ts:17](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/template/env.ts#L17)
2395
2384
 
2396
2385
  ___
2397
2386
 
@@ -2416,7 +2405,7 @@ template have been replaced with their corresponding values.
2416
2405
 
2417
2406
  #### Defined in
2418
2407
 
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)
2408
+ [packages/ai-tool/src/utils/prompt/template/python.ts:71](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/template/python.ts#L71)
2420
2409
 
2421
2410
  ___
2422
2411
 
@@ -2440,7 +2429,7 @@ Parse and interpolate template
2440
2429
 
2441
2430
  #### Defined in
2442
2431
 
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)
2432
+ [packages/ai-tool/src/utils/prompt/template/golang.ts:269](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/template/golang.ts#L269)
2444
2433
 
2445
2434
  ___
2446
2435
 
@@ -2479,7 +2468,7 @@ IsModelNameMatched("gpt-2", (modelName) => modelName.startsWith("gpt-")) // retu
2479
2468
 
2480
2469
  #### Defined in
2481
2470
 
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)
2471
+ [packages/ai-tool/src/utils/is-model-name-matched.ts:21](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/is-model-name-matched.ts#L21)
2483
2472
 
2484
2473
  ___
2485
2474
 
@@ -2514,7 +2503,7 @@ isValidFilename('my<file.txt'); // Returns false
2514
2503
 
2515
2504
  #### Defined in
2516
2505
 
2517
- [packages/ai-tool/src/utils/filename.ts:63](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L63)
2506
+ [packages/ai-tool/src/utils/filename.ts:63](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/filename.ts#L63)
2518
2507
 
2519
2508
  ___
2520
2509
 
@@ -2538,7 +2527,7 @@ A boolean indicating whether the filepath is valid. Returns true if valid; false
2538
2527
 
2539
2528
  #### Defined in
2540
2529
 
2541
- [packages/ai-tool/src/utils/filename.ts:72](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L72)
2530
+ [packages/ai-tool/src/utils/filename.ts:72](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/filename.ts#L72)
2542
2531
 
2543
2532
  ___
2544
2533
 
@@ -2558,7 +2547,7 @@ ___
2558
2547
 
2559
2548
  #### Defined in
2560
2549
 
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)
2550
+ [packages/ai-tool/src/utils/stream/is-web-stream.ts:1](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/stream/is-web-stream.ts#L1)
2562
2551
 
2563
2552
  ___
2564
2553
 
@@ -2599,7 +2588,7 @@ console.log(jsonFilterToWhere(jsonFilter)); // Outputs a WHERE clause based on t
2599
2588
 
2600
2589
  #### Defined in
2601
2590
 
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)
2591
+ [packages/ai-tool/src/utils/json-filter.ts:123](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/json-filter.ts#L123)
2603
2592
 
2604
2593
  ___
2605
2594
 
@@ -2624,7 +2613,7 @@ ___
2624
2613
 
2625
2614
  #### Defined in
2626
2615
 
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)
2616
+ [packages/ai-tool/src/utils/json-to-markdown-str.ts:2](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/json-to-markdown-str.ts#L2)
2628
2617
 
2629
2618
  ___
2630
2619
 
@@ -2664,7 +2653,7 @@ const content = loadFileFromPaths('config', ['/etc', '/usr/local/etc'], ['.json'
2664
2653
 
2665
2654
  #### Defined in
2666
2655
 
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)
2656
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:22](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/load-file-from-paths.ts#L22)
2668
2657
 
2669
2658
  ___
2670
2659
 
@@ -2688,7 +2677,7 @@ ___
2688
2677
 
2689
2678
  #### Defined in
2690
2679
 
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)
2680
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:79](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/load-file-from-paths.ts#L79)
2692
2681
 
2693
2682
  ___
2694
2683
 
@@ -2709,7 +2698,7 @@ typeof [`ToolFunc`](classes/ToolFunc.md)
2709
2698
 
2710
2699
  #### Defined in
2711
2700
 
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)
2701
+ [packages/ai-tool/src/utils/cancelable-ability.ts:340](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/cancelable-ability.ts#L340)
2713
2702
 
2714
2703
  ___
2715
2704
 
@@ -2758,7 +2747,7 @@ matchUrlProtocol("noProtocolHere");
2758
2747
 
2759
2748
  #### Defined in
2760
2749
 
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)
2750
+ [packages/ai-tool/src/utils/match-url-protocol.ts:23](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/match-url-protocol.ts#L23)
2762
2751
 
2763
2752
  ___
2764
2753
 
@@ -2778,7 +2767,7 @@ ___
2778
2767
 
2779
2768
  #### Defined in
2780
2769
 
2781
- [packages/ai-tool/src/utils/chat.ts:116](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/chat.ts#L116)
2770
+ [packages/ai-tool/src/utils/chat.ts:116](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/chat.ts#L116)
2782
2771
 
2783
2772
  ___
2784
2773
 
@@ -2804,7 +2793,7 @@ A string representing the formatted parameter size with the appropriate scale un
2804
2793
 
2805
2794
  #### Defined in
2806
2795
 
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)
2796
+ [packages/ai-tool/src/utils/convert-params-size.ts:11](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/convert-params-size.ts#L11)
2808
2797
 
2809
2798
  ___
2810
2799
 
@@ -2829,7 +2818,7 @@ extract from langchain.js/langchain-core/src/prompts/template.ts
2829
2818
 
2830
2819
  #### Defined in
2831
2820
 
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)
2821
+ [packages/ai-tool/src/utils/prompt/template/python.ts:16](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/template/python.ts#L16)
2833
2822
 
2834
2823
  ___
2835
2824
 
@@ -2863,7 +2852,7 @@ console.log(json); // { name: 'John' }
2863
2852
 
2864
2853
  #### Defined in
2865
2854
 
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)
2855
+ [packages/ai-tool/src/utils/parse-js-json.ts:14](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/parse-js-json.ts#L14)
2867
2856
 
2868
2857
  ___
2869
2858
 
@@ -2883,7 +2872,7 @@ ___
2883
2872
 
2884
2873
  #### Defined in
2885
2874
 
2886
- [packages/ai-tool/src/utils/config.ts:25](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/config.ts#L25)
2875
+ [packages/ai-tool/src/utils/config.ts:25](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/config.ts#L25)
2887
2876
 
2888
2877
  ___
2889
2878
 
@@ -2901,7 +2890,7 @@ A compiled regular expression for control characters in a filename.
2901
2890
 
2902
2891
  #### Defined in
2903
2892
 
2904
- [packages/ai-tool/src/utils/filename.ts:50](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L50)
2893
+ [packages/ai-tool/src/utils/filename.ts:50](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/filename.ts#L50)
2905
2894
 
2906
2895
  ___
2907
2896
 
@@ -2935,7 +2924,7 @@ console.log(files); // Outputs an array of JavaScript file paths.
2935
2924
 
2936
2925
  #### Defined in
2937
2926
 
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)
2927
+ [packages/ai-tool/src/utils/load-file-from-paths.ts:105](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/load-file-from-paths.ts#L105)
2939
2928
 
2940
2929
  ___
2941
2930
 
@@ -2964,7 +2953,7 @@ https://github.com/whatwg/streams/commit/8d7a0bf26eb2cc23e884ddbaac7c1da4b91cf2b
2964
2953
 
2965
2954
  #### Defined in
2966
2955
 
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)
2956
+ [packages/ai-tool/src/utils/stream/ai-stream.ts:166](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/stream/ai-stream.ts#L166)
2968
2957
 
2969
2958
  ___
2970
2959
 
@@ -2978,7 +2967,7 @@ ___
2978
2967
 
2979
2968
  #### Defined in
2980
2969
 
2981
- [packages/ai-tool/src/funcs/index.ts:9](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/funcs/index.ts#L9)
2970
+ [packages/ai-tool/src/funcs/index.ts:9](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/funcs/index.ts#L9)
2982
2971
 
2983
2972
  ___
2984
2973
 
@@ -2998,7 +2987,7 @@ ___
2998
2987
 
2999
2988
  #### Defined in
3000
2989
 
3001
- [packages/ai-tool/src/utils/config.ts:15](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/config.ts#L15)
2990
+ [packages/ai-tool/src/utils/config.ts:15](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/config.ts#L15)
3002
2991
 
3003
2992
  ___
3004
2993
 
@@ -3027,7 +3016,7 @@ The sanitized filename.
3027
3016
 
3028
3017
  #### Defined in
3029
3018
 
3030
- [packages/ai-tool/src/utils/filename.ts:97](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L97)
3019
+ [packages/ai-tool/src/utils/filename.ts:97](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/filename.ts#L97)
3031
3020
 
3032
3021
  ___
3033
3022
 
@@ -3052,7 +3041,7 @@ The sanitized file path as a string.
3052
3041
 
3053
3042
  #### Defined in
3054
3043
 
3055
- [packages/ai-tool/src/utils/filename.ts:149](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/filename.ts#L149)
3044
+ [packages/ai-tool/src/utils/filename.ts:149](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/filename.ts#L149)
3056
3045
 
3057
3046
  ___
3058
3047
 
@@ -3074,7 +3063,7 @@ ___
3074
3063
 
3075
3064
  #### Defined in
3076
3065
 
3077
- [packages/ai-tool/src/utils/config.ts:85](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/config.ts#L85)
3066
+ [packages/ai-tool/src/utils/config.ts:85](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/config.ts#L85)
3078
3067
 
3079
3068
  ___
3080
3069
 
@@ -3098,7 +3087,7 @@ The parameter size in bytes.
3098
3087
 
3099
3088
  #### Defined in
3100
3089
 
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)
3090
+ [packages/ai-tool/src/utils/convert-params-size.ts:44](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/convert-params-size.ts#L44)
3102
3091
 
3103
3092
  ___
3104
3093
 
@@ -3124,7 +3113,7 @@ ___
3124
3113
 
3125
3114
  #### Defined in
3126
3115
 
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)
3116
+ [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:4](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/prompt/few-shot-prompt-template.ts#L4)
3128
3117
 
3129
3118
  ___
3130
3119
 
@@ -3154,7 +3143,7 @@ console.log(splitSentence(text)); // returns ['Hello world!', 'How are you toda
3154
3143
 
3155
3144
  #### Defined in
3156
3145
 
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)
3146
+ [packages/ai-tool/src/utils/split-sentence.ts:29](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/split-sentence.ts#L29)
3158
3147
 
3159
3148
  ___
3160
3149
 
@@ -3218,7 +3207,7 @@ ___
3218
3207
 
3219
3208
  #### Defined in
3220
3209
 
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)
3210
+ [packages/ai-tool/src/utils/to-datetime.ts:25](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/to-datetime.ts#L25)
3222
3211
 
3223
3212
  ___
3224
3213
 
@@ -3246,7 +3235,7 @@ Throws a BaseError object
3246
3235
 
3247
3236
  #### Defined in
3248
3237
 
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)
3238
+ [packages/ai-tool/src/utils/base-error.ts:235](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/base-error.ts#L235)
3250
3239
 
3251
3240
  ___
3252
3241
 
@@ -3266,7 +3255,7 @@ ___
3266
3255
 
3267
3256
  #### Defined in
3268
3257
 
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)
3258
+ [packages/ai-tool/src/utils/to-datetime.ts:9](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/to-datetime.ts#L9)
3270
3259
 
3271
3260
  ___
3272
3261
 
@@ -3308,7 +3297,7 @@ const output2 = trimStart(" text"); // " text"
3308
3297
 
3309
3298
  #### Defined in
3310
3299
 
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)
3300
+ [packages/ai-tool/src/utils/stream/ai-stream.ts:92](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/stream/ai-stream.ts#L92)
3312
3301
 
3313
3302
  ___
3314
3303
 
@@ -3348,7 +3337,7 @@ truncTo(1.2345, 2, 0.6)
3348
3337
 
3349
3338
  #### Defined in
3350
3339
 
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)
3340
+ [packages/ai-tool/src/utils/trunc-to.ts:19](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/trunc-to.ts#L19)
3352
3341
 
3353
3342
  ___
3354
3343
 
@@ -3369,7 +3358,7 @@ ___
3369
3358
 
3370
3359
  #### Defined in
3371
3360
 
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)
3361
+ [packages/ai-tool/src/utils/hash/uuid.ts:8](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/hash/uuid.ts#L8)
3373
3362
 
3374
3363
  ___
3375
3364
 
@@ -3604,7 +3593,7 @@ ___
3604
3593
 
3605
3594
  #### Defined in
3606
3595
 
3607
- [packages/ai-tool/src/utils/wait.ts:1](https://github.com/isdk/ai-tool.js/blob/43e2dd311b252f4a811e695a7944005766712a72/src/utils/wait.ts#L1)
3596
+ [packages/ai-tool/src/utils/wait.ts:1](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/wait.ts#L1)
3608
3597
 
3609
3598
  ___
3610
3599
 
@@ -3626,7 +3615,7 @@ ___
3626
3615
 
3627
3616
  #### Defined in
3628
3617
 
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)
3618
+ [packages/ai-tool/src/utils/hash/xxhash.ts:32](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/hash/xxhash.ts#L32)
3630
3619
 
3631
3620
  ___
3632
3621
 
@@ -3647,7 +3636,7 @@ ___
3647
3636
 
3648
3637
  #### Defined in
3649
3638
 
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)
3639
+ [packages/ai-tool/src/utils/hash/xxhash.ts:11](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/hash/xxhash.ts#L11)
3651
3640
 
3652
3641
  ___
3653
3642
 
@@ -3668,7 +3657,7 @@ ___
3668
3657
 
3669
3658
  #### Defined in
3670
3659
 
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)
3660
+ [packages/ai-tool/src/utils/hash/xxhash.ts:18](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/hash/xxhash.ts#L18)
3672
3661
 
3673
3662
  ___
3674
3663
 
@@ -3690,4 +3679,4 @@ ___
3690
3679
 
3691
3680
  #### Defined in
3692
3681
 
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)
3682
+ [packages/ai-tool/src/utils/hash/xxhash.ts:48](https://github.com/isdk/ai-tool.js/blob/262bec683a365fd77a8c1ea7cbf9a636e19c4ce2/src/utils/hash/xxhash.ts#L48)