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