@isdk/ai-tool 0.3.0 → 0.5.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 (296) hide show
  1. package/dist/chunk-VIG2GB47.mjs +39 -1
  2. package/dist/chunk-VJ45JQBR.mjs +7829 -0
  3. package/dist/funcs.d.mts +3 -2
  4. package/dist/funcs.d.ts +3 -2
  5. package/dist/funcs.js +5156 -1
  6. package/dist/funcs.mjs +29 -1
  7. package/dist/index-Br-4ZYgE.d.mts +892 -0
  8. package/dist/index-Br-4ZYgE.d.ts +892 -0
  9. package/dist/index.d.mts +206 -238
  10. package/dist/index.d.ts +206 -238
  11. package/dist/index.js +8132 -1
  12. package/dist/index.mjs +476 -1
  13. package/dist/test/util.js +101 -1
  14. package/dist/test/util.mjs +30 -1
  15. package/package.json +31 -31
  16. package/dist/chunk-JHHFTTVE.mjs +0 -1
  17. package/dist/index-BC3GQn6-.d.mts +0 -488
  18. package/dist/index-BC3GQn6-.d.ts +0 -488
  19. package/docs/README.md +0 -250
  20. package/docs/_media/CONTRIBUTING.md +0 -18
  21. package/docs/_media/LICENSE-MIT +0 -22
  22. package/docs/classes/AbortError.md +0 -368
  23. package/docs/classes/AlreadyExistsError.md +0 -348
  24. package/docs/classes/BaseError.md +0 -359
  25. package/docs/classes/CancelableAbility.md +0 -379
  26. package/docs/classes/ClientTools.md +0 -2691
  27. package/docs/classes/CommonError.md +0 -377
  28. package/docs/classes/ConfigFile.md +0 -333
  29. package/docs/classes/EventClient.md +0 -3119
  30. package/docs/classes/EventServer.md +0 -3149
  31. package/docs/classes/EventToolFunc.md +0 -2533
  32. package/docs/classes/FStringPromptTemplate.md +0 -1150
  33. package/docs/classes/FewShotPromptTemplate.md +0 -1186
  34. package/docs/classes/GolangPromptTemplate.md +0 -1150
  35. package/docs/classes/HFEnvironment.md +0 -186
  36. package/docs/classes/HFInterpreter.md +0 -75
  37. package/docs/classes/HFTemplate.md +0 -67
  38. package/docs/classes/HfPromptTemplate.md +0 -1150
  39. package/docs/classes/IntSet.md +0 -216
  40. package/docs/classes/NotFoundError.md +0 -348
  41. package/docs/classes/NotImplementationError.md +0 -348
  42. package/docs/classes/PromptExampleSelector.md +0 -195
  43. package/docs/classes/PromptTemplate.md +0 -1079
  44. package/docs/classes/ReadableStreamError.md +0 -368
  45. package/docs/classes/ResClientTools.md +0 -2399
  46. package/docs/classes/ResServerTools.md +0 -2385
  47. package/docs/classes/SSEChannel.md +0 -270
  48. package/docs/classes/Semaphore.md +0 -177
  49. package/docs/classes/ServerTools.md +0 -2609
  50. package/docs/classes/TaskAbortController.md +0 -137
  51. package/docs/classes/ToolFunc.md +0 -2147
  52. package/docs/classes/YamlTypeBaseObject.md +0 -29
  53. package/docs/enumerations/AsyncFeatureBits.md +0 -37
  54. package/docs/enumerations/AsyncFeatures.md +0 -37
  55. package/docs/enumerations/ErrorCode.md +0 -217
  56. package/docs/enumerations/HashAlgorithm.md +0 -117
  57. package/docs/functions/AIArgProcessor.md +0 -27
  58. package/docs/functions/AIStream.md +0 -50
  59. package/docs/functions/ChoiceArgProcessor.md +0 -27
  60. package/docs/functions/RateLimit.md +0 -33
  61. package/docs/functions/TemplateArgProcessor.md +0 -27
  62. package/docs/functions/backendEventable.md +0 -23
  63. package/docs/functions/canonicalize.md +0 -21
  64. package/docs/functions/completeSentences.md +0 -23
  65. package/docs/functions/concatText.md +0 -23
  66. package/docs/functions/countLLMTokens.md +0 -23
  67. package/docs/functions/countRegexMatches.md +0 -33
  68. package/docs/functions/createAbilityInjector.md +0 -87
  69. package/docs/functions/createCallbacksTransformer.md +0 -49
  70. package/docs/functions/createEmptyReadableStream.md +0 -23
  71. package/docs/functions/createEndWithRepetitionDetector.md +0 -29
  72. package/docs/functions/createError.md +0 -35
  73. package/docs/functions/createEventStreamTransformer.md +0 -33
  74. package/docs/functions/createHfValueFunc.md +0 -29
  75. package/docs/functions/createLRUCache.md +0 -23
  76. package/docs/functions/createYamlObjectTag.md +0 -23
  77. package/docs/functions/dateToText.md +0 -23
  78. package/docs/functions/decodeCharset.md +0 -23
  79. package/docs/functions/detectCharset.md +0 -23
  80. package/docs/functions/encodeLLMTokens.md +0 -23
  81. package/docs/functions/expandEnv.md +0 -40
  82. package/docs/functions/expandObjEnv.md +0 -54
  83. package/docs/functions/extNameLevel.md +0 -43
  84. package/docs/functions/fileIsExists.md +0 -34
  85. package/docs/functions/filenameReservedRegex.md +0 -22
  86. package/docs/functions/filterValidFnScope.md +0 -21
  87. package/docs/functions/findIndexNonEmptyFrom.md +0 -23
  88. package/docs/functions/findPort.md +0 -23
  89. package/docs/functions/formatISO.md +0 -71
  90. package/docs/functions/formatTextWithSpace.md +0 -59
  91. package/docs/functions/getAllEnumKeys.md +0 -31
  92. package/docs/functions/getConfigFileNames.md +0 -23
  93. package/docs/functions/getConfigs.md +0 -23
  94. package/docs/functions/getFileMetaInfo.md +0 -21
  95. package/docs/functions/getHashAlgoBySize.md +0 -21
  96. package/docs/functions/getKeysPath.md +0 -38
  97. package/docs/functions/getLLMTokenizer.md +0 -21
  98. package/docs/functions/getMultiLevelExtname.md +0 -31
  99. package/docs/functions/getPackageDir.md +0 -39
  100. package/docs/functions/getRealFilepath.md +0 -34
  101. package/docs/functions/getResponseErrorReadableStream.md +0 -21
  102. package/docs/functions/hasDirectoryIn.md +0 -38
  103. package/docs/functions/hashFile.md +0 -23
  104. package/docs/functions/hashStream.md +0 -23
  105. package/docs/functions/hfParse.md +0 -24
  106. package/docs/functions/hfTokenize.md +0 -25
  107. package/docs/functions/interpolateEnv.md +0 -25
  108. package/docs/functions/interpolateFString.md +0 -27
  109. package/docs/functions/interpolateGolangTemplate.md +0 -31
  110. package/docs/functions/isLangUsingSpaces.md +0 -21
  111. package/docs/functions/isListItemString.md +0 -21
  112. package/docs/functions/isModelNameMatched.md +0 -45
  113. package/docs/functions/isPunctuationChar.md +0 -36
  114. package/docs/functions/isRegExp.md +0 -21
  115. package/docs/functions/isSectionString.md +0 -23
  116. package/docs/functions/isSentenceEnding.md +0 -21
  117. package/docs/functions/isSepLineString.md +0 -21
  118. package/docs/functions/isSubdirectory.md +0 -39
  119. package/docs/functions/isTitleString.md +0 -23
  120. package/docs/functions/isValidFilename.md +0 -38
  121. package/docs/functions/isValidFilepath.md +0 -27
  122. package/docs/functions/isWebStream.md +0 -21
  123. package/docs/functions/jsonFilterToWhere.md +0 -45
  124. package/docs/functions/jsonToMarkdownStr.md +0 -31
  125. package/docs/functions/loadFileFromPaths.md +0 -54
  126. package/docs/functions/loadTextFromPaths.md +0 -29
  127. package/docs/functions/lrucache.md +0 -29
  128. package/docs/functions/makeToolFuncCancelable.md +0 -23
  129. package/docs/functions/matchUrlProtocol.md +0 -48
  130. package/docs/functions/memoize.md +0 -27
  131. package/docs/functions/messagesToText.md +0 -21
  132. package/docs/functions/paramsSizeToScaleStr.md +0 -32
  133. package/docs/functions/parseCommand.md +0 -33
  134. package/docs/functions/parseDateFormat.md +0 -360
  135. package/docs/functions/parseFString.md +0 -26
  136. package/docs/functions/parseISO.md +0 -72
  137. package/docs/functions/parseJsJson.md +0 -38
  138. package/docs/functions/parseJsJsonSimpleSync.md +0 -23
  139. package/docs/functions/parseObjectArgInfo.md +0 -27
  140. package/docs/functions/parseObjectArgumentInfos.md +0 -25
  141. package/docs/functions/parseObjectArguments.md +0 -68
  142. package/docs/functions/parseObjectArgumentsAsArgInfos.md +0 -42
  143. package/docs/functions/parseYaml.md +0 -21
  144. package/docs/functions/quoteStr.md +0 -21
  145. package/docs/functions/reControlCharsRegex.md +0 -21
  146. package/docs/functions/readFilenamesRecursiveSync.md +0 -47
  147. package/docs/functions/readTextFileChunks.md +0 -51
  148. package/docs/functions/readTextFileChunksEx.md +0 -23
  149. package/docs/functions/readableFromAsyncIterable.md +0 -28
  150. package/docs/functions/registerCoreTools.md +0 -17
  151. package/docs/functions/registerYamlTag.md +0 -21
  152. package/docs/functions/removeMarkdownBold.md +0 -23
  153. package/docs/functions/removeMarkdownBoldAndItalic.md +0 -23
  154. package/docs/functions/removeMarkdownItalic.md +0 -23
  155. package/docs/functions/replaceWithPlaceholder.md +0 -41
  156. package/docs/functions/restoreFromPlacehoders.md +0 -45
  157. package/docs/functions/sanitizeFilename.md +0 -37
  158. package/docs/functions/sanitizeFilepath.md +0 -31
  159. package/docs/functions/saveConfigFile.md +0 -25
  160. package/docs/functions/scaleStrToParamsSize.md +0 -27
  161. package/docs/functions/simplifyObjectArguments.md +0 -21
  162. package/docs/functions/sortedValues.md +0 -25
  163. package/docs/functions/splitChunks.md +0 -23
  164. package/docs/functions/splitParagraph.md +0 -32
  165. package/docs/functions/splitSentence.md +0 -37
  166. package/docs/functions/stringifyYaml.md +0 -21
  167. package/docs/functions/stripConsoleColor.md +0 -21
  168. package/docs/functions/textToDate.md +0 -23
  169. package/docs/functions/throwError.md +0 -37
  170. package/docs/functions/toDate.md +0 -76
  171. package/docs/functions/toDateTime.md +0 -21
  172. package/docs/functions/toRegExp.md +0 -34
  173. package/docs/functions/trimStartOfStreamHelper.md +0 -41
  174. package/docs/functions/truncTo.md +0 -47
  175. package/docs/functions/truncateByToken.md +0 -23
  176. package/docs/functions/truncateToTokenLimit.md +0 -44
  177. package/docs/functions/truncateToTokenLimitEx.md +0 -23
  178. package/docs/functions/uuid.md +0 -23
  179. package/docs/functions/uuidParse.md +0 -21
  180. package/docs/functions/uuidStringify.md +0 -23
  181. package/docs/functions/uuidValidate.md +0 -21
  182. package/docs/functions/uuidVersion.md +0 -21
  183. package/docs/functions/uuidv1.md +0 -47
  184. package/docs/functions/uuidv4.md +0 -47
  185. package/docs/functions/uuidv5.md +0 -51
  186. package/docs/functions/wait.md +0 -21
  187. package/docs/functions/xxhash.md +0 -25
  188. package/docs/functions/xxhash32.md +0 -23
  189. package/docs/functions/xxhash64.md +0 -23
  190. package/docs/functions/xxhashAsStr.md +0 -25
  191. package/docs/globals.md +0 -285
  192. package/docs/interfaces/AIChatAssistantMessageParam.md +0 -117
  193. package/docs/interfaces/AIChatContentPartImage.md +0 -31
  194. package/docs/interfaces/AIChatContentPartText.md +0 -27
  195. package/docs/interfaces/AIChatMessageParamBase.md +0 -58
  196. package/docs/interfaces/AIChatMessageToolCall.md +0 -45
  197. package/docs/interfaces/AIChatSystemMessageParam.md +0 -87
  198. package/docs/interfaces/AIChatToolMessageParam.md +0 -97
  199. package/docs/interfaces/AIChatUserMessageParam.md +0 -127
  200. package/docs/interfaces/AIChoiceConfig.md +0 -77
  201. package/docs/interfaces/AIResult.md +0 -73
  202. package/docs/interfaces/AIStreamParser.md +0 -39
  203. package/docs/interfaces/AIStreamParserOptions.md +0 -21
  204. package/docs/interfaces/BaseFunc.md +0 -155
  205. package/docs/interfaces/BaseFuncItem.md +0 -103
  206. package/docs/interfaces/CancelableAbilityOptions.md +0 -115
  207. package/docs/interfaces/ClientFuncItem.md +0 -179
  208. package/docs/interfaces/DotenvExpandOptions.md +0 -47
  209. package/docs/interfaces/DotenvExpandOutput.md +0 -27
  210. package/docs/interfaces/DotenvParseInput.md +0 -11
  211. package/docs/interfaces/DotenvParseOutput.md +0 -11
  212. package/docs/interfaces/DotenvPopulateInput.md +0 -11
  213. package/docs/interfaces/EventClientFuncParams.md +0 -55
  214. package/docs/interfaces/EventServerFuncParams.md +0 -71
  215. package/docs/interfaces/FewShotPromptTemplateOptions.md +0 -163
  216. package/docs/interfaces/FuncItem.md +0 -143
  217. package/docs/interfaces/FuncParam.md +0 -71
  218. package/docs/interfaces/FuncParams.md +0 -11
  219. package/docs/interfaces/Funcs.md +0 -11
  220. package/docs/interfaces/HashAlgoParams.md +0 -37
  221. package/docs/interfaces/IFileMetaInfo.md +0 -77
  222. package/docs/interfaces/IReadTextFileChunksOptions.md +0 -157
  223. package/docs/interfaces/ITruncateToTokenLimitOptions.md +0 -111
  224. package/docs/interfaces/JsonFilter.md +0 -11
  225. package/docs/interfaces/ParseObjectArgumentOptions.md +0 -97
  226. package/docs/interfaces/PromptExampleSelectorOptions.md +0 -36
  227. package/docs/interfaces/PromptTemplateOptions.md +0 -75
  228. package/docs/interfaces/RemoteFuncItem.md +0 -168
  229. package/docs/interfaces/ReplacePlacehoderOptions.md +0 -47
  230. package/docs/interfaces/ResClientFuncParams.md +0 -35
  231. package/docs/interfaces/ResServerFuncParams.md +0 -73
  232. package/docs/interfaces/SanitizeFilenameOptions.md +0 -27
  233. package/docs/interfaces/SectionStringOptions.md +0 -27
  234. package/docs/interfaces/ServerFuncItem.md +0 -189
  235. package/docs/interfaces/ServerFuncParams.md +0 -37
  236. package/docs/interfaces/SplitSentenceOptions.md +0 -47
  237. package/docs/interfaces/StreamCallbacksAndOptions.md +0 -95
  238. package/docs/interfaces/TaskAbortControllers.md +0 -11
  239. package/docs/interfaces/TaskPromise.md +0 -138
  240. package/docs/interfaces/ToolFuncPackage.md +0 -49
  241. package/docs/type-aliases/AIChatContentPart.md +0 -13
  242. package/docs/type-aliases/AIChatMessageParam.md +0 -13
  243. package/docs/type-aliases/AIChatRole.md +0 -13
  244. package/docs/type-aliases/AIMessageType.md +0 -13
  245. package/docs/type-aliases/AIModelNameRule.md +0 -13
  246. package/docs/type-aliases/AIModelNameRuleFn.md +0 -21
  247. package/docs/type-aliases/AIModelNameRules.md +0 -13
  248. package/docs/type-aliases/AITextGenerationFinishReason.md +0 -13
  249. package/docs/type-aliases/ActionName.md +0 -13
  250. package/docs/type-aliases/AsyncTaskId.md +0 -13
  251. package/docs/type-aliases/EventErrorListenerFn.md +0 -27
  252. package/docs/type-aliases/EventListenerFn.md +0 -25
  253. package/docs/type-aliases/FStringPromptTemplateNode.md +0 -16
  254. package/docs/type-aliases/FuncParamType.md +0 -13
  255. package/docs/type-aliases/PromptExamples.md +0 -17
  256. package/docs/type-aliases/PromptTemplateType.md +0 -13
  257. package/docs/type-aliases/PromptType.md +0 -13
  258. package/docs/type-aliases/TFunc.md +0 -23
  259. package/docs/variables/AIChatRoles.md +0 -13
  260. package/docs/variables/AIMessageTypes.md +0 -13
  261. package/docs/variables/AITextGenerationFinishReasons.md +0 -13
  262. package/docs/variables/AbortErrorCode.md +0 -13
  263. package/docs/variables/ActionNames.md +0 -13
  264. package/docs/variables/AlreadyExistsErrorCode.md +0 -13
  265. package/docs/variables/ClientToolFuncSchema.md +0 -87
  266. package/docs/variables/DefaultAsyncSemaphoreCapacity.md +0 -13
  267. package/docs/variables/EventBusName.md +0 -13
  268. package/docs/variables/EventName.md +0 -13
  269. package/docs/variables/FilenameReservedRegex.md +0 -16
  270. package/docs/variables/HFBuiltins.md +0 -92
  271. package/docs/variables/InternalErrorCode.md +0 -13
  272. package/docs/variables/LLM_TOKENIZER_NAMES.md +0 -83
  273. package/docs/variables/LLM_TOKENIZER_NAMES_MAP.md +0 -13
  274. package/docs/variables/NotFoundErrorCode.md +0 -13
  275. package/docs/variables/NotImplementedErrorCode.md +0 -13
  276. package/docs/variables/PASSING_SCORE.md +0 -13
  277. package/docs/variables/PromptTemplateTypes.md +0 -13
  278. package/docs/variables/PromptTypes.md +0 -16
  279. package/docs/variables/RStreamErrCode.md +0 -13
  280. package/docs/variables/RemoteToolFuncSchema.md +0 -87
  281. package/docs/variables/ResponseRStreamErrCode.md +0 -13
  282. package/docs/variables/SSEChannelAlreadyClosedErrCode.md +0 -13
  283. package/docs/variables/ServerToolFuncSchema.md +0 -87
  284. package/docs/variables/ToolAsyncCancelableBit.md +0 -13
  285. package/docs/variables/ToolAsyncMultiTaskBit.md +0 -13
  286. package/docs/variables/ToolAsyncPriorityBit.md +0 -13
  287. package/docs/variables/ToolFuncSchema.md +0 -125
  288. package/docs/variables/WindowsReservedNameRegex.md +0 -15
  289. package/docs/variables/base32768.md +0 -13
  290. package/docs/variables/defaultTemplateFormat.md +0 -13
  291. package/docs/variables/event.md +0 -13
  292. package/docs/variables/eventClient.md +0 -13
  293. package/docs/variables/eventServer.md +0 -13
  294. package/docs/variables/lrucache.md +0 -13
  295. package/docs/variables/mimeType.md +0 -13
  296. package/docs/variables/uuidNIL.md +0 -13
@@ -1,2147 +0,0 @@
1
- [**@isdk/ai-tool**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [@isdk/ai-tool](../globals.md) / ToolFunc
6
-
7
- # Class: ToolFunc
8
-
9
- ## Extends
10
-
11
- - [`BaseFunc`](../interfaces/BaseFunc.md).`AdvancePropertyManager`
12
-
13
- ## Extended by
14
-
15
- - [`ClientTools`](ClientTools.md)
16
- - [`ServerTools`](ServerTools.md)
17
- - [`EventToolFunc`](EventToolFunc.md)
18
-
19
- ## Indexable
20
-
21
- \[`name`: `string`\]: `any`
22
-
23
- ## Constructors
24
-
25
- ### new ToolFunc()
26
-
27
- > **new ToolFunc**(`name`, `options`): [`ToolFunc`](ToolFunc.md)
28
-
29
- #### Parameters
30
-
31
- • **name**: `string` \| `Function` \| [`FuncItem`](../interfaces/FuncItem.md)
32
-
33
- • **options**: `any` = `{}`
34
-
35
- #### Returns
36
-
37
- [`ToolFunc`](ToolFunc.md)
38
-
39
- #### Inherited from
40
-
41
- `BaseFunc.constructor`
42
-
43
- #### Defined in
44
-
45
- [packages/ai-tool/src/tool-func.ts:210](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L210)
46
-
47
- ## Properties
48
-
49
- ### $attributes
50
-
51
- > **$attributes**: `Properties`
52
-
53
- #### Defined in
54
-
55
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/advance.d.ts:5
56
-
57
- ***
58
-
59
- ### constructor
60
-
61
- > **constructor**: `Function`
62
-
63
- The initial value of Object.prototype.constructor is the standard built-in Object constructor.
64
-
65
- #### Defined in
66
-
67
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:125
68
-
69
- ***
70
-
71
- ### defaultOptions
72
-
73
- > **defaultOptions**: `object`
74
-
75
- The default options for export and assign
76
-
77
- #### assign?
78
-
79
- > `optional` **assign**: `IMergeOptions`
80
-
81
- #### export?
82
-
83
- > `optional` **export**: `IMergeOptions`
84
-
85
- #### Defined in
86
-
87
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:74
88
-
89
- ***
90
-
91
- ### isApi?
92
-
93
- > `optional` **isApi**: `boolean`
94
-
95
- #### Inherited from
96
-
97
- [`BaseFunc`](../interfaces/BaseFunc.md).[`isApi`](../interfaces/BaseFunc.md#isapi)
98
-
99
- #### Defined in
100
-
101
- [packages/ai-tool/src/tool-func.ts:47](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L47)
102
-
103
- ***
104
-
105
- ### name?
106
-
107
- > `optional` **name**: `string`
108
-
109
- #### Inherited from
110
-
111
- [`BaseFunc`](../interfaces/BaseFunc.md).[`name`](../interfaces/BaseFunc.md#name)
112
-
113
- #### Defined in
114
-
115
- [packages/ai-tool/src/tool-func.ts:41](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L41)
116
-
117
- ***
118
-
119
- ### nonExported1stChar
120
-
121
- > **nonExported1stChar**: `string`
122
-
123
- the property with the default prefix '$' will not be exported.
124
-
125
- #### Defined in
126
-
127
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:78
128
-
129
- ***
130
-
131
- ### params?
132
-
133
- > `optional` **params**: [`FuncParams`](../interfaces/FuncParams.md) \| [`FuncParam`](../interfaces/FuncParam.md)[]
134
-
135
- #### Inherited from
136
-
137
- [`BaseFunc`](../interfaces/BaseFunc.md).[`params`](../interfaces/BaseFunc.md#params)
138
-
139
- #### Defined in
140
-
141
- [packages/ai-tool/src/tool-func.ts:42](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L42)
142
-
143
- ***
144
-
145
- ### result?
146
-
147
- > `optional` **result**: `string`
148
-
149
- #### Inherited from
150
-
151
- [`BaseFunc`](../interfaces/BaseFunc.md).[`result`](../interfaces/BaseFunc.md#result)
152
-
153
- #### Defined in
154
-
155
- [packages/ai-tool/src/tool-func.ts:43](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L43)
156
-
157
- ***
158
-
159
- ### scope?
160
-
161
- > `optional` **scope**: `any`
162
-
163
- #### Inherited from
164
-
165
- [`BaseFunc`](../interfaces/BaseFunc.md).[`scope`](../interfaces/BaseFunc.md#scope)
166
-
167
- #### Defined in
168
-
169
- [packages/ai-tool/src/tool-func.ts:44](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L44)
170
-
171
- ***
172
-
173
- ### setup()?
174
-
175
- > `optional` **setup**: (`this`, `options`?) => `void`
176
-
177
- #### Parameters
178
-
179
- • **this**: [`ToolFunc`](ToolFunc.md)
180
-
181
- • **options?**: [`FuncItem`](../interfaces/FuncItem.md)
182
-
183
- #### Returns
184
-
185
- `void`
186
-
187
- #### Inherited from
188
-
189
- [`BaseFunc`](../interfaces/BaseFunc.md).[`setup`](../interfaces/BaseFunc.md#setup)
190
-
191
- #### Defined in
192
-
193
- [packages/ai-tool/src/tool-func.ts:46](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L46)
194
-
195
- ***
196
-
197
- ### should
198
-
199
- > **should**: `Assertion`
200
-
201
- #### Defined in
202
-
203
- node\_modules/.pnpm/@types+chai@4.3.20/node\_modules/@types/chai/index.d.ts:2100
204
-
205
- ***
206
-
207
- ### stream?
208
-
209
- > `optional` **stream**: `boolean`
210
-
211
- #### Inherited from
212
-
213
- [`BaseFunc`](../interfaces/BaseFunc.md).[`stream`](../interfaces/BaseFunc.md#stream)
214
-
215
- #### Defined in
216
-
217
- [packages/ai-tool/src/tool-func.ts:48](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L48)
218
-
219
- ***
220
-
221
- ### tags?
222
-
223
- > `optional` **tags**: `string` \| `string`[]
224
-
225
- #### Inherited from
226
-
227
- [`BaseFunc`](../interfaces/BaseFunc.md).[`tags`](../interfaces/BaseFunc.md#tags)
228
-
229
- #### Defined in
230
-
231
- [packages/ai-tool/src/tool-func.ts:45](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L45)
232
-
233
- ***
234
-
235
- ### dataPath
236
-
237
- > `static` **dataPath**: `string`
238
-
239
- #### Defined in
240
-
241
- [packages/ai-tool/src/tool-func.ts:75](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L75)
242
-
243
- ***
244
-
245
- ### items
246
-
247
- > `static` **items**: [`Funcs`](../interfaces/Funcs.md) = `{}`
248
-
249
- #### Defined in
250
-
251
- [packages/ai-tool/src/tool-func.ts:74](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L74)
252
-
253
- ## Methods
254
-
255
- ### arr2ObjParams()
256
-
257
- > **arr2ObjParams**(`params`): `any`[]
258
-
259
- #### Parameters
260
-
261
- • **params**: `any`[]
262
-
263
- #### Returns
264
-
265
- `any`[]
266
-
267
- #### Defined in
268
-
269
- [packages/ai-tool/src/tool-func.ts:254](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L254)
270
-
271
- ***
272
-
273
- ### assign()
274
-
275
- > **assign**(`src`, `options`?): `this`
276
-
277
- Assign the values from the src object.
278
-
279
- #### Parameters
280
-
281
- • **src**: `any`
282
-
283
- the source object
284
-
285
- • **options?**: `IMergeOptions`
286
-
287
- #### Returns
288
-
289
- `this`
290
-
291
- this object
292
-
293
- #### Defined in
294
-
295
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:106
296
-
297
- ***
298
-
299
- ### assignProperty()
300
-
301
- > **assignProperty**(`src`, `name`, `value`, `attrs`?, `options`?): `void`
302
-
303
- Assign a property of src to this object.
304
-
305
- #### Parameters
306
-
307
- • **src**: `any`
308
-
309
- the src object
310
-
311
- • **name**: `string`
312
-
313
- the property name to assign
314
-
315
- • **value**: `any`
316
-
317
- the property value to assign
318
-
319
- • **attrs?**: `any`
320
-
321
- the attributes object
322
-
323
- • **options?**: `IMergeOptions`
324
-
325
- #### Returns
326
-
327
- `void`
328
-
329
- #### Defined in
330
-
331
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:117
332
-
333
- ***
334
-
335
- ### assignPropertyTo()
336
-
337
- > `abstract` **assignPropertyTo**(`dest`, `src`, `name`, `value`, `attrs`?, `options`?): `void`
338
-
339
- Assign the property value from the src to destination object.
340
-
341
- #### Parameters
342
-
343
- • **dest**: `any`
344
-
345
- The destination object
346
-
347
- • **src**: `any`
348
-
349
- The src object
350
-
351
- • **name**: `string`
352
-
353
- The property name
354
-
355
- • **value**: `any`
356
-
357
- The property value
358
-
359
- • **attrs?**: `any`
360
-
361
- The attributes object of the property
362
-
363
- • **options?**: `IMergeOptions`
364
-
365
- #### Returns
366
-
367
- `void`
368
-
369
- #### Defined in
370
-
371
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:131
372
-
373
- ***
374
-
375
- ### assignTo()
376
-
377
- > **assignTo**(`dest`?, `options`?): `any`
378
-
379
- Assign this attributes to the dest object
380
-
381
- #### Parameters
382
-
383
- • **dest?**: `any`
384
-
385
- the destination object
386
-
387
- • **options?**: `IMergeOptions`
388
-
389
- #### Returns
390
-
391
- `any`
392
-
393
- the dest object
394
-
395
- #### Defined in
396
-
397
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:191
398
-
399
- ***
400
-
401
- ### clone()
402
-
403
- > **clone**(`options`?): `any`
404
-
405
- Create a new object with the same values of attributes.
406
-
407
- #### Parameters
408
-
409
- • **options?**: `IMergeOptions`
410
-
411
- #### Returns
412
-
413
- `any`
414
-
415
- the new object
416
-
417
- #### Defined in
418
-
419
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:155
420
-
421
- ***
422
-
423
- ### cloneTo()
424
-
425
- > **cloneTo**(`dest`, `options`?): `any`
426
-
427
- Create and assign the values to the destination object.
428
-
429
- #### Parameters
430
-
431
- • **dest**: `any`
432
-
433
- the destination object
434
-
435
- • **options?**: `IMergeOptions`
436
-
437
- #### Returns
438
-
439
- `any`
440
-
441
- the new dest object
442
-
443
- #### Defined in
444
-
445
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:148
446
-
447
- ***
448
-
449
- ### defineProperties()
450
-
451
- > `abstract` **defineProperties**(`aProperties`): `any`
452
-
453
- Define the attributes of this object.
454
-
455
- #### Parameters
456
-
457
- • **aProperties**: `SimplePropDescriptors`
458
-
459
- the defined attributes of the object
460
-
461
- #### Returns
462
-
463
- `any`
464
-
465
- #### Defined in
466
-
467
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:89
468
-
469
- ***
470
-
471
- ### exportTo()
472
-
473
- > **exportTo**(`dest`, `options`?): `any`
474
-
475
- Export attributes to the dest json object.
476
-
477
- #### Parameters
478
-
479
- • **dest**: `any`
480
-
481
- the destination object
482
-
483
- • **options?**: `IExportOptions`
484
-
485
- #### Returns
486
-
487
- `any`
488
-
489
- the dest object.
490
-
491
- #### Defined in
492
-
493
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:173
494
-
495
- ***
496
-
497
- ### func()
498
-
499
- > **func**(...`params`): `any`
500
-
501
- #### Parameters
502
-
503
- • ...**params**: `any`
504
-
505
- #### Returns
506
-
507
- `any`
508
-
509
- #### Inherited from
510
-
511
- [`BaseFunc`](../interfaces/BaseFunc.md).[`func`](../interfaces/BaseFunc.md#func)
512
-
513
- #### Defined in
514
-
515
- [packages/ai-tool/src/tool-func.ts:56](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L56)
516
-
517
- ***
518
-
519
- ### getFunc()
520
-
521
- > **getFunc**(`name`?): `any`
522
-
523
- #### Parameters
524
-
525
- • **name?**: `string`
526
-
527
- #### Returns
528
-
529
- `any`
530
-
531
- #### Defined in
532
-
533
- [packages/ai-tool/src/tool-func.ts:307](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L307)
534
-
535
- ***
536
-
537
- ### getFuncWithPos()
538
-
539
- > **getFuncWithPos**(`name`?): `any`
540
-
541
- #### Parameters
542
-
543
- • **name?**: `string`
544
-
545
- #### Returns
546
-
547
- `any`
548
-
549
- #### Defined in
550
-
551
- [packages/ai-tool/src/tool-func.ts:331](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L331)
552
-
553
- ***
554
-
555
- ### getProperties()
556
-
557
- > `abstract` **getProperties**(): `PropDescriptors`
558
-
559
- Get the defined attributes.
560
-
561
- #### Returns
562
-
563
- `PropDescriptors`
564
-
565
- the descriptors of properties object
566
-
567
- #### Defined in
568
-
569
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:98
570
-
571
- ***
572
-
573
- ### hasAsyncFeature()
574
-
575
- > **hasAsyncFeature**(`feature`): `boolean`
576
-
577
- #### Parameters
578
-
579
- • **feature**: [`AsyncFeatureBits`](../enumerations/AsyncFeatureBits.md)
580
-
581
- #### Returns
582
-
583
- `boolean`
584
-
585
- #### Defined in
586
-
587
- [packages/ai-tool/src/tool-func.ts:336](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L336)
588
-
589
- ***
590
-
591
- ### hasOwnProperty()
592
-
593
- > **hasOwnProperty**(`v`): `boolean`
594
-
595
- Determines whether an object has a property with the specified name.
596
-
597
- #### Parameters
598
-
599
- • **v**: `PropertyKey`
600
-
601
- A property name.
602
-
603
- #### Returns
604
-
605
- `boolean`
606
-
607
- #### Defined in
608
-
609
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:140
610
-
611
- ***
612
-
613
- ### initialize()
614
-
615
- > **initialize**(`src`?): `this`
616
-
617
- Initialize object and assign attribute values from src if src exists.
618
-
619
- #### Parameters
620
-
621
- • **src?**: `any`
622
-
623
- #### Returns
624
-
625
- `this`
626
-
627
- this object.
628
-
629
- #### Defined in
630
-
631
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:139
632
-
633
- ***
634
-
635
- ### isPrototypeOf()
636
-
637
- > **isPrototypeOf**(`v`): `boolean`
638
-
639
- Determines whether an object exists in another object's prototype chain.
640
-
641
- #### Parameters
642
-
643
- • **v**: `Object`
644
-
645
- Another object whose prototype chain is to be checked.
646
-
647
- #### Returns
648
-
649
- `boolean`
650
-
651
- #### Defined in
652
-
653
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:146
654
-
655
- ***
656
-
657
- ### isSame()
658
-
659
- > **isSame**(`src`, `options`?): `boolean`
660
-
661
- Check the src object whether “equals” this object.
662
-
663
- #### Parameters
664
-
665
- • **src**: `any`
666
-
667
- The source object
668
-
669
- • **options?**: `IMergeOptions`
670
-
671
- #### Returns
672
-
673
- `boolean`
674
-
675
- #### Defined in
676
-
677
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:200
678
-
679
- ***
680
-
681
- ### isStream()
682
-
683
- > **isStream**(`params`): `undefined` \| `boolean`
684
-
685
- #### Parameters
686
-
687
- • **params**: `any`
688
-
689
- #### Returns
690
-
691
- `undefined` \| `boolean`
692
-
693
- #### Defined in
694
-
695
- [packages/ai-tool/src/tool-func.ts:342](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L342)
696
-
697
- ***
698
-
699
- ### mergeTo()
700
-
701
- > **mergeTo**(`dest`, `options`?): `any`
702
-
703
- Merge this attributes to dest object.
704
-
705
- #### Parameters
706
-
707
- • **dest**: `any`
708
-
709
- The destination object
710
-
711
- • **options?**: `IMergeOptions`
712
-
713
- #### Returns
714
-
715
- `any`
716
-
717
- the dest object.
718
-
719
- #### Defined in
720
-
721
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:164
722
-
723
- ***
724
-
725
- ### obj2ArrParams()
726
-
727
- > **obj2ArrParams**(`params`?): `any`[]
728
-
729
- #### Parameters
730
-
731
- • **params?**: `any`
732
-
733
- #### Returns
734
-
735
- `any`[]
736
-
737
- #### Defined in
738
-
739
- [packages/ai-tool/src/tool-func.ts:267](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L267)
740
-
741
- ***
742
-
743
- ### propertyIsEnumerable()
744
-
745
- > **propertyIsEnumerable**(`v`): `boolean`
746
-
747
- Determines whether a specified property is enumerable.
748
-
749
- #### Parameters
750
-
751
- • **v**: `PropertyKey`
752
-
753
- A property name.
754
-
755
- #### Returns
756
-
757
- `boolean`
758
-
759
- #### Defined in
760
-
761
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:152
762
-
763
- ***
764
-
765
- ### register()
766
-
767
- > **register**(): `boolean` \| [`ToolFunc`](ToolFunc.md)
768
-
769
- #### Returns
770
-
771
- `boolean` \| [`ToolFunc`](ToolFunc.md)
772
-
773
- #### Defined in
774
-
775
- [packages/ai-tool/src/tool-func.ts:237](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L237)
776
-
777
- ***
778
-
779
- ### run()
780
-
781
- > **run**(`params`?): `Promise`\<`any`\>
782
-
783
- #### Parameters
784
-
785
- • **params?**: `any`
786
-
787
- #### Returns
788
-
789
- `Promise`\<`any`\>
790
-
791
- #### Defined in
792
-
793
- [packages/ai-tool/src/tool-func.ts:294](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L294)
794
-
795
- ***
796
-
797
- ### runAs()
798
-
799
- > **runAs**(`name`, `params`?): `Promise`\<`any`\>
800
-
801
- #### Parameters
802
-
803
- • **name**: `string`
804
-
805
- • **params?**: `any`
806
-
807
- #### Returns
808
-
809
- `Promise`\<`any`\>
810
-
811
- #### Defined in
812
-
813
- [packages/ai-tool/src/tool-func.ts:298](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L298)
814
-
815
- ***
816
-
817
- ### runAsSync()
818
-
819
- > **runAsSync**(`name`, `params`?): `any`
820
-
821
- #### Parameters
822
-
823
- • **name**: `string`
824
-
825
- • **params?**: `any`
826
-
827
- #### Returns
828
-
829
- `any`
830
-
831
- #### Defined in
832
-
833
- [packages/ai-tool/src/tool-func.ts:302](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L302)
834
-
835
- ***
836
-
837
- ### runSync()
838
-
839
- > **runSync**(`params`?): `any`
840
-
841
- #### Parameters
842
-
843
- • **params?**: `any`
844
-
845
- #### Returns
846
-
847
- `any`
848
-
849
- #### Defined in
850
-
851
- [packages/ai-tool/src/tool-func.ts:280](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L280)
852
-
853
- ***
854
-
855
- ### runWithPos()
856
-
857
- > **runWithPos**(...`params`): `Promise`\<`any`\>
858
-
859
- #### Parameters
860
-
861
- • ...**params**: `any`[]
862
-
863
- #### Returns
864
-
865
- `Promise`\<`any`\>
866
-
867
- #### Defined in
868
-
869
- [packages/ai-tool/src/tool-func.ts:323](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L323)
870
-
871
- ***
872
-
873
- ### runWithPosAs()
874
-
875
- > **runWithPosAs**(`name`, ...`params`): `Promise`\<`any`\>
876
-
877
- #### Parameters
878
-
879
- • **name**: `string`
880
-
881
- • ...**params**: `any`[]
882
-
883
- #### Returns
884
-
885
- `Promise`\<`any`\>
886
-
887
- #### Defined in
888
-
889
- [packages/ai-tool/src/tool-func.ts:327](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L327)
890
-
891
- ***
892
-
893
- ### runWithPosAsSync()
894
-
895
- > **runWithPosAsSync**(`name`, ...`params`): `any`
896
-
897
- #### Parameters
898
-
899
- • **name**: `string`
900
-
901
- • ...**params**: `any`[]
902
-
903
- #### Returns
904
-
905
- `any`
906
-
907
- #### Defined in
908
-
909
- [packages/ai-tool/src/tool-func.ts:319](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L319)
910
-
911
- ***
912
-
913
- ### runWithPosSync()
914
-
915
- > **runWithPosSync**(...`params`): `any`
916
-
917
- #### Parameters
918
-
919
- • ...**params**: `any`[]
920
-
921
- #### Returns
922
-
923
- `any`
924
-
925
- #### Defined in
926
-
927
- [packages/ai-tool/src/tool-func.ts:312](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L312)
928
-
929
- ***
930
-
931
- ### toJSON()
932
-
933
- > **toJSON**(): `any`
934
-
935
- #### Returns
936
-
937
- `any`
938
-
939
- #### Defined in
940
-
941
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:182
942
-
943
- ***
944
-
945
- ### toLocaleString()
946
-
947
- > **toLocaleString**(): `string`
948
-
949
- Returns a date converted to a string using the current locale.
950
-
951
- #### Returns
952
-
953
- `string`
954
-
955
- #### Defined in
956
-
957
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:131
958
-
959
- ***
960
-
961
- ### toObject()
962
-
963
- > **toObject**(`options`?): `any`
964
-
965
- Convert the attributes to the json object
966
-
967
- #### Parameters
968
-
969
- • **options?**: `any`
970
-
971
- #### Returns
972
-
973
- `any`
974
-
975
- the json object.
976
-
977
- #### Defined in
978
-
979
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:181
980
-
981
- ***
982
-
983
- ### toString()
984
-
985
- > **toString**(): `string`
986
-
987
- Returns a string representation of an object.
988
-
989
- #### Returns
990
-
991
- `string`
992
-
993
- #### Defined in
994
-
995
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:128
996
-
997
- ***
998
-
999
- ### unregister()
1000
-
1001
- > **unregister**(): `any`
1002
-
1003
- #### Returns
1004
-
1005
- `any`
1006
-
1007
- #### Defined in
1008
-
1009
- [packages/ai-tool/src/tool-func.ts:250](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L250)
1010
-
1011
- ***
1012
-
1013
- ### valueOf()
1014
-
1015
- > **valueOf**(): `Object`
1016
-
1017
- Returns the primitive value of the specified object.
1018
-
1019
- #### Returns
1020
-
1021
- `Object`
1022
-
1023
- #### Defined in
1024
-
1025
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:134
1026
-
1027
- ***
1028
-
1029
- ### assign()
1030
-
1031
- #### assign(target, source)
1032
-
1033
- > `static` **assign**\<`T`, `U`\>(`target`, `source`): `T` & `U`
1034
-
1035
- Copy the values of all of the enumerable own properties from one or more source objects to a
1036
- target object. Returns the target object.
1037
-
1038
- ##### Type Parameters
1039
-
1040
- • **T** *extends* `object`
1041
-
1042
- • **U**
1043
-
1044
- ##### Parameters
1045
-
1046
- • **target**: `T`
1047
-
1048
- The target object to copy to.
1049
-
1050
- • **source**: `U`
1051
-
1052
- The source object from which to copy properties.
1053
-
1054
- ##### Returns
1055
-
1056
- `T` & `U`
1057
-
1058
- ##### Defined in
1059
-
1060
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:286
1061
-
1062
- #### assign(target, source1, source2)
1063
-
1064
- > `static` **assign**\<`T`, `U`, `V`\>(`target`, `source1`, `source2`): `T` & `U` & `V`
1065
-
1066
- Copy the values of all of the enumerable own properties from one or more source objects to a
1067
- target object. Returns the target object.
1068
-
1069
- ##### Type Parameters
1070
-
1071
- • **T** *extends* `object`
1072
-
1073
- • **U**
1074
-
1075
- • **V**
1076
-
1077
- ##### Parameters
1078
-
1079
- • **target**: `T`
1080
-
1081
- The target object to copy to.
1082
-
1083
- • **source1**: `U`
1084
-
1085
- The first source object from which to copy properties.
1086
-
1087
- • **source2**: `V`
1088
-
1089
- The second source object from which to copy properties.
1090
-
1091
- ##### Returns
1092
-
1093
- `T` & `U` & `V`
1094
-
1095
- ##### Defined in
1096
-
1097
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:295
1098
-
1099
- #### assign(target, source1, source2, source3)
1100
-
1101
- > `static` **assign**\<`T`, `U`, `V`, `W`\>(`target`, `source1`, `source2`, `source3`): `T` & `U` & `V` & `W`
1102
-
1103
- Copy the values of all of the enumerable own properties from one or more source objects to a
1104
- target object. Returns the target object.
1105
-
1106
- ##### Type Parameters
1107
-
1108
- • **T** *extends* `object`
1109
-
1110
- • **U**
1111
-
1112
- • **V**
1113
-
1114
- • **W**
1115
-
1116
- ##### Parameters
1117
-
1118
- • **target**: `T`
1119
-
1120
- The target object to copy to.
1121
-
1122
- • **source1**: `U`
1123
-
1124
- The first source object from which to copy properties.
1125
-
1126
- • **source2**: `V`
1127
-
1128
- The second source object from which to copy properties.
1129
-
1130
- • **source3**: `W`
1131
-
1132
- The third source object from which to copy properties.
1133
-
1134
- ##### Returns
1135
-
1136
- `T` & `U` & `V` & `W`
1137
-
1138
- ##### Defined in
1139
-
1140
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:305
1141
-
1142
- #### assign(target, sources)
1143
-
1144
- > `static` **assign**(`target`, ...`sources`): `any`
1145
-
1146
- Copy the values of all of the enumerable own properties from one or more source objects to a
1147
- target object. Returns the target object.
1148
-
1149
- ##### Parameters
1150
-
1151
- • **target**: `object`
1152
-
1153
- The target object to copy to.
1154
-
1155
- • ...**sources**: `any`[]
1156
-
1157
- One or more source objects from which to copy properties
1158
-
1159
- ##### Returns
1160
-
1161
- `any`
1162
-
1163
- ##### Defined in
1164
-
1165
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:313
1166
-
1167
- ***
1168
-
1169
- ### create()
1170
-
1171
- #### create(o)
1172
-
1173
- > `static` **create**(`o`): `any`
1174
-
1175
- Creates an object that has the specified prototype or that has null prototype.
1176
-
1177
- ##### Parameters
1178
-
1179
- • **o**: `null` \| `object`
1180
-
1181
- Object to use as a prototype. May be null.
1182
-
1183
- ##### Returns
1184
-
1185
- `any`
1186
-
1187
- ##### Defined in
1188
-
1189
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:188
1190
-
1191
- #### create(o, properties)
1192
-
1193
- > `static` **create**(`o`, `properties`): `any`
1194
-
1195
- Creates an object that has the specified prototype, and that optionally contains specified properties.
1196
-
1197
- ##### Parameters
1198
-
1199
- • **o**: `null` \| `object`
1200
-
1201
- Object to use as a prototype. May be null
1202
-
1203
- • **properties**: `PropertyDescriptorMap` & `ThisType`\<`any`\>
1204
-
1205
- JavaScript object that contains one or more property descriptors.
1206
-
1207
- ##### Returns
1208
-
1209
- `any`
1210
-
1211
- ##### Defined in
1212
-
1213
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:195
1214
-
1215
- ***
1216
-
1217
- ### defineProperties()
1218
-
1219
- > `static` **defineProperties**(`aTarget`, `aProperties`, `recreate`?): `any`
1220
-
1221
- Adds one or more properties to an object, and/or modifies attributes of existing properties.
1222
-
1223
- #### Parameters
1224
-
1225
- • **aTarget**: `any`
1226
-
1227
- • **aProperties**: `PropDescriptors`
1228
-
1229
- • **recreate?**: `boolean`
1230
-
1231
- #### Returns
1232
-
1233
- `any`
1234
-
1235
- #### Defined in
1236
-
1237
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/advance.d.ts:11
1238
-
1239
- ***
1240
-
1241
- ### defineProperty()
1242
-
1243
- > `static` **defineProperty**\<`T`\>(`o`, `p`, `attributes`): `T`
1244
-
1245
- Adds a property to an object, or modifies attributes of an existing property.
1246
-
1247
- #### Type Parameters
1248
-
1249
- • **T**
1250
-
1251
- #### Parameters
1252
-
1253
- • **o**: `T`
1254
-
1255
- Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
1256
-
1257
- • **p**: `PropertyKey`
1258
-
1259
- The property name.
1260
-
1261
- • **attributes**: `PropertyDescriptor` & `ThisType`\<`any`\>
1262
-
1263
- Descriptor for the property. It can be for a data property or an accessor property.
1264
-
1265
- #### Returns
1266
-
1267
- `T`
1268
-
1269
- #### Defined in
1270
-
1271
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:203
1272
-
1273
- ***
1274
-
1275
- ### entries()
1276
-
1277
- #### entries(o)
1278
-
1279
- > `static` **entries**\<`T`\>(`o`): [`string`, `T`][]
1280
-
1281
- Returns an array of key/values of the enumerable own properties of an object
1282
-
1283
- ##### Type Parameters
1284
-
1285
- • **T**
1286
-
1287
- ##### Parameters
1288
-
1289
- • **o**: `object` \| `ArrayLike`\<`T`\>
1290
-
1291
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
1292
-
1293
- ##### Returns
1294
-
1295
- [`string`, `T`][]
1296
-
1297
- ##### Defined in
1298
-
1299
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:36
1300
-
1301
- #### entries(o)
1302
-
1303
- > `static` **entries**(`o`): [`string`, `any`][]
1304
-
1305
- Returns an array of key/values of the enumerable own properties of an object
1306
-
1307
- ##### Parameters
1308
-
1309
- • **o**
1310
-
1311
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
1312
-
1313
- ##### Returns
1314
-
1315
- [`string`, `any`][]
1316
-
1317
- ##### Defined in
1318
-
1319
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:42
1320
-
1321
- ***
1322
-
1323
- ### freeze()
1324
-
1325
- #### freeze(f)
1326
-
1327
- > `static` **freeze**\<`T`\>(`f`): `T`
1328
-
1329
- Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
1330
-
1331
- ##### Type Parameters
1332
-
1333
- • **T** *extends* `Function`
1334
-
1335
- ##### Parameters
1336
-
1337
- • **f**: `T`
1338
-
1339
- Object on which to lock the attributes.
1340
-
1341
- ##### Returns
1342
-
1343
- `T`
1344
-
1345
- ##### Defined in
1346
-
1347
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:222
1348
-
1349
- #### freeze(o)
1350
-
1351
- > `static` **freeze**\<`T`, `U`\>(`o`): `Readonly`\<`T`\>
1352
-
1353
- Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
1354
-
1355
- ##### Type Parameters
1356
-
1357
- • **T** *extends* `object`
1358
-
1359
- • **U** *extends* `string` \| `number` \| `bigint` \| `boolean` \| `symbol`
1360
-
1361
- ##### Parameters
1362
-
1363
- • **o**: `T`
1364
-
1365
- Object on which to lock the attributes.
1366
-
1367
- ##### Returns
1368
-
1369
- `Readonly`\<`T`\>
1370
-
1371
- ##### Defined in
1372
-
1373
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:228
1374
-
1375
- #### freeze(o)
1376
-
1377
- > `static` **freeze**\<`T`\>(`o`): `Readonly`\<`T`\>
1378
-
1379
- Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
1380
-
1381
- ##### Type Parameters
1382
-
1383
- • **T**
1384
-
1385
- ##### Parameters
1386
-
1387
- • **o**: `T`
1388
-
1389
- Object on which to lock the attributes.
1390
-
1391
- ##### Returns
1392
-
1393
- `Readonly`\<`T`\>
1394
-
1395
- ##### Defined in
1396
-
1397
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:234
1398
-
1399
- ***
1400
-
1401
- ### fromEntries()
1402
-
1403
- #### fromEntries(entries)
1404
-
1405
- > `static` **fromEntries**\<`T`\>(`entries`): `object`
1406
-
1407
- Returns an object created by key-value entries for properties and methods
1408
-
1409
- ##### Type Parameters
1410
-
1411
- • **T** = `any`
1412
-
1413
- ##### Parameters
1414
-
1415
- • **entries**: `Iterable`\<readonly [`PropertyKey`, `T`], `any`, `any`\>
1416
-
1417
- An iterable object that contains key-value entries for properties and methods.
1418
-
1419
- ##### Returns
1420
-
1421
- `object`
1422
-
1423
- ##### Defined in
1424
-
1425
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2019.object.d.ts:26
1426
-
1427
- #### fromEntries(entries)
1428
-
1429
- > `static` **fromEntries**(`entries`): `any`
1430
-
1431
- Returns an object created by key-value entries for properties and methods
1432
-
1433
- ##### Parameters
1434
-
1435
- • **entries**: `Iterable`\<readonly `any`[], `any`, `any`\>
1436
-
1437
- An iterable object that contains key-value entries for properties and methods.
1438
-
1439
- ##### Returns
1440
-
1441
- `any`
1442
-
1443
- ##### Defined in
1444
-
1445
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2019.object.d.ts:32
1446
-
1447
- ***
1448
-
1449
- ### get()
1450
-
1451
- > `static` **get**(`name`): [`ToolFunc`](ToolFunc.md)
1452
-
1453
- #### Parameters
1454
-
1455
- • **name**: `string`
1456
-
1457
- #### Returns
1458
-
1459
- [`ToolFunc`](ToolFunc.md)
1460
-
1461
- #### Defined in
1462
-
1463
- [packages/ai-tool/src/tool-func.ts:77](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L77)
1464
-
1465
- ***
1466
-
1467
- ### getAllByTag()
1468
-
1469
- > `static` **getAllByTag**(`tagName`): [`ToolFunc`](ToolFunc.md)[]
1470
-
1471
- #### Parameters
1472
-
1473
- • **tagName**: `string`
1474
-
1475
- #### Returns
1476
-
1477
- [`ToolFunc`](ToolFunc.md)[]
1478
-
1479
- #### Defined in
1480
-
1481
- [packages/ai-tool/src/tool-func.ts:105](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L105)
1482
-
1483
- ***
1484
-
1485
- ### getByTag()
1486
-
1487
- > `static` **getByTag**(`tagName`): `undefined` \| [`ToolFunc`](ToolFunc.md)
1488
-
1489
- #### Parameters
1490
-
1491
- • **tagName**: `string`
1492
-
1493
- #### Returns
1494
-
1495
- `undefined` \| [`ToolFunc`](ToolFunc.md)
1496
-
1497
- #### Defined in
1498
-
1499
- [packages/ai-tool/src/tool-func.ts:85](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L85)
1500
-
1501
- ***
1502
-
1503
- ### getFunc()
1504
-
1505
- > `static` **getFunc**(`name`): `any`
1506
-
1507
- #### Parameters
1508
-
1509
- • **name**: `string`
1510
-
1511
- #### Returns
1512
-
1513
- `any`
1514
-
1515
- #### Defined in
1516
-
1517
- [packages/ai-tool/src/tool-func.ts:146](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L146)
1518
-
1519
- ***
1520
-
1521
- ### getFuncWithPos()
1522
-
1523
- > `static` **getFuncWithPos**(`name`): `any`
1524
-
1525
- #### Parameters
1526
-
1527
- • **name**: `string`
1528
-
1529
- #### Returns
1530
-
1531
- `any`
1532
-
1533
- #### Defined in
1534
-
1535
- [packages/ai-tool/src/tool-func.ts:167](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L167)
1536
-
1537
- ***
1538
-
1539
- ### getOwnPropertyDescriptor()
1540
-
1541
- > `static` **getOwnPropertyDescriptor**(`o`, `p`): `undefined` \| `PropertyDescriptor`
1542
-
1543
- Gets the own property descriptor of the specified object.
1544
- An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
1545
-
1546
- #### Parameters
1547
-
1548
- • **o**: `any`
1549
-
1550
- Object that contains the property.
1551
-
1552
- • **p**: `PropertyKey`
1553
-
1554
- Name of the property.
1555
-
1556
- #### Returns
1557
-
1558
- `undefined` \| `PropertyDescriptor`
1559
-
1560
- #### Defined in
1561
-
1562
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:175
1563
-
1564
- ***
1565
-
1566
- ### getOwnPropertyDescriptors()
1567
-
1568
- > `static` **getOwnPropertyDescriptors**\<`T`\>(`o`): \{ \[P in string \| number \| symbol\]: TypedPropertyDescriptor\<T\[P\]\> \} & `object`
1569
-
1570
- Returns an object containing all own property descriptors of an object
1571
-
1572
- #### Type Parameters
1573
-
1574
- • **T**
1575
-
1576
- #### Parameters
1577
-
1578
- • **o**: `T`
1579
-
1580
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
1581
-
1582
- #### Returns
1583
-
1584
- \{ \[P in string \| number \| symbol\]: TypedPropertyDescriptor\<T\[P\]\> \} & `object`
1585
-
1586
- #### Defined in
1587
-
1588
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:48
1589
-
1590
- ***
1591
-
1592
- ### getOwnPropertyNames()
1593
-
1594
- > `static` **getOwnPropertyNames**(`o`): `string`[]
1595
-
1596
- Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
1597
- on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
1598
-
1599
- #### Parameters
1600
-
1601
- • **o**: `any`
1602
-
1603
- Object that contains the own properties.
1604
-
1605
- #### Returns
1606
-
1607
- `string`[]
1608
-
1609
- #### Defined in
1610
-
1611
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:182
1612
-
1613
- ***
1614
-
1615
- ### getOwnPropertySymbols()
1616
-
1617
- > `static` **getOwnPropertySymbols**(`o`): `symbol`[]
1618
-
1619
- Returns an array of all symbol properties found directly on object o.
1620
-
1621
- #### Parameters
1622
-
1623
- • **o**: `any`
1624
-
1625
- Object to retrieve the symbols from.
1626
-
1627
- #### Returns
1628
-
1629
- `symbol`[]
1630
-
1631
- #### Defined in
1632
-
1633
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:319
1634
-
1635
- ***
1636
-
1637
- ### getProperties()
1638
-
1639
- > `static` **getProperties**(): `PropDescriptors`
1640
-
1641
- get all properties descriptor include inherited.
1642
-
1643
- #### Returns
1644
-
1645
- `PropDescriptors`
1646
-
1647
- #### Defined in
1648
-
1649
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/advance.d.ts:10
1650
-
1651
- ***
1652
-
1653
- ### getPrototypeOf()
1654
-
1655
- > `static` **getPrototypeOf**(`o`): `any`
1656
-
1657
- Returns the prototype of an object.
1658
-
1659
- #### Parameters
1660
-
1661
- • **o**: `any`
1662
-
1663
- The object that references the prototype.
1664
-
1665
- #### Returns
1666
-
1667
- `any`
1668
-
1669
- #### Defined in
1670
-
1671
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:167
1672
-
1673
- ***
1674
-
1675
- ### hasAsyncFeature()
1676
-
1677
- > `static` **hasAsyncFeature**(`feature`): `boolean`
1678
-
1679
- #### Parameters
1680
-
1681
- • **feature**: [`AsyncFeatureBits`](../enumerations/AsyncFeatureBits.md)
1682
-
1683
- #### Returns
1684
-
1685
- `boolean`
1686
-
1687
- #### Defined in
1688
-
1689
- [packages/ai-tool/src/tool-func.ts:123](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L123)
1690
-
1691
- ***
1692
-
1693
- ### hasOwn()
1694
-
1695
- > `static` **hasOwn**(`o`, `v`): `boolean`
1696
-
1697
- Determines whether an object has a property with the specified name.
1698
-
1699
- #### Parameters
1700
-
1701
- • **o**: `object`
1702
-
1703
- An object.
1704
-
1705
- • **v**: `PropertyKey`
1706
-
1707
- A property name.
1708
-
1709
- #### Returns
1710
-
1711
- `boolean`
1712
-
1713
- #### Defined in
1714
-
1715
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2022.object.d.ts:25
1716
-
1717
- ***
1718
-
1719
- ### is()
1720
-
1721
- > `static` **is**(`value1`, `value2`): `boolean`
1722
-
1723
- Returns true if the values are the same value, false otherwise.
1724
-
1725
- #### Parameters
1726
-
1727
- • **value1**: `any`
1728
-
1729
- The first value.
1730
-
1731
- • **value2**: `any`
1732
-
1733
- The second value.
1734
-
1735
- #### Returns
1736
-
1737
- `boolean`
1738
-
1739
- #### Defined in
1740
-
1741
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:332
1742
-
1743
- ***
1744
-
1745
- ### isExtensible()
1746
-
1747
- > `static` **isExtensible**(`o`): `boolean`
1748
-
1749
- Returns a value that indicates whether new properties can be added to an object.
1750
-
1751
- #### Parameters
1752
-
1753
- • **o**: `any`
1754
-
1755
- Object to test.
1756
-
1757
- #### Returns
1758
-
1759
- `boolean`
1760
-
1761
- #### Defined in
1762
-
1763
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:258
1764
-
1765
- ***
1766
-
1767
- ### isFrozen()
1768
-
1769
- > `static` **isFrozen**(`o`): `boolean`
1770
-
1771
- Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
1772
-
1773
- #### Parameters
1774
-
1775
- • **o**: `any`
1776
-
1777
- Object to test.
1778
-
1779
- #### Returns
1780
-
1781
- `boolean`
1782
-
1783
- #### Defined in
1784
-
1785
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:252
1786
-
1787
- ***
1788
-
1789
- ### isSealed()
1790
-
1791
- > `static` **isSealed**(`o`): `boolean`
1792
-
1793
- Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
1794
-
1795
- #### Parameters
1796
-
1797
- • **o**: `any`
1798
-
1799
- Object to test.
1800
-
1801
- #### Returns
1802
-
1803
- `boolean`
1804
-
1805
- #### Defined in
1806
-
1807
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:246
1808
-
1809
- ***
1810
-
1811
- ### keys()
1812
-
1813
- #### keys(o)
1814
-
1815
- > `static` **keys**(`o`): `string`[]
1816
-
1817
- Returns the names of the enumerable string properties and methods of an object.
1818
-
1819
- ##### Parameters
1820
-
1821
- • **o**: `object`
1822
-
1823
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
1824
-
1825
- ##### Returns
1826
-
1827
- `string`[]
1828
-
1829
- ##### Defined in
1830
-
1831
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:264
1832
-
1833
- #### keys(o)
1834
-
1835
- > `static` **keys**(`o`): `string`[]
1836
-
1837
- Returns the names of the enumerable string properties and methods of an object.
1838
-
1839
- ##### Parameters
1840
-
1841
- • **o**
1842
-
1843
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
1844
-
1845
- ##### Returns
1846
-
1847
- `string`[]
1848
-
1849
- ##### Defined in
1850
-
1851
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:325
1852
-
1853
- ***
1854
-
1855
- ### list()
1856
-
1857
- > `static` **list**(): [`Funcs`](../interfaces/Funcs.md)
1858
-
1859
- #### Returns
1860
-
1861
- [`Funcs`](../interfaces/Funcs.md)
1862
-
1863
- #### Defined in
1864
-
1865
- [packages/ai-tool/src/tool-func.ts:81](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L81)
1866
-
1867
- ***
1868
-
1869
- ### preventExtensions()
1870
-
1871
- > `static` **preventExtensions**\<`T`\>(`o`): `T`
1872
-
1873
- Prevents the addition of new properties to an object.
1874
-
1875
- #### Type Parameters
1876
-
1877
- • **T**
1878
-
1879
- #### Parameters
1880
-
1881
- • **o**: `T`
1882
-
1883
- Object to make non-extensible.
1884
-
1885
- #### Returns
1886
-
1887
- `T`
1888
-
1889
- #### Defined in
1890
-
1891
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:240
1892
-
1893
- ***
1894
-
1895
- ### register()
1896
-
1897
- #### register(name, options)
1898
-
1899
- > `static` **register**(`name`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
1900
-
1901
- ##### Parameters
1902
-
1903
- • **name**: `string`
1904
-
1905
- • **options**: [`FuncItem`](../interfaces/FuncItem.md)
1906
-
1907
- ##### Returns
1908
-
1909
- `boolean` \| [`ToolFunc`](ToolFunc.md)
1910
-
1911
- ##### Defined in
1912
-
1913
- [packages/ai-tool/src/tool-func.ts:172](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L172)
1914
-
1915
- #### register(func, options)
1916
-
1917
- > `static` **register**(`func`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
1918
-
1919
- ##### Parameters
1920
-
1921
- • **func**: `Function`
1922
-
1923
- • **options**: [`FuncItem`](../interfaces/FuncItem.md)
1924
-
1925
- ##### Returns
1926
-
1927
- `boolean` \| [`ToolFunc`](ToolFunc.md)
1928
-
1929
- ##### Defined in
1930
-
1931
- [packages/ai-tool/src/tool-func.ts:173](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L173)
1932
-
1933
- #### register(name, options)
1934
-
1935
- > `static` **register**(`name`, `options`?): `boolean` \| [`ToolFunc`](ToolFunc.md)
1936
-
1937
- ##### Parameters
1938
-
1939
- • **name**: `string` \| `Function` \| [`ToolFunc`](ToolFunc.md) \| [`FuncItem`](../interfaces/FuncItem.md)
1940
-
1941
- • **options?**: [`FuncItem`](../interfaces/FuncItem.md)
1942
-
1943
- ##### Returns
1944
-
1945
- `boolean` \| [`ToolFunc`](ToolFunc.md)
1946
-
1947
- ##### Defined in
1948
-
1949
- [packages/ai-tool/src/tool-func.ts:174](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L174)
1950
-
1951
- ***
1952
-
1953
- ### run()
1954
-
1955
- > `static` **run**(`name`, `params`?): `Promise`\<`any`\>
1956
-
1957
- #### Parameters
1958
-
1959
- • **name**: `string`
1960
-
1961
- • **params?**: `any`
1962
-
1963
- #### Returns
1964
-
1965
- `Promise`\<`any`\>
1966
-
1967
- #### Defined in
1968
-
1969
- [packages/ai-tool/src/tool-func.ts:130](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L130)
1970
-
1971
- ***
1972
-
1973
- ### runSync()
1974
-
1975
- > `static` **runSync**(`name`, `params`?): `any`
1976
-
1977
- #### Parameters
1978
-
1979
- • **name**: `string`
1980
-
1981
- • **params?**: `any`
1982
-
1983
- #### Returns
1984
-
1985
- `any`
1986
-
1987
- #### Defined in
1988
-
1989
- [packages/ai-tool/src/tool-func.ts:138](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L138)
1990
-
1991
- ***
1992
-
1993
- ### runWithPos()
1994
-
1995
- > `static` **runWithPos**(`name`, ...`params`): `Promise`\<`any`\>
1996
-
1997
- #### Parameters
1998
-
1999
- • **name**: `string`
2000
-
2001
- • ...**params**: `any`[]
2002
-
2003
- #### Returns
2004
-
2005
- `Promise`\<`any`\>
2006
-
2007
- #### Defined in
2008
-
2009
- [packages/ai-tool/src/tool-func.ts:151](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L151)
2010
-
2011
- ***
2012
-
2013
- ### runWithPosSync()
2014
-
2015
- > `static` **runWithPosSync**(`name`, ...`params`): `any`
2016
-
2017
- #### Parameters
2018
-
2019
- • **name**: `string`
2020
-
2021
- • ...**params**: `any`[]
2022
-
2023
- #### Returns
2024
-
2025
- `any`
2026
-
2027
- #### Defined in
2028
-
2029
- [packages/ai-tool/src/tool-func.ts:159](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L159)
2030
-
2031
- ***
2032
-
2033
- ### seal()
2034
-
2035
- > `static` **seal**\<`T`\>(`o`): `T`
2036
-
2037
- Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
2038
-
2039
- #### Type Parameters
2040
-
2041
- • **T**
2042
-
2043
- #### Parameters
2044
-
2045
- • **o**: `T`
2046
-
2047
- Object on which to lock the attributes.
2048
-
2049
- #### Returns
2050
-
2051
- `T`
2052
-
2053
- #### Defined in
2054
-
2055
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:216
2056
-
2057
- ***
2058
-
2059
- ### setPrototypeOf()
2060
-
2061
- > `static` **setPrototypeOf**(`o`, `proto`): `any`
2062
-
2063
- Sets the prototype of a specified object o to object proto or null. Returns the object o.
2064
-
2065
- #### Parameters
2066
-
2067
- • **o**: `any`
2068
-
2069
- The object to change its prototype.
2070
-
2071
- • **proto**: `null` \| `object`
2072
-
2073
- The value of the new prototype or null.
2074
-
2075
- #### Returns
2076
-
2077
- `any`
2078
-
2079
- #### Defined in
2080
-
2081
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:339
2082
-
2083
- ***
2084
-
2085
- ### unregister()
2086
-
2087
- > `static` **unregister**(`name`): `undefined` \| [`ToolFunc`](ToolFunc.md)
2088
-
2089
- #### Parameters
2090
-
2091
- • **name**: `string`
2092
-
2093
- #### Returns
2094
-
2095
- `undefined` \| [`ToolFunc`](ToolFunc.md)
2096
-
2097
- #### Defined in
2098
-
2099
- [packages/ai-tool/src/tool-func.ts:202](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L202)
2100
-
2101
- ***
2102
-
2103
- ### values()
2104
-
2105
- #### values(o)
2106
-
2107
- > `static` **values**\<`T`\>(`o`): `T`[]
2108
-
2109
- Returns an array of values of the enumerable own properties of an object
2110
-
2111
- ##### Type Parameters
2112
-
2113
- • **T**
2114
-
2115
- ##### Parameters
2116
-
2117
- • **o**: `object` \| `ArrayLike`\<`T`\>
2118
-
2119
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2120
-
2121
- ##### Returns
2122
-
2123
- `T`[]
2124
-
2125
- ##### Defined in
2126
-
2127
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:24
2128
-
2129
- #### values(o)
2130
-
2131
- > `static` **values**(`o`): `any`[]
2132
-
2133
- Returns an array of values of the enumerable own properties of an object
2134
-
2135
- ##### Parameters
2136
-
2137
- • **o**
2138
-
2139
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2140
-
2141
- ##### Returns
2142
-
2143
- `any`[]
2144
-
2145
- ##### Defined in
2146
-
2147
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:30