@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,2533 +0,0 @@
1
- [**@isdk/ai-tool**](../README.md) • **Docs**
2
-
3
- ***
4
-
5
- [@isdk/ai-tool](../globals.md) / EventToolFunc
6
-
7
- # Class: EventToolFunc
8
-
9
- ## Extends
10
-
11
- - [`ToolFunc`](ToolFunc.md)
12
-
13
- ## Constructors
14
-
15
- ### new EventToolFunc()
16
-
17
- > **new EventToolFunc**(`name`, `options`): [`EventToolFunc`](EventToolFunc.md)
18
-
19
- The initial value of Object.prototype.constructor is the standard built-in Object constructor.
20
-
21
- #### Parameters
22
-
23
- • **name**: `string` \| `Function` \| [`FuncItem`](../interfaces/FuncItem.md)
24
-
25
- • **options**: `any` = `{}`
26
-
27
- #### Returns
28
-
29
- [`EventToolFunc`](EventToolFunc.md)
30
-
31
- #### Inherited from
32
-
33
- [`ToolFunc`](ToolFunc.md).[`constructor`](ToolFunc.md#constructors)
34
-
35
- #### Defined in
36
-
37
- [packages/ai-tool/src/tool-func.ts:210](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L210)
38
-
39
- ## Properties
40
-
41
- ### \_emitter
42
-
43
- > **\_emitter**: `EventEmitter`
44
-
45
- #### Defined in
46
-
47
- [packages/ai-tool/src/funcs/event.ts:7](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/funcs/event.ts#L7)
48
-
49
- ***
50
-
51
- ### $attributes
52
-
53
- > **$attributes**: `Properties`
54
-
55
- #### Inherited from
56
-
57
- [`ToolFunc`](ToolFunc.md).[`$attributes`](ToolFunc.md#$attributes)
58
-
59
- #### Defined in
60
-
61
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/advance.d.ts:5
62
-
63
- ***
64
-
65
- ### constructor
66
-
67
- > **constructor**: `Function`
68
-
69
- The initial value of Object.prototype.constructor is the standard built-in Object constructor.
70
-
71
- #### Inherited from
72
-
73
- `ToolFunc.constructor`
74
-
75
- #### Defined in
76
-
77
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:125
78
-
79
- ***
80
-
81
- ### defaultOptions
82
-
83
- > **defaultOptions**: `object`
84
-
85
- The default options for export and assign
86
-
87
- #### assign?
88
-
89
- > `optional` **assign**: `IMergeOptions`
90
-
91
- #### export?
92
-
93
- > `optional` **export**: `IMergeOptions`
94
-
95
- #### Inherited from
96
-
97
- [`ToolFunc`](ToolFunc.md).[`defaultOptions`](ToolFunc.md#defaultoptions)
98
-
99
- #### Defined in
100
-
101
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:74
102
-
103
- ***
104
-
105
- ### description
106
-
107
- > **description**: `string` = `'Return event bus'`
108
-
109
- #### Defined in
110
-
111
- [packages/ai-tool/src/funcs/event.ts:9](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/funcs/event.ts#L9)
112
-
113
- ***
114
-
115
- ### isApi?
116
-
117
- > `optional` **isApi**: `boolean`
118
-
119
- #### Inherited from
120
-
121
- [`ToolFunc`](ToolFunc.md).[`isApi`](ToolFunc.md#isapi)
122
-
123
- #### Defined in
124
-
125
- [packages/ai-tool/src/tool-func.ts:47](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L47)
126
-
127
- ***
128
-
129
- ### name?
130
-
131
- > `optional` **name**: `string`
132
-
133
- #### Inherited from
134
-
135
- [`ToolFunc`](ToolFunc.md).[`name`](ToolFunc.md#name)
136
-
137
- #### Defined in
138
-
139
- [packages/ai-tool/src/tool-func.ts:41](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L41)
140
-
141
- ***
142
-
143
- ### nonExported1stChar
144
-
145
- > **nonExported1stChar**: `string`
146
-
147
- the property with the default prefix '$' will not be exported.
148
-
149
- #### Inherited from
150
-
151
- [`ToolFunc`](ToolFunc.md).[`nonExported1stChar`](ToolFunc.md#nonexported1stchar)
152
-
153
- #### Defined in
154
-
155
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:78
156
-
157
- ***
158
-
159
- ### params?
160
-
161
- > `optional` **params**: [`FuncParams`](../interfaces/FuncParams.md) \| [`FuncParam`](../interfaces/FuncParam.md)[]
162
-
163
- #### Inherited from
164
-
165
- [`ToolFunc`](ToolFunc.md).[`params`](ToolFunc.md#params)
166
-
167
- #### Defined in
168
-
169
- [packages/ai-tool/src/tool-func.ts:42](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L42)
170
-
171
- ***
172
-
173
- ### result
174
-
175
- > **result**: `string` = `'event'`
176
-
177
- #### Overrides
178
-
179
- [`ToolFunc`](ToolFunc.md).[`result`](ToolFunc.md#result)
180
-
181
- #### Defined in
182
-
183
- [packages/ai-tool/src/funcs/event.ts:10](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/funcs/event.ts#L10)
184
-
185
- ***
186
-
187
- ### scope?
188
-
189
- > `optional` **scope**: `any`
190
-
191
- #### Inherited from
192
-
193
- [`ToolFunc`](ToolFunc.md).[`scope`](ToolFunc.md#scope)
194
-
195
- #### Defined in
196
-
197
- [packages/ai-tool/src/tool-func.ts:44](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L44)
198
-
199
- ***
200
-
201
- ### setup()?
202
-
203
- > `optional` **setup**: (`this`, `options`?) => `void`
204
-
205
- #### Parameters
206
-
207
- • **this**: [`ToolFunc`](ToolFunc.md)
208
-
209
- • **options?**: [`FuncItem`](../interfaces/FuncItem.md)
210
-
211
- #### Returns
212
-
213
- `void`
214
-
215
- #### Inherited from
216
-
217
- [`ToolFunc`](ToolFunc.md).[`setup`](ToolFunc.md#setup)
218
-
219
- #### Defined in
220
-
221
- [packages/ai-tool/src/tool-func.ts:46](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L46)
222
-
223
- ***
224
-
225
- ### should
226
-
227
- > **should**: `Assertion`
228
-
229
- #### Inherited from
230
-
231
- [`ToolFunc`](ToolFunc.md).[`should`](ToolFunc.md#should)
232
-
233
- #### Defined in
234
-
235
- node\_modules/.pnpm/@types+chai@4.3.20/node\_modules/@types/chai/index.d.ts:2100
236
-
237
- ***
238
-
239
- ### stream?
240
-
241
- > `optional` **stream**: `boolean`
242
-
243
- #### Inherited from
244
-
245
- [`ToolFunc`](ToolFunc.md).[`stream`](ToolFunc.md#stream)
246
-
247
- #### Defined in
248
-
249
- [packages/ai-tool/src/tool-func.ts:48](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L48)
250
-
251
- ***
252
-
253
- ### tags?
254
-
255
- > `optional` **tags**: `string` \| `string`[]
256
-
257
- #### Inherited from
258
-
259
- [`ToolFunc`](ToolFunc.md).[`tags`](ToolFunc.md#tags)
260
-
261
- #### Defined in
262
-
263
- [packages/ai-tool/src/tool-func.ts:45](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L45)
264
-
265
- ***
266
-
267
- ### dataPath
268
-
269
- > `static` **dataPath**: `string`
270
-
271
- #### Inherited from
272
-
273
- [`ToolFunc`](ToolFunc.md).[`dataPath`](ToolFunc.md#datapath)
274
-
275
- #### Defined in
276
-
277
- [packages/ai-tool/src/tool-func.ts:75](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L75)
278
-
279
- ***
280
-
281
- ### items
282
-
283
- > `static` **items**: [`Funcs`](../interfaces/Funcs.md) = `{}`
284
-
285
- #### Inherited from
286
-
287
- [`ToolFunc`](ToolFunc.md).[`items`](ToolFunc.md#items)
288
-
289
- #### Defined in
290
-
291
- [packages/ai-tool/src/tool-func.ts:74](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L74)
292
-
293
- ## Accessors
294
-
295
- ### emitter
296
-
297
- > `get` **emitter**(): `EventEmitter`
298
-
299
- #### Returns
300
-
301
- `EventEmitter`
302
-
303
- #### Defined in
304
-
305
- [packages/ai-tool/src/funcs/event.ts:12](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/funcs/event.ts#L12)
306
-
307
- ## Methods
308
-
309
- ### arr2ObjParams()
310
-
311
- > **arr2ObjParams**(`params`): `any`[]
312
-
313
- #### Parameters
314
-
315
- • **params**: `any`[]
316
-
317
- #### Returns
318
-
319
- `any`[]
320
-
321
- #### Inherited from
322
-
323
- [`ToolFunc`](ToolFunc.md).[`arr2ObjParams`](ToolFunc.md#arr2objparams)
324
-
325
- #### Defined in
326
-
327
- [packages/ai-tool/src/tool-func.ts:254](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L254)
328
-
329
- ***
330
-
331
- ### assign()
332
-
333
- > **assign**(`src`, `options`?): `this`
334
-
335
- Assign the values from the src object.
336
-
337
- #### Parameters
338
-
339
- • **src**: `any`
340
-
341
- the source object
342
-
343
- • **options?**: `IMergeOptions`
344
-
345
- #### Returns
346
-
347
- `this`
348
-
349
- this object
350
-
351
- #### Inherited from
352
-
353
- [`ToolFunc`](ToolFunc.md).[`assign`](ToolFunc.md#assign-1)
354
-
355
- #### Defined in
356
-
357
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:106
358
-
359
- ***
360
-
361
- ### assignProperty()
362
-
363
- > **assignProperty**(`src`, `name`, `value`, `attrs`?, `options`?): `void`
364
-
365
- Assign a property of src to this object.
366
-
367
- #### Parameters
368
-
369
- • **src**: `any`
370
-
371
- the src object
372
-
373
- • **name**: `string`
374
-
375
- the property name to assign
376
-
377
- • **value**: `any`
378
-
379
- the property value to assign
380
-
381
- • **attrs?**: `any`
382
-
383
- the attributes object
384
-
385
- • **options?**: `IMergeOptions`
386
-
387
- #### Returns
388
-
389
- `void`
390
-
391
- #### Inherited from
392
-
393
- [`ToolFunc`](ToolFunc.md).[`assignProperty`](ToolFunc.md#assignproperty)
394
-
395
- #### Defined in
396
-
397
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:117
398
-
399
- ***
400
-
401
- ### assignPropertyTo()
402
-
403
- > `abstract` **assignPropertyTo**(`dest`, `src`, `name`, `value`, `attrs`?, `options`?): `void`
404
-
405
- Assign the property value from the src to destination object.
406
-
407
- #### Parameters
408
-
409
- • **dest**: `any`
410
-
411
- The destination object
412
-
413
- • **src**: `any`
414
-
415
- The src object
416
-
417
- • **name**: `string`
418
-
419
- The property name
420
-
421
- • **value**: `any`
422
-
423
- The property value
424
-
425
- • **attrs?**: `any`
426
-
427
- The attributes object of the property
428
-
429
- • **options?**: `IMergeOptions`
430
-
431
- #### Returns
432
-
433
- `void`
434
-
435
- #### Inherited from
436
-
437
- [`ToolFunc`](ToolFunc.md).[`assignPropertyTo`](ToolFunc.md#assignpropertyto)
438
-
439
- #### Defined in
440
-
441
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:131
442
-
443
- ***
444
-
445
- ### assignTo()
446
-
447
- > **assignTo**(`dest`?, `options`?): `any`
448
-
449
- Assign this attributes to the dest object
450
-
451
- #### Parameters
452
-
453
- • **dest?**: `any`
454
-
455
- the destination object
456
-
457
- • **options?**: `IMergeOptions`
458
-
459
- #### Returns
460
-
461
- `any`
462
-
463
- the dest object
464
-
465
- #### Inherited from
466
-
467
- [`ToolFunc`](ToolFunc.md).[`assignTo`](ToolFunc.md#assignto)
468
-
469
- #### Defined in
470
-
471
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:191
472
-
473
- ***
474
-
475
- ### clone()
476
-
477
- > **clone**(`options`?): `any`
478
-
479
- Create a new object with the same values of attributes.
480
-
481
- #### Parameters
482
-
483
- • **options?**: `IMergeOptions`
484
-
485
- #### Returns
486
-
487
- `any`
488
-
489
- the new object
490
-
491
- #### Inherited from
492
-
493
- [`ToolFunc`](ToolFunc.md).[`clone`](ToolFunc.md#clone)
494
-
495
- #### Defined in
496
-
497
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:155
498
-
499
- ***
500
-
501
- ### cloneTo()
502
-
503
- > **cloneTo**(`dest`, `options`?): `any`
504
-
505
- Create and assign the values to the destination object.
506
-
507
- #### Parameters
508
-
509
- • **dest**: `any`
510
-
511
- the destination object
512
-
513
- • **options?**: `IMergeOptions`
514
-
515
- #### Returns
516
-
517
- `any`
518
-
519
- the new dest object
520
-
521
- #### Inherited from
522
-
523
- [`ToolFunc`](ToolFunc.md).[`cloneTo`](ToolFunc.md#cloneto)
524
-
525
- #### Defined in
526
-
527
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:148
528
-
529
- ***
530
-
531
- ### defineProperties()
532
-
533
- > `abstract` **defineProperties**(`aProperties`): `any`
534
-
535
- Define the attributes of this object.
536
-
537
- #### Parameters
538
-
539
- • **aProperties**: `SimplePropDescriptors`
540
-
541
- the defined attributes of the object
542
-
543
- #### Returns
544
-
545
- `any`
546
-
547
- #### Inherited from
548
-
549
- [`ToolFunc`](ToolFunc.md).[`defineProperties`](ToolFunc.md#defineproperties)
550
-
551
- #### Defined in
552
-
553
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:89
554
-
555
- ***
556
-
557
- ### exportTo()
558
-
559
- > **exportTo**(`dest`, `options`?): `any`
560
-
561
- Export attributes to the dest json object.
562
-
563
- #### Parameters
564
-
565
- • **dest**: `any`
566
-
567
- the destination object
568
-
569
- • **options?**: `IExportOptions`
570
-
571
- #### Returns
572
-
573
- `any`
574
-
575
- the dest object.
576
-
577
- #### Inherited from
578
-
579
- [`ToolFunc`](ToolFunc.md).[`exportTo`](ToolFunc.md#exportto)
580
-
581
- #### Defined in
582
-
583
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:173
584
-
585
- ***
586
-
587
- ### func()
588
-
589
- > **func**(): `EventEmitter`
590
-
591
- #### Returns
592
-
593
- `EventEmitter`
594
-
595
- #### Overrides
596
-
597
- [`ToolFunc`](ToolFunc.md).[`func`](ToolFunc.md#func)
598
-
599
- #### Defined in
600
-
601
- [packages/ai-tool/src/funcs/event.ts:17](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/funcs/event.ts#L17)
602
-
603
- ***
604
-
605
- ### getFunc()
606
-
607
- > **getFunc**(`name`?): `any`
608
-
609
- #### Parameters
610
-
611
- • **name?**: `string`
612
-
613
- #### Returns
614
-
615
- `any`
616
-
617
- #### Inherited from
618
-
619
- [`ToolFunc`](ToolFunc.md).[`getFunc`](ToolFunc.md#getfunc)
620
-
621
- #### Defined in
622
-
623
- [packages/ai-tool/src/tool-func.ts:307](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L307)
624
-
625
- ***
626
-
627
- ### getFuncWithPos()
628
-
629
- > **getFuncWithPos**(`name`?): `any`
630
-
631
- #### Parameters
632
-
633
- • **name?**: `string`
634
-
635
- #### Returns
636
-
637
- `any`
638
-
639
- #### Inherited from
640
-
641
- [`ToolFunc`](ToolFunc.md).[`getFuncWithPos`](ToolFunc.md#getfuncwithpos)
642
-
643
- #### Defined in
644
-
645
- [packages/ai-tool/src/tool-func.ts:331](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L331)
646
-
647
- ***
648
-
649
- ### getProperties()
650
-
651
- > `abstract` **getProperties**(): `PropDescriptors`
652
-
653
- Get the defined attributes.
654
-
655
- #### Returns
656
-
657
- `PropDescriptors`
658
-
659
- the descriptors of properties object
660
-
661
- #### Inherited from
662
-
663
- [`ToolFunc`](ToolFunc.md).[`getProperties`](ToolFunc.md#getproperties)
664
-
665
- #### Defined in
666
-
667
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:98
668
-
669
- ***
670
-
671
- ### hasAsyncFeature()
672
-
673
- > **hasAsyncFeature**(`feature`): `boolean`
674
-
675
- #### Parameters
676
-
677
- • **feature**: [`AsyncFeatureBits`](../enumerations/AsyncFeatureBits.md)
678
-
679
- #### Returns
680
-
681
- `boolean`
682
-
683
- #### Inherited from
684
-
685
- [`ToolFunc`](ToolFunc.md).[`hasAsyncFeature`](ToolFunc.md#hasasyncfeature)
686
-
687
- #### Defined in
688
-
689
- [packages/ai-tool/src/tool-func.ts:336](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L336)
690
-
691
- ***
692
-
693
- ### hasOwnProperty()
694
-
695
- > **hasOwnProperty**(`v`): `boolean`
696
-
697
- Determines whether an object has a property with the specified name.
698
-
699
- #### Parameters
700
-
701
- • **v**: `PropertyKey`
702
-
703
- A property name.
704
-
705
- #### Returns
706
-
707
- `boolean`
708
-
709
- #### Inherited from
710
-
711
- [`ToolFunc`](ToolFunc.md).[`hasOwnProperty`](ToolFunc.md#hasownproperty)
712
-
713
- #### Defined in
714
-
715
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:140
716
-
717
- ***
718
-
719
- ### initialize()
720
-
721
- > **initialize**(`src`?): `this`
722
-
723
- Initialize object and assign attribute values from src if src exists.
724
-
725
- #### Parameters
726
-
727
- • **src?**: `any`
728
-
729
- #### Returns
730
-
731
- `this`
732
-
733
- this object.
734
-
735
- #### Inherited from
736
-
737
- [`ToolFunc`](ToolFunc.md).[`initialize`](ToolFunc.md#initialize)
738
-
739
- #### Defined in
740
-
741
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:139
742
-
743
- ***
744
-
745
- ### isPrototypeOf()
746
-
747
- > **isPrototypeOf**(`v`): `boolean`
748
-
749
- Determines whether an object exists in another object's prototype chain.
750
-
751
- #### Parameters
752
-
753
- • **v**: `Object`
754
-
755
- Another object whose prototype chain is to be checked.
756
-
757
- #### Returns
758
-
759
- `boolean`
760
-
761
- #### Inherited from
762
-
763
- [`ToolFunc`](ToolFunc.md).[`isPrototypeOf`](ToolFunc.md#isprototypeof)
764
-
765
- #### Defined in
766
-
767
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:146
768
-
769
- ***
770
-
771
- ### isSame()
772
-
773
- > **isSame**(`src`, `options`?): `boolean`
774
-
775
- Check the src object whether “equals” this object.
776
-
777
- #### Parameters
778
-
779
- • **src**: `any`
780
-
781
- The source object
782
-
783
- • **options?**: `IMergeOptions`
784
-
785
- #### Returns
786
-
787
- `boolean`
788
-
789
- #### Inherited from
790
-
791
- [`ToolFunc`](ToolFunc.md).[`isSame`](ToolFunc.md#issame)
792
-
793
- #### Defined in
794
-
795
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:200
796
-
797
- ***
798
-
799
- ### isStream()
800
-
801
- > **isStream**(`params`): `undefined` \| `boolean`
802
-
803
- #### Parameters
804
-
805
- • **params**: `any`
806
-
807
- #### Returns
808
-
809
- `undefined` \| `boolean`
810
-
811
- #### Inherited from
812
-
813
- [`ToolFunc`](ToolFunc.md).[`isStream`](ToolFunc.md#isstream)
814
-
815
- #### Defined in
816
-
817
- [packages/ai-tool/src/tool-func.ts:342](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L342)
818
-
819
- ***
820
-
821
- ### mergeTo()
822
-
823
- > **mergeTo**(`dest`, `options`?): `any`
824
-
825
- Merge this attributes to dest object.
826
-
827
- #### Parameters
828
-
829
- • **dest**: `any`
830
-
831
- The destination object
832
-
833
- • **options?**: `IMergeOptions`
834
-
835
- #### Returns
836
-
837
- `any`
838
-
839
- the dest object.
840
-
841
- #### Inherited from
842
-
843
- [`ToolFunc`](ToolFunc.md).[`mergeTo`](ToolFunc.md#mergeto)
844
-
845
- #### Defined in
846
-
847
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:164
848
-
849
- ***
850
-
851
- ### obj2ArrParams()
852
-
853
- > **obj2ArrParams**(`params`?): `any`[]
854
-
855
- #### Parameters
856
-
857
- • **params?**: `any`
858
-
859
- #### Returns
860
-
861
- `any`[]
862
-
863
- #### Inherited from
864
-
865
- [`ToolFunc`](ToolFunc.md).[`obj2ArrParams`](ToolFunc.md#obj2arrparams)
866
-
867
- #### Defined in
868
-
869
- [packages/ai-tool/src/tool-func.ts:267](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L267)
870
-
871
- ***
872
-
873
- ### propertyIsEnumerable()
874
-
875
- > **propertyIsEnumerable**(`v`): `boolean`
876
-
877
- Determines whether a specified property is enumerable.
878
-
879
- #### Parameters
880
-
881
- • **v**: `PropertyKey`
882
-
883
- A property name.
884
-
885
- #### Returns
886
-
887
- `boolean`
888
-
889
- #### Inherited from
890
-
891
- [`ToolFunc`](ToolFunc.md).[`propertyIsEnumerable`](ToolFunc.md#propertyisenumerable)
892
-
893
- #### Defined in
894
-
895
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:152
896
-
897
- ***
898
-
899
- ### register()
900
-
901
- > **register**(): `boolean` \| [`ToolFunc`](ToolFunc.md)
902
-
903
- #### Returns
904
-
905
- `boolean` \| [`ToolFunc`](ToolFunc.md)
906
-
907
- #### Inherited from
908
-
909
- [`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register)
910
-
911
- #### Defined in
912
-
913
- [packages/ai-tool/src/tool-func.ts:237](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L237)
914
-
915
- ***
916
-
917
- ### run()
918
-
919
- > **run**(`params`?): `Promise`\<`any`\>
920
-
921
- #### Parameters
922
-
923
- • **params?**: `any`
924
-
925
- #### Returns
926
-
927
- `Promise`\<`any`\>
928
-
929
- #### Inherited from
930
-
931
- [`ToolFunc`](ToolFunc.md).[`run`](ToolFunc.md#run)
932
-
933
- #### Defined in
934
-
935
- [packages/ai-tool/src/tool-func.ts:294](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L294)
936
-
937
- ***
938
-
939
- ### runAs()
940
-
941
- > **runAs**(`name`, `params`?): `Promise`\<`any`\>
942
-
943
- #### Parameters
944
-
945
- • **name**: `string`
946
-
947
- • **params?**: `any`
948
-
949
- #### Returns
950
-
951
- `Promise`\<`any`\>
952
-
953
- #### Inherited from
954
-
955
- [`ToolFunc`](ToolFunc.md).[`runAs`](ToolFunc.md#runas)
956
-
957
- #### Defined in
958
-
959
- [packages/ai-tool/src/tool-func.ts:298](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L298)
960
-
961
- ***
962
-
963
- ### runAsSync()
964
-
965
- > **runAsSync**(`name`, `params`?): `any`
966
-
967
- #### Parameters
968
-
969
- • **name**: `string`
970
-
971
- • **params?**: `any`
972
-
973
- #### Returns
974
-
975
- `any`
976
-
977
- #### Inherited from
978
-
979
- [`ToolFunc`](ToolFunc.md).[`runAsSync`](ToolFunc.md#runassync)
980
-
981
- #### Defined in
982
-
983
- [packages/ai-tool/src/tool-func.ts:302](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L302)
984
-
985
- ***
986
-
987
- ### runSync()
988
-
989
- > **runSync**(`params`?): `any`
990
-
991
- #### Parameters
992
-
993
- • **params?**: `any`
994
-
995
- #### Returns
996
-
997
- `any`
998
-
999
- #### Inherited from
1000
-
1001
- [`ToolFunc`](ToolFunc.md).[`runSync`](ToolFunc.md#runsync)
1002
-
1003
- #### Defined in
1004
-
1005
- [packages/ai-tool/src/tool-func.ts:280](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L280)
1006
-
1007
- ***
1008
-
1009
- ### runWithPos()
1010
-
1011
- > **runWithPos**(...`params`): `Promise`\<`any`\>
1012
-
1013
- #### Parameters
1014
-
1015
- • ...**params**: `any`[]
1016
-
1017
- #### Returns
1018
-
1019
- `Promise`\<`any`\>
1020
-
1021
- #### Inherited from
1022
-
1023
- [`ToolFunc`](ToolFunc.md).[`runWithPos`](ToolFunc.md#runwithpos)
1024
-
1025
- #### Defined in
1026
-
1027
- [packages/ai-tool/src/tool-func.ts:323](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L323)
1028
-
1029
- ***
1030
-
1031
- ### runWithPosAs()
1032
-
1033
- > **runWithPosAs**(`name`, ...`params`): `Promise`\<`any`\>
1034
-
1035
- #### Parameters
1036
-
1037
- • **name**: `string`
1038
-
1039
- • ...**params**: `any`[]
1040
-
1041
- #### Returns
1042
-
1043
- `Promise`\<`any`\>
1044
-
1045
- #### Inherited from
1046
-
1047
- [`ToolFunc`](ToolFunc.md).[`runWithPosAs`](ToolFunc.md#runwithposas)
1048
-
1049
- #### Defined in
1050
-
1051
- [packages/ai-tool/src/tool-func.ts:327](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L327)
1052
-
1053
- ***
1054
-
1055
- ### runWithPosAsSync()
1056
-
1057
- > **runWithPosAsSync**(`name`, ...`params`): `any`
1058
-
1059
- #### Parameters
1060
-
1061
- • **name**: `string`
1062
-
1063
- • ...**params**: `any`[]
1064
-
1065
- #### Returns
1066
-
1067
- `any`
1068
-
1069
- #### Inherited from
1070
-
1071
- [`ToolFunc`](ToolFunc.md).[`runWithPosAsSync`](ToolFunc.md#runwithposassync)
1072
-
1073
- #### Defined in
1074
-
1075
- [packages/ai-tool/src/tool-func.ts:319](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L319)
1076
-
1077
- ***
1078
-
1079
- ### runWithPosSync()
1080
-
1081
- > **runWithPosSync**(...`params`): `any`
1082
-
1083
- #### Parameters
1084
-
1085
- • ...**params**: `any`[]
1086
-
1087
- #### Returns
1088
-
1089
- `any`
1090
-
1091
- #### Inherited from
1092
-
1093
- [`ToolFunc`](ToolFunc.md).[`runWithPosSync`](ToolFunc.md#runwithpossync)
1094
-
1095
- #### Defined in
1096
-
1097
- [packages/ai-tool/src/tool-func.ts:312](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L312)
1098
-
1099
- ***
1100
-
1101
- ### toJSON()
1102
-
1103
- > **toJSON**(): `any`
1104
-
1105
- #### Returns
1106
-
1107
- `any`
1108
-
1109
- #### Inherited from
1110
-
1111
- [`ToolFunc`](ToolFunc.md).[`toJSON`](ToolFunc.md#tojson)
1112
-
1113
- #### Defined in
1114
-
1115
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:182
1116
-
1117
- ***
1118
-
1119
- ### toLocaleString()
1120
-
1121
- > **toLocaleString**(): `string`
1122
-
1123
- Returns a date converted to a string using the current locale.
1124
-
1125
- #### Returns
1126
-
1127
- `string`
1128
-
1129
- #### Inherited from
1130
-
1131
- [`ToolFunc`](ToolFunc.md).[`toLocaleString`](ToolFunc.md#tolocalestring)
1132
-
1133
- #### Defined in
1134
-
1135
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:131
1136
-
1137
- ***
1138
-
1139
- ### toObject()
1140
-
1141
- > **toObject**(`options`?): `any`
1142
-
1143
- Convert the attributes to the json object
1144
-
1145
- #### Parameters
1146
-
1147
- • **options?**: `any`
1148
-
1149
- #### Returns
1150
-
1151
- `any`
1152
-
1153
- the json object.
1154
-
1155
- #### Inherited from
1156
-
1157
- [`ToolFunc`](ToolFunc.md).[`toObject`](ToolFunc.md#toobject)
1158
-
1159
- #### Defined in
1160
-
1161
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:181
1162
-
1163
- ***
1164
-
1165
- ### toString()
1166
-
1167
- > **toString**(): `string`
1168
-
1169
- Returns a string representation of an object.
1170
-
1171
- #### Returns
1172
-
1173
- `string`
1174
-
1175
- #### Inherited from
1176
-
1177
- [`ToolFunc`](ToolFunc.md).[`toString`](ToolFunc.md#tostring)
1178
-
1179
- #### Defined in
1180
-
1181
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:128
1182
-
1183
- ***
1184
-
1185
- ### unregister()
1186
-
1187
- > **unregister**(): `any`
1188
-
1189
- #### Returns
1190
-
1191
- `any`
1192
-
1193
- #### Inherited from
1194
-
1195
- [`ToolFunc`](ToolFunc.md).[`unregister`](ToolFunc.md#unregister)
1196
-
1197
- #### Defined in
1198
-
1199
- [packages/ai-tool/src/tool-func.ts:250](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L250)
1200
-
1201
- ***
1202
-
1203
- ### valueOf()
1204
-
1205
- > **valueOf**(): `Object`
1206
-
1207
- Returns the primitive value of the specified object.
1208
-
1209
- #### Returns
1210
-
1211
- `Object`
1212
-
1213
- #### Inherited from
1214
-
1215
- [`ToolFunc`](ToolFunc.md).[`valueOf`](ToolFunc.md#valueof)
1216
-
1217
- #### Defined in
1218
-
1219
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:134
1220
-
1221
- ***
1222
-
1223
- ### assign()
1224
-
1225
- #### assign(target, source)
1226
-
1227
- > `static` **assign**\<`T`, `U`\>(`target`, `source`): `T` & `U`
1228
-
1229
- Copy the values of all of the enumerable own properties from one or more source objects to a
1230
- target object. Returns the target object.
1231
-
1232
- ##### Type Parameters
1233
-
1234
- • **T** *extends* `object`
1235
-
1236
- • **U**
1237
-
1238
- ##### Parameters
1239
-
1240
- • **target**: `T`
1241
-
1242
- The target object to copy to.
1243
-
1244
- • **source**: `U`
1245
-
1246
- The source object from which to copy properties.
1247
-
1248
- ##### Returns
1249
-
1250
- `T` & `U`
1251
-
1252
- ##### Inherited from
1253
-
1254
- [`ToolFunc`](ToolFunc.md).[`assign`](ToolFunc.md#assign-2)
1255
-
1256
- ##### Defined in
1257
-
1258
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:286
1259
-
1260
- #### assign(target, source1, source2)
1261
-
1262
- > `static` **assign**\<`T`, `U`, `V`\>(`target`, `source1`, `source2`): `T` & `U` & `V`
1263
-
1264
- Copy the values of all of the enumerable own properties from one or more source objects to a
1265
- target object. Returns the target object.
1266
-
1267
- ##### Type Parameters
1268
-
1269
- • **T** *extends* `object`
1270
-
1271
- • **U**
1272
-
1273
- • **V**
1274
-
1275
- ##### Parameters
1276
-
1277
- • **target**: `T`
1278
-
1279
- The target object to copy to.
1280
-
1281
- • **source1**: `U`
1282
-
1283
- The first source object from which to copy properties.
1284
-
1285
- • **source2**: `V`
1286
-
1287
- The second source object from which to copy properties.
1288
-
1289
- ##### Returns
1290
-
1291
- `T` & `U` & `V`
1292
-
1293
- ##### Inherited from
1294
-
1295
- [`ToolFunc`](ToolFunc.md).[`assign`](ToolFunc.md#assign-2)
1296
-
1297
- ##### Defined in
1298
-
1299
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:295
1300
-
1301
- #### assign(target, source1, source2, source3)
1302
-
1303
- > `static` **assign**\<`T`, `U`, `V`, `W`\>(`target`, `source1`, `source2`, `source3`): `T` & `U` & `V` & `W`
1304
-
1305
- Copy the values of all of the enumerable own properties from one or more source objects to a
1306
- target object. Returns the target object.
1307
-
1308
- ##### Type Parameters
1309
-
1310
- • **T** *extends* `object`
1311
-
1312
- • **U**
1313
-
1314
- • **V**
1315
-
1316
- • **W**
1317
-
1318
- ##### Parameters
1319
-
1320
- • **target**: `T`
1321
-
1322
- The target object to copy to.
1323
-
1324
- • **source1**: `U`
1325
-
1326
- The first source object from which to copy properties.
1327
-
1328
- • **source2**: `V`
1329
-
1330
- The second source object from which to copy properties.
1331
-
1332
- • **source3**: `W`
1333
-
1334
- The third source object from which to copy properties.
1335
-
1336
- ##### Returns
1337
-
1338
- `T` & `U` & `V` & `W`
1339
-
1340
- ##### Inherited from
1341
-
1342
- [`ToolFunc`](ToolFunc.md).[`assign`](ToolFunc.md#assign-2)
1343
-
1344
- ##### Defined in
1345
-
1346
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:305
1347
-
1348
- #### assign(target, sources)
1349
-
1350
- > `static` **assign**(`target`, ...`sources`): `any`
1351
-
1352
- Copy the values of all of the enumerable own properties from one or more source objects to a
1353
- target object. Returns the target object.
1354
-
1355
- ##### Parameters
1356
-
1357
- • **target**: `object`
1358
-
1359
- The target object to copy to.
1360
-
1361
- • ...**sources**: `any`[]
1362
-
1363
- One or more source objects from which to copy properties
1364
-
1365
- ##### Returns
1366
-
1367
- `any`
1368
-
1369
- ##### Inherited from
1370
-
1371
- [`ToolFunc`](ToolFunc.md).[`assign`](ToolFunc.md#assign-2)
1372
-
1373
- ##### Defined in
1374
-
1375
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:313
1376
-
1377
- ***
1378
-
1379
- ### create()
1380
-
1381
- #### create(o)
1382
-
1383
- > `static` **create**(`o`): `any`
1384
-
1385
- Creates an object that has the specified prototype or that has null prototype.
1386
-
1387
- ##### Parameters
1388
-
1389
- • **o**: `null` \| `object`
1390
-
1391
- Object to use as a prototype. May be null.
1392
-
1393
- ##### Returns
1394
-
1395
- `any`
1396
-
1397
- ##### Inherited from
1398
-
1399
- [`ToolFunc`](ToolFunc.md).[`create`](ToolFunc.md#create)
1400
-
1401
- ##### Defined in
1402
-
1403
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:188
1404
-
1405
- #### create(o, properties)
1406
-
1407
- > `static` **create**(`o`, `properties`): `any`
1408
-
1409
- Creates an object that has the specified prototype, and that optionally contains specified properties.
1410
-
1411
- ##### Parameters
1412
-
1413
- • **o**: `null` \| `object`
1414
-
1415
- Object to use as a prototype. May be null
1416
-
1417
- • **properties**: `PropertyDescriptorMap` & `ThisType`\<`any`\>
1418
-
1419
- JavaScript object that contains one or more property descriptors.
1420
-
1421
- ##### Returns
1422
-
1423
- `any`
1424
-
1425
- ##### Inherited from
1426
-
1427
- [`ToolFunc`](ToolFunc.md).[`create`](ToolFunc.md#create)
1428
-
1429
- ##### Defined in
1430
-
1431
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:195
1432
-
1433
- ***
1434
-
1435
- ### defineProperties()
1436
-
1437
- > `static` **defineProperties**(`aTarget`, `aProperties`, `recreate`?): `any`
1438
-
1439
- Adds one or more properties to an object, and/or modifies attributes of existing properties.
1440
-
1441
- #### Parameters
1442
-
1443
- • **aTarget**: `any`
1444
-
1445
- • **aProperties**: `PropDescriptors`
1446
-
1447
- • **recreate?**: `boolean`
1448
-
1449
- #### Returns
1450
-
1451
- `any`
1452
-
1453
- #### Inherited from
1454
-
1455
- [`ToolFunc`](ToolFunc.md).[`defineProperties`](ToolFunc.md#defineproperties-1)
1456
-
1457
- #### Defined in
1458
-
1459
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/advance.d.ts:11
1460
-
1461
- ***
1462
-
1463
- ### defineProperty()
1464
-
1465
- > `static` **defineProperty**\<`T`\>(`o`, `p`, `attributes`): `T`
1466
-
1467
- Adds a property to an object, or modifies attributes of an existing property.
1468
-
1469
- #### Type Parameters
1470
-
1471
- • **T**
1472
-
1473
- #### Parameters
1474
-
1475
- • **o**: `T`
1476
-
1477
- 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.
1478
-
1479
- • **p**: `PropertyKey`
1480
-
1481
- The property name.
1482
-
1483
- • **attributes**: `PropertyDescriptor` & `ThisType`\<`any`\>
1484
-
1485
- Descriptor for the property. It can be for a data property or an accessor property.
1486
-
1487
- #### Returns
1488
-
1489
- `T`
1490
-
1491
- #### Inherited from
1492
-
1493
- [`ToolFunc`](ToolFunc.md).[`defineProperty`](ToolFunc.md#defineproperty)
1494
-
1495
- #### Defined in
1496
-
1497
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:203
1498
-
1499
- ***
1500
-
1501
- ### entries()
1502
-
1503
- #### entries(o)
1504
-
1505
- > `static` **entries**\<`T`\>(`o`): [`string`, `T`][]
1506
-
1507
- Returns an array of key/values of the enumerable own properties of an object
1508
-
1509
- ##### Type Parameters
1510
-
1511
- • **T**
1512
-
1513
- ##### Parameters
1514
-
1515
- • **o**: `object` \| `ArrayLike`\<`T`\>
1516
-
1517
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
1518
-
1519
- ##### Returns
1520
-
1521
- [`string`, `T`][]
1522
-
1523
- ##### Inherited from
1524
-
1525
- [`ToolFunc`](ToolFunc.md).[`entries`](ToolFunc.md#entries)
1526
-
1527
- ##### Defined in
1528
-
1529
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:36
1530
-
1531
- #### entries(o)
1532
-
1533
- > `static` **entries**(`o`): [`string`, `any`][]
1534
-
1535
- Returns an array of key/values of the enumerable own properties of an object
1536
-
1537
- ##### Parameters
1538
-
1539
- • **o**
1540
-
1541
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
1542
-
1543
- ##### Returns
1544
-
1545
- [`string`, `any`][]
1546
-
1547
- ##### Inherited from
1548
-
1549
- [`ToolFunc`](ToolFunc.md).[`entries`](ToolFunc.md#entries)
1550
-
1551
- ##### Defined in
1552
-
1553
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:42
1554
-
1555
- ***
1556
-
1557
- ### freeze()
1558
-
1559
- #### freeze(f)
1560
-
1561
- > `static` **freeze**\<`T`\>(`f`): `T`
1562
-
1563
- Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
1564
-
1565
- ##### Type Parameters
1566
-
1567
- • **T** *extends* `Function`
1568
-
1569
- ##### Parameters
1570
-
1571
- • **f**: `T`
1572
-
1573
- Object on which to lock the attributes.
1574
-
1575
- ##### Returns
1576
-
1577
- `T`
1578
-
1579
- ##### Inherited from
1580
-
1581
- [`ToolFunc`](ToolFunc.md).[`freeze`](ToolFunc.md#freeze)
1582
-
1583
- ##### Defined in
1584
-
1585
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:222
1586
-
1587
- #### freeze(o)
1588
-
1589
- > `static` **freeze**\<`T`, `U`\>(`o`): `Readonly`\<`T`\>
1590
-
1591
- Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
1592
-
1593
- ##### Type Parameters
1594
-
1595
- • **T** *extends* `object`
1596
-
1597
- • **U** *extends* `string` \| `number` \| `bigint` \| `boolean` \| `symbol`
1598
-
1599
- ##### Parameters
1600
-
1601
- • **o**: `T`
1602
-
1603
- Object on which to lock the attributes.
1604
-
1605
- ##### Returns
1606
-
1607
- `Readonly`\<`T`\>
1608
-
1609
- ##### Inherited from
1610
-
1611
- [`ToolFunc`](ToolFunc.md).[`freeze`](ToolFunc.md#freeze)
1612
-
1613
- ##### Defined in
1614
-
1615
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:228
1616
-
1617
- #### freeze(o)
1618
-
1619
- > `static` **freeze**\<`T`\>(`o`): `Readonly`\<`T`\>
1620
-
1621
- Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
1622
-
1623
- ##### Type Parameters
1624
-
1625
- • **T**
1626
-
1627
- ##### Parameters
1628
-
1629
- • **o**: `T`
1630
-
1631
- Object on which to lock the attributes.
1632
-
1633
- ##### Returns
1634
-
1635
- `Readonly`\<`T`\>
1636
-
1637
- ##### Inherited from
1638
-
1639
- [`ToolFunc`](ToolFunc.md).[`freeze`](ToolFunc.md#freeze)
1640
-
1641
- ##### Defined in
1642
-
1643
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:234
1644
-
1645
- ***
1646
-
1647
- ### fromEntries()
1648
-
1649
- #### fromEntries(entries)
1650
-
1651
- > `static` **fromEntries**\<`T`\>(`entries`): `object`
1652
-
1653
- Returns an object created by key-value entries for properties and methods
1654
-
1655
- ##### Type Parameters
1656
-
1657
- • **T** = `any`
1658
-
1659
- ##### Parameters
1660
-
1661
- • **entries**: `Iterable`\<readonly [`PropertyKey`, `T`], `any`, `any`\>
1662
-
1663
- An iterable object that contains key-value entries for properties and methods.
1664
-
1665
- ##### Returns
1666
-
1667
- `object`
1668
-
1669
- ##### Inherited from
1670
-
1671
- [`ToolFunc`](ToolFunc.md).[`fromEntries`](ToolFunc.md#fromentries)
1672
-
1673
- ##### Defined in
1674
-
1675
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2019.object.d.ts:26
1676
-
1677
- #### fromEntries(entries)
1678
-
1679
- > `static` **fromEntries**(`entries`): `any`
1680
-
1681
- Returns an object created by key-value entries for properties and methods
1682
-
1683
- ##### Parameters
1684
-
1685
- • **entries**: `Iterable`\<readonly `any`[], `any`, `any`\>
1686
-
1687
- An iterable object that contains key-value entries for properties and methods.
1688
-
1689
- ##### Returns
1690
-
1691
- `any`
1692
-
1693
- ##### Inherited from
1694
-
1695
- [`ToolFunc`](ToolFunc.md).[`fromEntries`](ToolFunc.md#fromentries)
1696
-
1697
- ##### Defined in
1698
-
1699
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2019.object.d.ts:32
1700
-
1701
- ***
1702
-
1703
- ### get()
1704
-
1705
- > `static` **get**(`name`): [`ToolFunc`](ToolFunc.md)
1706
-
1707
- #### Parameters
1708
-
1709
- • **name**: `string`
1710
-
1711
- #### Returns
1712
-
1713
- [`ToolFunc`](ToolFunc.md)
1714
-
1715
- #### Inherited from
1716
-
1717
- [`ToolFunc`](ToolFunc.md).[`get`](ToolFunc.md#get)
1718
-
1719
- #### Defined in
1720
-
1721
- [packages/ai-tool/src/tool-func.ts:77](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L77)
1722
-
1723
- ***
1724
-
1725
- ### getAllByTag()
1726
-
1727
- > `static` **getAllByTag**(`tagName`): [`ToolFunc`](ToolFunc.md)[]
1728
-
1729
- #### Parameters
1730
-
1731
- • **tagName**: `string`
1732
-
1733
- #### Returns
1734
-
1735
- [`ToolFunc`](ToolFunc.md)[]
1736
-
1737
- #### Inherited from
1738
-
1739
- [`ToolFunc`](ToolFunc.md).[`getAllByTag`](ToolFunc.md#getallbytag)
1740
-
1741
- #### Defined in
1742
-
1743
- [packages/ai-tool/src/tool-func.ts:105](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L105)
1744
-
1745
- ***
1746
-
1747
- ### getByTag()
1748
-
1749
- > `static` **getByTag**(`tagName`): `undefined` \| [`ToolFunc`](ToolFunc.md)
1750
-
1751
- #### Parameters
1752
-
1753
- • **tagName**: `string`
1754
-
1755
- #### Returns
1756
-
1757
- `undefined` \| [`ToolFunc`](ToolFunc.md)
1758
-
1759
- #### Inherited from
1760
-
1761
- [`ToolFunc`](ToolFunc.md).[`getByTag`](ToolFunc.md#getbytag)
1762
-
1763
- #### Defined in
1764
-
1765
- [packages/ai-tool/src/tool-func.ts:85](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L85)
1766
-
1767
- ***
1768
-
1769
- ### getFunc()
1770
-
1771
- > `static` **getFunc**(`name`): `any`
1772
-
1773
- #### Parameters
1774
-
1775
- • **name**: `string`
1776
-
1777
- #### Returns
1778
-
1779
- `any`
1780
-
1781
- #### Inherited from
1782
-
1783
- [`ToolFunc`](ToolFunc.md).[`getFunc`](ToolFunc.md#getfunc-1)
1784
-
1785
- #### Defined in
1786
-
1787
- [packages/ai-tool/src/tool-func.ts:146](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L146)
1788
-
1789
- ***
1790
-
1791
- ### getFuncWithPos()
1792
-
1793
- > `static` **getFuncWithPos**(`name`): `any`
1794
-
1795
- #### Parameters
1796
-
1797
- • **name**: `string`
1798
-
1799
- #### Returns
1800
-
1801
- `any`
1802
-
1803
- #### Inherited from
1804
-
1805
- [`ToolFunc`](ToolFunc.md).[`getFuncWithPos`](ToolFunc.md#getfuncwithpos-1)
1806
-
1807
- #### Defined in
1808
-
1809
- [packages/ai-tool/src/tool-func.ts:167](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L167)
1810
-
1811
- ***
1812
-
1813
- ### getOwnPropertyDescriptor()
1814
-
1815
- > `static` **getOwnPropertyDescriptor**(`o`, `p`): `undefined` \| `PropertyDescriptor`
1816
-
1817
- Gets the own property descriptor of the specified object.
1818
- An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
1819
-
1820
- #### Parameters
1821
-
1822
- • **o**: `any`
1823
-
1824
- Object that contains the property.
1825
-
1826
- • **p**: `PropertyKey`
1827
-
1828
- Name of the property.
1829
-
1830
- #### Returns
1831
-
1832
- `undefined` \| `PropertyDescriptor`
1833
-
1834
- #### Inherited from
1835
-
1836
- [`ToolFunc`](ToolFunc.md).[`getOwnPropertyDescriptor`](ToolFunc.md#getownpropertydescriptor)
1837
-
1838
- #### Defined in
1839
-
1840
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:175
1841
-
1842
- ***
1843
-
1844
- ### getOwnPropertyDescriptors()
1845
-
1846
- > `static` **getOwnPropertyDescriptors**\<`T`\>(`o`): \{ \[P in string \| number \| symbol\]: TypedPropertyDescriptor\<T\[P\]\> \} & `object`
1847
-
1848
- Returns an object containing all own property descriptors of an object
1849
-
1850
- #### Type Parameters
1851
-
1852
- • **T**
1853
-
1854
- #### Parameters
1855
-
1856
- • **o**: `T`
1857
-
1858
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
1859
-
1860
- #### Returns
1861
-
1862
- \{ \[P in string \| number \| symbol\]: TypedPropertyDescriptor\<T\[P\]\> \} & `object`
1863
-
1864
- #### Inherited from
1865
-
1866
- [`ToolFunc`](ToolFunc.md).[`getOwnPropertyDescriptors`](ToolFunc.md#getownpropertydescriptors)
1867
-
1868
- #### Defined in
1869
-
1870
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:48
1871
-
1872
- ***
1873
-
1874
- ### getOwnPropertyNames()
1875
-
1876
- > `static` **getOwnPropertyNames**(`o`): `string`[]
1877
-
1878
- Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
1879
- on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
1880
-
1881
- #### Parameters
1882
-
1883
- • **o**: `any`
1884
-
1885
- Object that contains the own properties.
1886
-
1887
- #### Returns
1888
-
1889
- `string`[]
1890
-
1891
- #### Inherited from
1892
-
1893
- [`ToolFunc`](ToolFunc.md).[`getOwnPropertyNames`](ToolFunc.md#getownpropertynames)
1894
-
1895
- #### Defined in
1896
-
1897
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:182
1898
-
1899
- ***
1900
-
1901
- ### getOwnPropertySymbols()
1902
-
1903
- > `static` **getOwnPropertySymbols**(`o`): `symbol`[]
1904
-
1905
- Returns an array of all symbol properties found directly on object o.
1906
-
1907
- #### Parameters
1908
-
1909
- • **o**: `any`
1910
-
1911
- Object to retrieve the symbols from.
1912
-
1913
- #### Returns
1914
-
1915
- `symbol`[]
1916
-
1917
- #### Inherited from
1918
-
1919
- [`ToolFunc`](ToolFunc.md).[`getOwnPropertySymbols`](ToolFunc.md#getownpropertysymbols)
1920
-
1921
- #### Defined in
1922
-
1923
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:319
1924
-
1925
- ***
1926
-
1927
- ### getProperties()
1928
-
1929
- > `static` **getProperties**(): `PropDescriptors`
1930
-
1931
- get all properties descriptor include inherited.
1932
-
1933
- #### Returns
1934
-
1935
- `PropDescriptors`
1936
-
1937
- #### Inherited from
1938
-
1939
- [`ToolFunc`](ToolFunc.md).[`getProperties`](ToolFunc.md#getproperties-1)
1940
-
1941
- #### Defined in
1942
-
1943
- node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/advance.d.ts:10
1944
-
1945
- ***
1946
-
1947
- ### getPrototypeOf()
1948
-
1949
- > `static` **getPrototypeOf**(`o`): `any`
1950
-
1951
- Returns the prototype of an object.
1952
-
1953
- #### Parameters
1954
-
1955
- • **o**: `any`
1956
-
1957
- The object that references the prototype.
1958
-
1959
- #### Returns
1960
-
1961
- `any`
1962
-
1963
- #### Inherited from
1964
-
1965
- [`ToolFunc`](ToolFunc.md).[`getPrototypeOf`](ToolFunc.md#getprototypeof)
1966
-
1967
- #### Defined in
1968
-
1969
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:167
1970
-
1971
- ***
1972
-
1973
- ### hasAsyncFeature()
1974
-
1975
- > `static` **hasAsyncFeature**(`feature`): `boolean`
1976
-
1977
- #### Parameters
1978
-
1979
- • **feature**: [`AsyncFeatureBits`](../enumerations/AsyncFeatureBits.md)
1980
-
1981
- #### Returns
1982
-
1983
- `boolean`
1984
-
1985
- #### Inherited from
1986
-
1987
- [`ToolFunc`](ToolFunc.md).[`hasAsyncFeature`](ToolFunc.md#hasasyncfeature-1)
1988
-
1989
- #### Defined in
1990
-
1991
- [packages/ai-tool/src/tool-func.ts:123](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L123)
1992
-
1993
- ***
1994
-
1995
- ### hasOwn()
1996
-
1997
- > `static` **hasOwn**(`o`, `v`): `boolean`
1998
-
1999
- Determines whether an object has a property with the specified name.
2000
-
2001
- #### Parameters
2002
-
2003
- • **o**: `object`
2004
-
2005
- An object.
2006
-
2007
- • **v**: `PropertyKey`
2008
-
2009
- A property name.
2010
-
2011
- #### Returns
2012
-
2013
- `boolean`
2014
-
2015
- #### Inherited from
2016
-
2017
- [`ToolFunc`](ToolFunc.md).[`hasOwn`](ToolFunc.md#hasown)
2018
-
2019
- #### Defined in
2020
-
2021
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2022.object.d.ts:25
2022
-
2023
- ***
2024
-
2025
- ### is()
2026
-
2027
- > `static` **is**(`value1`, `value2`): `boolean`
2028
-
2029
- Returns true if the values are the same value, false otherwise.
2030
-
2031
- #### Parameters
2032
-
2033
- • **value1**: `any`
2034
-
2035
- The first value.
2036
-
2037
- • **value2**: `any`
2038
-
2039
- The second value.
2040
-
2041
- #### Returns
2042
-
2043
- `boolean`
2044
-
2045
- #### Inherited from
2046
-
2047
- [`ToolFunc`](ToolFunc.md).[`is`](ToolFunc.md#is)
2048
-
2049
- #### Defined in
2050
-
2051
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:332
2052
-
2053
- ***
2054
-
2055
- ### isExtensible()
2056
-
2057
- > `static` **isExtensible**(`o`): `boolean`
2058
-
2059
- Returns a value that indicates whether new properties can be added to an object.
2060
-
2061
- #### Parameters
2062
-
2063
- • **o**: `any`
2064
-
2065
- Object to test.
2066
-
2067
- #### Returns
2068
-
2069
- `boolean`
2070
-
2071
- #### Inherited from
2072
-
2073
- [`ToolFunc`](ToolFunc.md).[`isExtensible`](ToolFunc.md#isextensible)
2074
-
2075
- #### Defined in
2076
-
2077
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:258
2078
-
2079
- ***
2080
-
2081
- ### isFrozen()
2082
-
2083
- > `static` **isFrozen**(`o`): `boolean`
2084
-
2085
- Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
2086
-
2087
- #### Parameters
2088
-
2089
- • **o**: `any`
2090
-
2091
- Object to test.
2092
-
2093
- #### Returns
2094
-
2095
- `boolean`
2096
-
2097
- #### Inherited from
2098
-
2099
- [`ToolFunc`](ToolFunc.md).[`isFrozen`](ToolFunc.md#isfrozen)
2100
-
2101
- #### Defined in
2102
-
2103
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:252
2104
-
2105
- ***
2106
-
2107
- ### isSealed()
2108
-
2109
- > `static` **isSealed**(`o`): `boolean`
2110
-
2111
- Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
2112
-
2113
- #### Parameters
2114
-
2115
- • **o**: `any`
2116
-
2117
- Object to test.
2118
-
2119
- #### Returns
2120
-
2121
- `boolean`
2122
-
2123
- #### Inherited from
2124
-
2125
- [`ToolFunc`](ToolFunc.md).[`isSealed`](ToolFunc.md#issealed)
2126
-
2127
- #### Defined in
2128
-
2129
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:246
2130
-
2131
- ***
2132
-
2133
- ### keys()
2134
-
2135
- #### keys(o)
2136
-
2137
- > `static` **keys**(`o`): `string`[]
2138
-
2139
- Returns the names of the enumerable string properties and methods of an object.
2140
-
2141
- ##### Parameters
2142
-
2143
- • **o**: `object`
2144
-
2145
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2146
-
2147
- ##### Returns
2148
-
2149
- `string`[]
2150
-
2151
- ##### Inherited from
2152
-
2153
- [`ToolFunc`](ToolFunc.md).[`keys`](ToolFunc.md#keys)
2154
-
2155
- ##### Defined in
2156
-
2157
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:264
2158
-
2159
- #### keys(o)
2160
-
2161
- > `static` **keys**(`o`): `string`[]
2162
-
2163
- Returns the names of the enumerable string properties and methods of an object.
2164
-
2165
- ##### Parameters
2166
-
2167
- • **o**
2168
-
2169
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2170
-
2171
- ##### Returns
2172
-
2173
- `string`[]
2174
-
2175
- ##### Inherited from
2176
-
2177
- [`ToolFunc`](ToolFunc.md).[`keys`](ToolFunc.md#keys)
2178
-
2179
- ##### Defined in
2180
-
2181
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:325
2182
-
2183
- ***
2184
-
2185
- ### list()
2186
-
2187
- > `static` **list**(): [`Funcs`](../interfaces/Funcs.md)
2188
-
2189
- #### Returns
2190
-
2191
- [`Funcs`](../interfaces/Funcs.md)
2192
-
2193
- #### Inherited from
2194
-
2195
- [`ToolFunc`](ToolFunc.md).[`list`](ToolFunc.md#list)
2196
-
2197
- #### Defined in
2198
-
2199
- [packages/ai-tool/src/tool-func.ts:81](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L81)
2200
-
2201
- ***
2202
-
2203
- ### preventExtensions()
2204
-
2205
- > `static` **preventExtensions**\<`T`\>(`o`): `T`
2206
-
2207
- Prevents the addition of new properties to an object.
2208
-
2209
- #### Type Parameters
2210
-
2211
- • **T**
2212
-
2213
- #### Parameters
2214
-
2215
- • **o**: `T`
2216
-
2217
- Object to make non-extensible.
2218
-
2219
- #### Returns
2220
-
2221
- `T`
2222
-
2223
- #### Inherited from
2224
-
2225
- [`ToolFunc`](ToolFunc.md).[`preventExtensions`](ToolFunc.md#preventextensions)
2226
-
2227
- #### Defined in
2228
-
2229
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:240
2230
-
2231
- ***
2232
-
2233
- ### register()
2234
-
2235
- #### register(name, options)
2236
-
2237
- > `static` **register**(`name`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
2238
-
2239
- ##### Parameters
2240
-
2241
- • **name**: `string`
2242
-
2243
- • **options**: [`FuncItem`](../interfaces/FuncItem.md)
2244
-
2245
- ##### Returns
2246
-
2247
- `boolean` \| [`ToolFunc`](ToolFunc.md)
2248
-
2249
- ##### Inherited from
2250
-
2251
- [`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register-1)
2252
-
2253
- ##### Defined in
2254
-
2255
- [packages/ai-tool/src/tool-func.ts:172](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L172)
2256
-
2257
- #### register(func, options)
2258
-
2259
- > `static` **register**(`func`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
2260
-
2261
- ##### Parameters
2262
-
2263
- • **func**: `Function`
2264
-
2265
- • **options**: [`FuncItem`](../interfaces/FuncItem.md)
2266
-
2267
- ##### Returns
2268
-
2269
- `boolean` \| [`ToolFunc`](ToolFunc.md)
2270
-
2271
- ##### Inherited from
2272
-
2273
- [`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register-1)
2274
-
2275
- ##### Defined in
2276
-
2277
- [packages/ai-tool/src/tool-func.ts:173](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L173)
2278
-
2279
- #### register(name, options)
2280
-
2281
- > `static` **register**(`name`, `options`?): `boolean` \| [`ToolFunc`](ToolFunc.md)
2282
-
2283
- ##### Parameters
2284
-
2285
- • **name**: `string` \| `Function` \| [`ToolFunc`](ToolFunc.md) \| [`FuncItem`](../interfaces/FuncItem.md)
2286
-
2287
- • **options?**: [`FuncItem`](../interfaces/FuncItem.md)
2288
-
2289
- ##### Returns
2290
-
2291
- `boolean` \| [`ToolFunc`](ToolFunc.md)
2292
-
2293
- ##### Inherited from
2294
-
2295
- [`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register-1)
2296
-
2297
- ##### Defined in
2298
-
2299
- [packages/ai-tool/src/tool-func.ts:174](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L174)
2300
-
2301
- ***
2302
-
2303
- ### run()
2304
-
2305
- > `static` **run**(`name`, `params`?): `Promise`\<`any`\>
2306
-
2307
- #### Parameters
2308
-
2309
- • **name**: `string`
2310
-
2311
- • **params?**: `any`
2312
-
2313
- #### Returns
2314
-
2315
- `Promise`\<`any`\>
2316
-
2317
- #### Inherited from
2318
-
2319
- [`ToolFunc`](ToolFunc.md).[`run`](ToolFunc.md#run-1)
2320
-
2321
- #### Defined in
2322
-
2323
- [packages/ai-tool/src/tool-func.ts:130](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L130)
2324
-
2325
- ***
2326
-
2327
- ### runSync()
2328
-
2329
- > `static` **runSync**(`name`, `params`?): `any`
2330
-
2331
- #### Parameters
2332
-
2333
- • **name**: `string`
2334
-
2335
- • **params?**: `any`
2336
-
2337
- #### Returns
2338
-
2339
- `any`
2340
-
2341
- #### Inherited from
2342
-
2343
- [`ToolFunc`](ToolFunc.md).[`runSync`](ToolFunc.md#runsync-1)
2344
-
2345
- #### Defined in
2346
-
2347
- [packages/ai-tool/src/tool-func.ts:138](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L138)
2348
-
2349
- ***
2350
-
2351
- ### runWithPos()
2352
-
2353
- > `static` **runWithPos**(`name`, ...`params`): `Promise`\<`any`\>
2354
-
2355
- #### Parameters
2356
-
2357
- • **name**: `string`
2358
-
2359
- • ...**params**: `any`[]
2360
-
2361
- #### Returns
2362
-
2363
- `Promise`\<`any`\>
2364
-
2365
- #### Inherited from
2366
-
2367
- [`ToolFunc`](ToolFunc.md).[`runWithPos`](ToolFunc.md#runwithpos-1)
2368
-
2369
- #### Defined in
2370
-
2371
- [packages/ai-tool/src/tool-func.ts:151](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L151)
2372
-
2373
- ***
2374
-
2375
- ### runWithPosSync()
2376
-
2377
- > `static` **runWithPosSync**(`name`, ...`params`): `any`
2378
-
2379
- #### Parameters
2380
-
2381
- • **name**: `string`
2382
-
2383
- • ...**params**: `any`[]
2384
-
2385
- #### Returns
2386
-
2387
- `any`
2388
-
2389
- #### Inherited from
2390
-
2391
- [`ToolFunc`](ToolFunc.md).[`runWithPosSync`](ToolFunc.md#runwithpossync-1)
2392
-
2393
- #### Defined in
2394
-
2395
- [packages/ai-tool/src/tool-func.ts:159](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L159)
2396
-
2397
- ***
2398
-
2399
- ### seal()
2400
-
2401
- > `static` **seal**\<`T`\>(`o`): `T`
2402
-
2403
- Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
2404
-
2405
- #### Type Parameters
2406
-
2407
- • **T**
2408
-
2409
- #### Parameters
2410
-
2411
- • **o**: `T`
2412
-
2413
- Object on which to lock the attributes.
2414
-
2415
- #### Returns
2416
-
2417
- `T`
2418
-
2419
- #### Inherited from
2420
-
2421
- [`ToolFunc`](ToolFunc.md).[`seal`](ToolFunc.md#seal)
2422
-
2423
- #### Defined in
2424
-
2425
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es5.d.ts:216
2426
-
2427
- ***
2428
-
2429
- ### setPrototypeOf()
2430
-
2431
- > `static` **setPrototypeOf**(`o`, `proto`): `any`
2432
-
2433
- Sets the prototype of a specified object o to object proto or null. Returns the object o.
2434
-
2435
- #### Parameters
2436
-
2437
- • **o**: `any`
2438
-
2439
- The object to change its prototype.
2440
-
2441
- • **proto**: `null` \| `object`
2442
-
2443
- The value of the new prototype or null.
2444
-
2445
- #### Returns
2446
-
2447
- `any`
2448
-
2449
- #### Inherited from
2450
-
2451
- [`ToolFunc`](ToolFunc.md).[`setPrototypeOf`](ToolFunc.md#setprototypeof)
2452
-
2453
- #### Defined in
2454
-
2455
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:339
2456
-
2457
- ***
2458
-
2459
- ### unregister()
2460
-
2461
- > `static` **unregister**(`name`): `undefined` \| [`ToolFunc`](ToolFunc.md)
2462
-
2463
- #### Parameters
2464
-
2465
- • **name**: `string`
2466
-
2467
- #### Returns
2468
-
2469
- `undefined` \| [`ToolFunc`](ToolFunc.md)
2470
-
2471
- #### Inherited from
2472
-
2473
- [`ToolFunc`](ToolFunc.md).[`unregister`](ToolFunc.md#unregister-1)
2474
-
2475
- #### Defined in
2476
-
2477
- [packages/ai-tool/src/tool-func.ts:202](https://github.com/isdk/ai-tool.js/blob/e324043799402aa2caa41711a9168487ab85c166/src/tool-func.ts#L202)
2478
-
2479
- ***
2480
-
2481
- ### values()
2482
-
2483
- #### values(o)
2484
-
2485
- > `static` **values**\<`T`\>(`o`): `T`[]
2486
-
2487
- Returns an array of values of the enumerable own properties of an object
2488
-
2489
- ##### Type Parameters
2490
-
2491
- • **T**
2492
-
2493
- ##### Parameters
2494
-
2495
- • **o**: `object` \| `ArrayLike`\<`T`\>
2496
-
2497
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2498
-
2499
- ##### Returns
2500
-
2501
- `T`[]
2502
-
2503
- ##### Inherited from
2504
-
2505
- [`ToolFunc`](ToolFunc.md).[`values`](ToolFunc.md#values)
2506
-
2507
- ##### Defined in
2508
-
2509
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:24
2510
-
2511
- #### values(o)
2512
-
2513
- > `static` **values**(`o`): `any`[]
2514
-
2515
- Returns an array of values of the enumerable own properties of an object
2516
-
2517
- ##### Parameters
2518
-
2519
- • **o**
2520
-
2521
- Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2522
-
2523
- ##### Returns
2524
-
2525
- `any`[]
2526
-
2527
- ##### Inherited from
2528
-
2529
- [`ToolFunc`](ToolFunc.md).[`values`](ToolFunc.md#values)
2530
-
2531
- ##### Defined in
2532
-
2533
- node\_modules/.pnpm/typescript@5.6.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:30