@isdk/ai-tool 0.1.5 → 0.2.1

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 (255) hide show
  1. package/dist/chunk-PXQPLL62.mjs +1 -0
  2. package/dist/chunk-TOUPOZHH.mjs +1 -0
  3. package/dist/find-port-qS1CZ9c-.d.mts +3 -0
  4. package/dist/find-port-qS1CZ9c-.d.ts +3 -0
  5. package/dist/funcs.d.mts +2 -2
  6. package/dist/funcs.d.ts +2 -2
  7. package/dist/funcs.js +1 -1
  8. package/dist/funcs.mjs +1 -1
  9. package/dist/{index-DvpywQaE.d.mts → index-DUEs7T8M.d.mts} +5 -153
  10. package/dist/{index-DvpywQaE.d.ts → index-DUEs7T8M.d.ts} +5 -153
  11. package/dist/index.d.mts +23 -5
  12. package/dist/index.d.ts +23 -5
  13. package/dist/index.js +1 -1
  14. package/dist/index.mjs +1 -1
  15. package/dist/test/util.d.mts +3 -3
  16. package/dist/test/util.d.ts +3 -3
  17. package/dist/test/util.js +1 -1
  18. package/dist/test/util.mjs +1 -1
  19. package/docs/README.md +5 -3
  20. package/docs/_media/CONTRIBUTING.md +18 -0
  21. package/docs/_media/LICENSE-MIT +22 -0
  22. package/docs/classes/AbortError.md +108 -129
  23. package/docs/classes/AlreadyExistsError.md +105 -126
  24. package/docs/classes/BaseError.md +112 -125
  25. package/docs/classes/CancelableAbility.md +136 -188
  26. package/docs/classes/ClientTools.md +1005 -1107
  27. package/docs/classes/CommonError.md +115 -136
  28. package/docs/classes/ConfigFile.md +150 -163
  29. package/docs/classes/EventClient.md +1128 -1282
  30. package/docs/classes/EventServer.md +1165 -1303
  31. package/docs/classes/EventToolFunc.md +958 -1028
  32. package/docs/classes/FStringPromptTemplate.md +352 -438
  33. package/docs/classes/FewShotPromptTemplate.md +364 -464
  34. package/docs/classes/GolangPromptTemplate.md +352 -438
  35. package/docs/classes/HFEnvironment.md +53 -79
  36. package/docs/classes/HFInterpreter.md +20 -377
  37. package/docs/classes/HFTemplate.md +21 -33
  38. package/docs/classes/HfPromptTemplate.md +352 -438
  39. package/docs/classes/IntSet.md +67 -100
  40. package/docs/classes/NotFoundError.md +105 -126
  41. package/docs/classes/NotImplementationError.md +105 -126
  42. package/docs/classes/PromptExampleSelector.md +58 -70
  43. package/docs/classes/PromptTemplate.md +338 -422
  44. package/docs/classes/ReadableStreamError.md +108 -129
  45. package/docs/classes/ResClientTools.md +916 -1026
  46. package/docs/classes/ResServerTools.md +919 -1026
  47. package/docs/classes/SSEChannel.md +93 -112
  48. package/docs/classes/Semaphore.md +44 -140
  49. package/docs/classes/ServerTools.md +981 -1072
  50. package/docs/classes/TaskAbortController.md +46 -66
  51. package/docs/classes/ToolFunc.md +840 -910
  52. package/docs/enumerations/AsyncFeatureBits.md +37 -0
  53. package/docs/enumerations/AsyncFeatures.md +37 -0
  54. package/docs/enumerations/ErrorCode.md +217 -0
  55. package/docs/enumerations/XXHashAlgorithm.md +27 -0
  56. package/docs/functions/AIArgProcessor.md +27 -0
  57. package/docs/functions/AIStream.md +50 -0
  58. package/docs/functions/ChoiceArgProcessor.md +27 -0
  59. package/docs/functions/RateLimit.md +33 -0
  60. package/docs/functions/TemplateArgProcessor.md +27 -0
  61. package/docs/functions/backendEventable.md +23 -0
  62. package/docs/functions/canonicalize.md +21 -0
  63. package/docs/functions/countRegexMatches.md +33 -0
  64. package/docs/functions/createAbilityInjector.md +87 -0
  65. package/docs/functions/createCallbacksTransformer.md +49 -0
  66. package/docs/functions/createEmptyReadableStream.md +23 -0
  67. package/docs/functions/createEndWithRepetitionDetector.md +29 -0
  68. package/docs/functions/createError.md +35 -0
  69. package/docs/functions/createEventStreamTransformer.md +33 -0
  70. package/docs/functions/createHfValueFunc.md +29 -0
  71. package/docs/functions/createLRUCache.md +23 -0
  72. package/docs/functions/dateToText.md +23 -0
  73. package/docs/functions/expandEnv.md +40 -0
  74. package/docs/functions/expandObjEnv.md +54 -0
  75. package/docs/functions/extNameLevel.md +43 -0
  76. package/docs/functions/fileIsExists.md +34 -0
  77. package/docs/functions/filenameReservedRegex.md +22 -0
  78. package/docs/functions/filterValidFnScope.md +21 -0
  79. package/docs/functions/findPort.md +23 -0
  80. package/docs/functions/formatISO.md +71 -0
  81. package/docs/functions/getAllEnumKeys.md +31 -0
  82. package/docs/functions/getConfigFileNames.md +23 -0
  83. package/docs/functions/getConfigs.md +23 -0
  84. package/docs/functions/getKeysPath.md +38 -0
  85. package/docs/functions/getMultiLevelExtname.md +31 -0
  86. package/docs/functions/getPackageDir.md +39 -0
  87. package/docs/functions/getRealFilepath.md +34 -0
  88. package/docs/functions/getResponseErrorReadableStream.md +21 -0
  89. package/docs/functions/hfParse.md +24 -0
  90. package/docs/functions/hfTokenize.md +25 -0
  91. package/docs/functions/interpolateEnv.md +25 -0
  92. package/docs/functions/interpolateFString.md +27 -0
  93. package/docs/functions/interpolateGolangTemplate.md +31 -0
  94. package/docs/functions/isModelNameMatched.md +45 -0
  95. package/docs/functions/isValidFilename.md +38 -0
  96. package/docs/functions/isValidFilepath.md +27 -0
  97. package/docs/functions/isWebStream.md +21 -0
  98. package/docs/functions/jsonFilterToWhere.md +45 -0
  99. package/docs/functions/jsonToMarkdownStr.md +31 -0
  100. package/docs/functions/loadFileFromPaths.md +54 -0
  101. package/docs/functions/loadTextFromPaths.md +29 -0
  102. package/docs/functions/lrucache.md +29 -0
  103. package/docs/functions/makeToolFuncCancelable.md +23 -0
  104. package/docs/functions/matchUrlProtocol.md +48 -0
  105. package/docs/functions/memoize.md +27 -0
  106. package/docs/functions/messagesToText.md +21 -0
  107. package/docs/functions/paramsSizeToScaleStr.md +32 -0
  108. package/docs/functions/parseCommand.md +33 -0
  109. package/docs/functions/parseDateFormat.md +360 -0
  110. package/docs/functions/parseFString.md +26 -0
  111. package/docs/functions/parseISO.md +72 -0
  112. package/docs/functions/parseJsJson.md +38 -0
  113. package/docs/functions/parseObjectArgInfo.md +27 -0
  114. package/docs/functions/parseObjectArgumentInfos.md +25 -0
  115. package/docs/functions/parseObjectArguments.md +68 -0
  116. package/docs/functions/parseObjectArgumentsAsArgInfos.md +42 -0
  117. package/docs/functions/parseYaml.md +21 -0
  118. package/docs/functions/quoteStr.md +21 -0
  119. package/docs/functions/reControlCharsRegex.md +21 -0
  120. package/docs/functions/readFilenamesRecursiveSync.md +47 -0
  121. package/docs/functions/readableFromAsyncIterable.md +28 -0
  122. package/docs/functions/registerCoreTools.md +17 -0
  123. package/docs/functions/registerYamlTag.md +21 -0
  124. package/docs/functions/sanitizeFilename.md +37 -0
  125. package/docs/functions/sanitizeFilepath.md +31 -0
  126. package/docs/functions/saveConfigFile.md +25 -0
  127. package/docs/functions/scaleStrToParamsSize.md +27 -0
  128. package/docs/functions/simplifyObjectArguments.md +21 -0
  129. package/docs/functions/sortedValues.md +25 -0
  130. package/docs/functions/splitSentence.md +37 -0
  131. package/docs/functions/stringifyYaml.md +49 -0
  132. package/docs/functions/textToDate.md +23 -0
  133. package/docs/functions/throwError.md +37 -0
  134. package/docs/functions/toDate.md +76 -0
  135. package/docs/functions/toDateTime.md +21 -0
  136. package/docs/functions/trimStartOfStreamHelper.md +41 -0
  137. package/docs/functions/truncTo.md +47 -0
  138. package/docs/functions/uuid.md +23 -0
  139. package/docs/functions/uuidParse.md +21 -0
  140. package/docs/functions/uuidStringify.md +23 -0
  141. package/docs/functions/uuidValidate.md +21 -0
  142. package/docs/functions/uuidVersion.md +21 -0
  143. package/docs/functions/uuidv1.md +47 -0
  144. package/docs/functions/uuidv4.md +47 -0
  145. package/docs/functions/uuidv5.md +51 -0
  146. package/docs/functions/wait.md +21 -0
  147. package/docs/functions/xxhash.md +25 -0
  148. package/docs/functions/xxhash32.md +23 -0
  149. package/docs/functions/xxhash64.md +23 -0
  150. package/docs/functions/xxhashAsStr.md +25 -0
  151. package/docs/globals.md +236 -0
  152. package/docs/interfaces/AIChatAssistantMessageParam.md +29 -38
  153. package/docs/interfaces/AIChatContentPartImage.md +11 -16
  154. package/docs/interfaces/AIChatContentPartText.md +9 -12
  155. package/docs/interfaces/AIChatMessageParamBase.md +12 -19
  156. package/docs/interfaces/AIChatMessageToolCall.md +18 -21
  157. package/docs/interfaces/AIChatSystemMessageParam.md +16 -22
  158. package/docs/interfaces/AIChatToolMessageParam.md +19 -26
  159. package/docs/interfaces/AIChatUserMessageParam.md +32 -42
  160. package/docs/interfaces/AIChoiceConfig.md +31 -39
  161. package/docs/interfaces/AIResult.md +26 -33
  162. package/docs/interfaces/AIStreamParser.md +24 -18
  163. package/docs/interfaces/AIStreamParserOptions.md +8 -10
  164. package/docs/interfaces/BaseFunc.md +55 -75
  165. package/docs/interfaces/BaseFuncItem.md +43 -61
  166. package/docs/interfaces/CancelableAbilityOptions.md +43 -54
  167. package/docs/interfaces/ClientFuncItem.md +66 -83
  168. package/docs/interfaces/DotenvExpandOptions.md +15 -19
  169. package/docs/interfaces/DotenvExpandOutput.md +11 -14
  170. package/docs/interfaces/DotenvParseInput.md +6 -2
  171. package/docs/interfaces/DotenvParseOutput.md +6 -2
  172. package/docs/interfaces/DotenvPopulateInput.md +6 -2
  173. package/docs/interfaces/EventClientFuncParams.md +22 -33
  174. package/docs/interfaces/EventServerFuncParams.md +27 -35
  175. package/docs/interfaces/FewShotPromptTemplateOptions.md +58 -74
  176. package/docs/interfaces/FuncItem.md +53 -70
  177. package/docs/interfaces/FuncParam.md +29 -36
  178. package/docs/interfaces/FuncParams.md +6 -2
  179. package/docs/interfaces/Funcs.md +6 -2
  180. package/docs/interfaces/JsonFilter.md +6 -2
  181. package/docs/interfaces/ParseObjectArgumentOptions.md +23 -29
  182. package/docs/interfaces/PromptExampleSelectorOptions.md +13 -16
  183. package/docs/interfaces/PromptTemplateOptions.md +31 -40
  184. package/docs/interfaces/RemoteFuncItem.md +64 -82
  185. package/docs/interfaces/ResClientFuncParams.md +14 -19
  186. package/docs/interfaces/ResServerFuncParams.md +28 -36
  187. package/docs/interfaces/SanitizeFilenameOptions.md +11 -14
  188. package/docs/interfaces/ServerFuncItem.md +70 -88
  189. package/docs/interfaces/ServerFuncParams.md +15 -20
  190. package/docs/interfaces/StreamCallbacksAndOptions.md +36 -65
  191. package/docs/interfaces/TaskAbortControllers.md +6 -2
  192. package/docs/interfaces/TaskPromise.md +48 -61
  193. package/docs/interfaces/ToolFuncPackage.md +18 -32
  194. package/docs/type-aliases/AIChatContentPart.md +13 -0
  195. package/docs/type-aliases/AIChatMessageParam.md +13 -0
  196. package/docs/type-aliases/AIChatRole.md +13 -0
  197. package/docs/type-aliases/AIMessageType.md +13 -0
  198. package/docs/type-aliases/AIModelNameRule.md +13 -0
  199. package/docs/type-aliases/AIModelNameRuleFn.md +21 -0
  200. package/docs/type-aliases/AIModelNameRules.md +13 -0
  201. package/docs/type-aliases/AITextGenerationFinishReason.md +13 -0
  202. package/docs/type-aliases/ActionName.md +13 -0
  203. package/docs/type-aliases/AsyncTaskId.md +13 -0
  204. package/docs/type-aliases/EventErrorListenerFn.md +27 -0
  205. package/docs/type-aliases/EventListenerFn.md +25 -0
  206. package/docs/type-aliases/FStringPromptTemplateNode.md +16 -0
  207. package/docs/type-aliases/FuncParamType.md +13 -0
  208. package/docs/type-aliases/PromptExamples.md +17 -0
  209. package/docs/type-aliases/PromptTemplateType.md +13 -0
  210. package/docs/type-aliases/PromptType.md +13 -0
  211. package/docs/type-aliases/TFunc.md +23 -0
  212. package/docs/variables/AIChatRoles.md +13 -0
  213. package/docs/variables/AIMessageTypes.md +13 -0
  214. package/docs/variables/AITextGenerationFinishReasons.md +13 -0
  215. package/docs/variables/AbortErrorCode.md +13 -0
  216. package/docs/variables/ActionNames.md +13 -0
  217. package/docs/variables/AlreadyExistsErrorCode.md +13 -0
  218. package/docs/variables/ClientToolFuncSchema.md +87 -0
  219. package/docs/variables/DefaultAsyncSemaphoreCapacity.md +13 -0
  220. package/docs/variables/EventBusName.md +13 -0
  221. package/docs/variables/EventName.md +13 -0
  222. package/docs/variables/FilenameReservedRegex.md +16 -0
  223. package/docs/variables/HFBuiltins.md +92 -0
  224. package/docs/variables/InternalErrorCode.md +13 -0
  225. package/docs/variables/NotFoundErrorCode.md +13 -0
  226. package/docs/variables/NotImplementedErrorCode.md +13 -0
  227. package/docs/variables/PASSING_SCORE.md +13 -0
  228. package/docs/variables/PromptTemplateTypes.md +13 -0
  229. package/docs/variables/PromptTypes.md +16 -0
  230. package/docs/variables/RStreamErrCode.md +13 -0
  231. package/docs/variables/RemoteToolFuncSchema.md +87 -0
  232. package/docs/variables/ResponseRStreamErrCode.md +13 -0
  233. package/docs/variables/SSEChannelAlreadyClosedErrCode.md +13 -0
  234. package/docs/variables/ServerToolFuncSchema.md +87 -0
  235. package/docs/variables/ToolAsyncCancelableBit.md +13 -0
  236. package/docs/variables/ToolAsyncMultiTaskBit.md +13 -0
  237. package/docs/variables/ToolAsyncPriorityBit.md +13 -0
  238. package/docs/variables/ToolFuncSchema.md +125 -0
  239. package/docs/variables/WindowsReservedNameRegex.md +15 -0
  240. package/docs/variables/base32768.md +13 -0
  241. package/docs/variables/defaultTemplateFormat.md +13 -0
  242. package/docs/variables/event.md +13 -0
  243. package/docs/variables/eventClient.md +13 -0
  244. package/docs/variables/eventServer.md +13 -0
  245. package/docs/variables/lrucache.md +13 -0
  246. package/docs/variables/mimeType.md +13 -0
  247. package/docs/variables/uuidNIL.md +13 -0
  248. package/package.json +28 -27
  249. package/dist/chunk-RNB2V3XB.mjs +0 -1
  250. package/docs/.nojekyll +0 -1
  251. package/docs/enums/AsyncFeatureBits.md +0 -41
  252. package/docs/enums/AsyncFeatures.md +0 -41
  253. package/docs/enums/ErrorCode.md +0 -239
  254. package/docs/enums/XXHashAlgorithm.md +0 -30
  255. package/docs/modules.md +0 -4020
@@ -0,0 +1,76 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / toDate
6
+
7
+ # Function: toDate()
8
+
9
+ > **toDate**\<`DateType`, `ResultDate`\>(`argument`, `context`?): `ResultDate`
10
+
11
+ ## Type Parameters
12
+
13
+ • **DateType** *extends* `Date` \| `ConstructableDate`
14
+
15
+ The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
16
+
17
+ • **ResultDate** *extends* `Date` = `DateType`
18
+
19
+ The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
20
+
21
+ ## Parameters
22
+
23
+ • **argument**: `DateArg`\<`DateType`\>
24
+
25
+ The value to convert
26
+
27
+ • **context?**: `ContextFn`\<`ResultDate`\>
28
+
29
+ ## Returns
30
+
31
+ `ResultDate`
32
+
33
+ The parsed date in the local time zone
34
+
35
+ ## Name
36
+
37
+ toDate
38
+
39
+ ## Summary
40
+
41
+ Convert the given argument to an instance of Date.
42
+
43
+ ## Description
44
+
45
+ Convert the given argument to an instance of Date.
46
+
47
+ If the argument is an instance of Date, the function returns its clone.
48
+
49
+ If the argument is a number, it is treated as a timestamp.
50
+
51
+ If the argument is none of the above, the function returns Invalid Date.
52
+
53
+ Starting from v3.7.0, it clones a date using `[Symbol.for("constructDateFrom")]`
54
+ enabling to transfer extra properties from the reference date to the new date.
55
+ It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)
56
+ that accept a time zone as a constructor argument.
57
+
58
+ **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
59
+
60
+ ## Examples
61
+
62
+ ```ts
63
+ // Clone the date:
64
+ const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
65
+ //=> Tue Feb 11 2014 11:30:30
66
+ ```
67
+
68
+ ```ts
69
+ // Convert the timestamp to date:
70
+ const result = toDate(1392098430000)
71
+ //=> Tue Feb 11 2014 11:30:30
72
+ ```
73
+
74
+ ## Defined in
75
+
76
+ node\_modules/.pnpm/date-fns@4.1.0/node\_modules/date-fns/toDate.d.ts:40
@@ -0,0 +1,21 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / toDateTime
6
+
7
+ # Function: toDateTime()
8
+
9
+ > **toDateTime**(`date`): `undefined` \| `Date`
10
+
11
+ ## Parameters
12
+
13
+ • **date**: `string` \| `number` \| `Date`
14
+
15
+ ## Returns
16
+
17
+ `undefined` \| `Date`
18
+
19
+ ## Defined in
20
+
21
+ [packages/ai-tool/src/utils/to-datetime.ts:9](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/to-datetime.ts#L9)
@@ -0,0 +1,41 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / trimStartOfStreamHelper
6
+
7
+ # Function: trimStartOfStreamHelper()
8
+
9
+ > **trimStartOfStreamHelper**(): (`text`) => `string`
10
+
11
+ Returns a stateful function that, when invoked, trims leading whitespace
12
+ from the input text. The trimming only occurs on the first invocation, ensuring that
13
+ subsequent calls do not alter the input text. This is particularly useful in scenarios
14
+ where a text stream is being processed and only the initial whitespace should be removed.
15
+
16
+ ## Returns
17
+
18
+ `Function`
19
+
20
+ A function that takes a string as input and returns a string
21
+ with leading whitespace removed if it is the first invocation; otherwise, it returns the input unchanged.
22
+
23
+ ### Parameters
24
+
25
+ • **text**: `string`
26
+
27
+ ### Returns
28
+
29
+ `string`
30
+
31
+ ## Example
32
+
33
+ ```ts
34
+ const trimStart = trimStartOfStreamHelper();
35
+ const output1 = trimStart(" text"); // "text"
36
+ const output2 = trimStart(" text"); // " text"
37
+ ```
38
+
39
+ ## Defined in
40
+
41
+ [packages/ai-tool/src/utils/stream/ai-stream.ts:92](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/stream/ai-stream.ts#L92)
@@ -0,0 +1,47 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / truncTo
6
+
7
+ # Function: truncTo()
8
+
9
+ > **truncTo**(`n`, `dec`, `up`): `number`
10
+
11
+ Truncates(Round) a number to a specified number of decimal places.
12
+
13
+ ## Parameters
14
+
15
+ • **n**: `number`
16
+
17
+ The number to truncate.
18
+
19
+ • **dec**: `number` = `2`
20
+
21
+ The number of decimal places to truncate to (default is 2).
22
+
23
+ • **up**: `number` = `0.5`
24
+
25
+ The amount to round up by before truncating (default is 0.5).
26
+
27
+ ## Returns
28
+
29
+ `number`
30
+
31
+ The truncated number.
32
+
33
+ ## Examples
34
+
35
+ ```ts
36
+ // returns 1.235
37
+ truncTo(1.2345, 3)
38
+ ```
39
+
40
+ ```ts
41
+ // returns 1.24
42
+ truncTo(1.2345, 2, 0.6)
43
+ ```
44
+
45
+ ## Defined in
46
+
47
+ [packages/ai-tool/src/utils/trunc-to.ts:19](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/trunc-to.ts#L19)
@@ -0,0 +1,23 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / uuid
6
+
7
+ # Function: uuid()
8
+
9
+ > **uuid**(`ver`, `encode`?): `string`
10
+
11
+ ## Parameters
12
+
13
+ • **ver**: `1` \| `4` \| `5` = `1`
14
+
15
+ • **encode?**: `boolean`
16
+
17
+ ## Returns
18
+
19
+ `string`
20
+
21
+ ## Defined in
22
+
23
+ [packages/ai-tool/src/utils/hash/uuid.ts:8](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/hash/uuid.ts#L8)
@@ -0,0 +1,21 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / uuidParse
6
+
7
+ # Function: uuidParse()
8
+
9
+ > **uuidParse**(`uuid`): `Uint8Array`
10
+
11
+ ## Parameters
12
+
13
+ • **uuid**: `string`
14
+
15
+ ## Returns
16
+
17
+ `Uint8Array`
18
+
19
+ ## Defined in
20
+
21
+ node\_modules/.pnpm/@types+uuid@10.0.0/node\_modules/@types/uuid/index.d.ts:102
@@ -0,0 +1,23 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / uuidStringify
6
+
7
+ # Function: uuidStringify()
8
+
9
+ > **uuidStringify**(`buffer`, `offset`?): `string`
10
+
11
+ ## Parameters
12
+
13
+ • **buffer**: `InputBuffer`
14
+
15
+ • **offset?**: `number`
16
+
17
+ ## Returns
18
+
19
+ `string`
20
+
21
+ ## Defined in
22
+
23
+ node\_modules/.pnpm/@types+uuid@10.0.0/node\_modules/@types/uuid/index.d.ts:103
@@ -0,0 +1,21 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / uuidValidate
6
+
7
+ # Function: uuidValidate()
8
+
9
+ > **uuidValidate**(`uuid`): `boolean`
10
+
11
+ ## Parameters
12
+
13
+ • **uuid**: `string`
14
+
15
+ ## Returns
16
+
17
+ `boolean`
18
+
19
+ ## Defined in
20
+
21
+ node\_modules/.pnpm/@types+uuid@10.0.0/node\_modules/@types/uuid/index.d.ts:112
@@ -0,0 +1,21 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / uuidVersion
6
+
7
+ # Function: uuidVersion()
8
+
9
+ > **uuidVersion**(`uuid`): `number`
10
+
11
+ ## Parameters
12
+
13
+ • **uuid**: `string`
14
+
15
+ ## Returns
16
+
17
+ `number`
18
+
19
+ ## Defined in
20
+
21
+ node\_modules/.pnpm/@types+uuid@10.0.0/node\_modules/@types/uuid/index.d.ts:113
@@ -0,0 +1,47 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / uuidv1
6
+
7
+ # Function: uuidv1()
8
+
9
+ ## uuidv1(options, buffer, offset)
10
+
11
+ > **uuidv1**\<`T`\>(`options`, `buffer`, `offset`?): `T`
12
+
13
+ ### Type Parameters
14
+
15
+ • **T** *extends* `OutputBuffer`
16
+
17
+ ### Parameters
18
+
19
+ • **options**: `undefined` \| `null` \| `V1Options`
20
+
21
+ • **buffer**: `T`
22
+
23
+ • **offset?**: `number`
24
+
25
+ ### Returns
26
+
27
+ `T`
28
+
29
+ ### Defined in
30
+
31
+ node\_modules/.pnpm/@types+uuid@10.0.0/node\_modules/@types/uuid/index.d.ts:104
32
+
33
+ ## uuidv1(options)
34
+
35
+ > **uuidv1**(`options`?): `string`
36
+
37
+ ### Parameters
38
+
39
+ • **options?**: `V1Options`
40
+
41
+ ### Returns
42
+
43
+ `string`
44
+
45
+ ### Defined in
46
+
47
+ node\_modules/.pnpm/@types+uuid@10.0.0/node\_modules/@types/uuid/index.d.ts:104
@@ -0,0 +1,47 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / uuidv4
6
+
7
+ # Function: uuidv4()
8
+
9
+ ## uuidv4(options, buffer, offset)
10
+
11
+ > **uuidv4**\<`T`\>(`options`, `buffer`, `offset`?): `T`
12
+
13
+ ### Type Parameters
14
+
15
+ • **T** *extends* `OutputBuffer`
16
+
17
+ ### Parameters
18
+
19
+ • **options**: `undefined` \| `null` \| `V4Options`
20
+
21
+ • **buffer**: `T`
22
+
23
+ • **offset?**: `number`
24
+
25
+ ### Returns
26
+
27
+ `T`
28
+
29
+ ### Defined in
30
+
31
+ node\_modules/.pnpm/@types+uuid@10.0.0/node\_modules/@types/uuid/index.d.ts:107
32
+
33
+ ## uuidv4(options)
34
+
35
+ > **uuidv4**(`options`?): `string`
36
+
37
+ ### Parameters
38
+
39
+ • **options?**: `V4Options`
40
+
41
+ ### Returns
42
+
43
+ `string`
44
+
45
+ ### Defined in
46
+
47
+ node\_modules/.pnpm/@types+uuid@10.0.0/node\_modules/@types/uuid/index.d.ts:107
@@ -0,0 +1,51 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / uuidv5
6
+
7
+ # Function: uuidv5()
8
+
9
+ ## uuidv5(name, namespace, buffer, offset)
10
+
11
+ > **uuidv5**\<`T`\>(`name`, `namespace`, `buffer`, `offset`?): `T`
12
+
13
+ ### Type Parameters
14
+
15
+ • **T** *extends* `OutputBuffer`
16
+
17
+ ### Parameters
18
+
19
+ • **name**: `string` \| `InputBuffer`
20
+
21
+ • **namespace**: `string` \| `InputBuffer`
22
+
23
+ • **buffer**: `T`
24
+
25
+ • **offset?**: `number`
26
+
27
+ ### Returns
28
+
29
+ `T`
30
+
31
+ ### Defined in
32
+
33
+ node\_modules/.pnpm/@types+uuid@10.0.0/node\_modules/@types/uuid/index.d.ts:108
34
+
35
+ ## uuidv5(name, namespace)
36
+
37
+ > **uuidv5**(`name`, `namespace`): `string`
38
+
39
+ ### Parameters
40
+
41
+ • **name**: `string` \| `InputBuffer`
42
+
43
+ • **namespace**: `string` \| `InputBuffer`
44
+
45
+ ### Returns
46
+
47
+ `string`
48
+
49
+ ### Defined in
50
+
51
+ node\_modules/.pnpm/@types+uuid@10.0.0/node\_modules/@types/uuid/index.d.ts:108
@@ -0,0 +1,21 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / wait
6
+
7
+ # Function: wait()
8
+
9
+ > **wait**(`ms`): `Promise`\<`void`\>
10
+
11
+ ## Parameters
12
+
13
+ • **ms**: `number`
14
+
15
+ ## Returns
16
+
17
+ `Promise`\<`void`\>
18
+
19
+ ## Defined in
20
+
21
+ [packages/ai-tool/src/utils/wait.ts:1](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/wait.ts#L1)
@@ -0,0 +1,25 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / xxhash
6
+
7
+ # Function: xxhash()
8
+
9
+ > **xxhash**(`value`, `hashAlgo`, `seed`): `Uint8Array`
10
+
11
+ ## Parameters
12
+
13
+ • **value**: `HashValue`
14
+
15
+ • **hashAlgo**: [`XXHashAlgorithm`](../enumerations/XXHashAlgorithm.md) = `XXHashAlgorithm.xxhash64`
16
+
17
+ • **seed**: `number` = `SEED`
18
+
19
+ ## Returns
20
+
21
+ `Uint8Array`
22
+
23
+ ## Defined in
24
+
25
+ [packages/ai-tool/src/utils/hash/xxhash.ts:32](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/hash/xxhash.ts#L32)
@@ -0,0 +1,23 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / xxhash32
6
+
7
+ # Function: xxhash32()
8
+
9
+ > **xxhash32**(`value`, `radix`): `string`
10
+
11
+ ## Parameters
12
+
13
+ • **value**: `string` \| `object`
14
+
15
+ • **radix**: `number` = `16`
16
+
17
+ ## Returns
18
+
19
+ `string`
20
+
21
+ ## Defined in
22
+
23
+ [packages/ai-tool/src/utils/hash/xxhash.ts:11](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/hash/xxhash.ts#L11)
@@ -0,0 +1,23 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / xxhash64
6
+
7
+ # Function: xxhash64()
8
+
9
+ > **xxhash64**(`value`, `radix`): `string`
10
+
11
+ ## Parameters
12
+
13
+ • **value**: `string` \| `object`
14
+
15
+ • **radix**: `number` = `16`
16
+
17
+ ## Returns
18
+
19
+ `string`
20
+
21
+ ## Defined in
22
+
23
+ [packages/ai-tool/src/utils/hash/xxhash.ts:18](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/hash/xxhash.ts#L18)
@@ -0,0 +1,25 @@
1
+ [**@isdk/ai-tool**](../README.md) • **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / xxhashAsStr
6
+
7
+ # Function: xxhashAsStr()
8
+
9
+ > **xxhashAsStr**(`value`, `hashAlgo`, `seed`): `string`
10
+
11
+ ## Parameters
12
+
13
+ • **value**: `string` \| `Uint8Array`
14
+
15
+ • **hashAlgo**: [`XXHashAlgorithm`](../enumerations/XXHashAlgorithm.md) = `XXHashAlgorithm.xxhash64`
16
+
17
+ • **seed**: `number` = `SEED`
18
+
19
+ ## Returns
20
+
21
+ `string`
22
+
23
+ ## Defined in
24
+
25
+ [packages/ai-tool/src/utils/hash/xxhash.ts:48](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/hash/xxhash.ts#L48)