@isdk/ai-tool 0.6.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (473) hide show
  1. package/README.cn.md +103 -237
  2. package/README.md +101 -186
  3. package/dist/chunk-4XRPAC7C.mjs +1 -0
  4. package/dist/chunk-VIG2GB47.mjs +1 -1
  5. package/dist/funcs.d.mts +1 -1
  6. package/dist/funcs.d.ts +1 -1
  7. package/dist/funcs.js +1 -1
  8. package/dist/funcs.mjs +1 -1
  9. package/dist/index-DEUnmyUq.d.mts +1792 -0
  10. package/dist/index-DEUnmyUq.d.ts +1792 -0
  11. package/dist/index.d.mts +1068 -9
  12. package/dist/index.d.ts +1068 -9
  13. package/dist/index.js +1 -1
  14. package/dist/index.mjs +1 -1
  15. package/dist/test/util.js +1 -1
  16. package/docs/api/README.md +165 -0
  17. package/docs/{_media → api/_media}/CONTRIBUTING.md +3 -3
  18. package/docs/api/_media/pubsub.md +326 -0
  19. package/docs/api/_media/server_client_tools.md +88 -0
  20. package/docs/api/_media/toolFunc.md +183 -0
  21. package/docs/api/_media/transport.md +137 -0
  22. package/docs/{classes → api/classes}/AbortError.md +139 -54
  23. package/docs/api/classes/AlreadyExistsError.md +431 -0
  24. package/docs/api/classes/BaseError.md +440 -0
  25. package/docs/{classes → api/classes}/BinarySemaphore.md +25 -25
  26. package/docs/{classes → api/classes}/CancelableAbility.md +25 -25
  27. package/docs/api/classes/ClientToolTransport.md +310 -0
  28. package/docs/{classes → api/classes}/ClientTools.md +646 -180
  29. package/docs/{classes → api/classes}/CommonError.md +139 -54
  30. package/docs/{classes → api/classes}/ConfigFile.md +54 -5
  31. package/docs/{classes → api/classes}/EnvPromptTemplate.md +94 -48
  32. package/docs/{classes → api/classes}/EventClient.md +742 -234
  33. package/docs/{classes → api/classes}/EventEmitter.md +12 -12
  34. package/docs/{classes → api/classes}/EventServer.md +670 -209
  35. package/docs/{classes → api/classes}/EventToolFunc.md +561 -109
  36. package/docs/{classes → api/classes}/FStringPromptTemplate.md +94 -48
  37. package/docs/{classes → api/classes}/FewShotPromptTemplate.md +100 -52
  38. package/docs/{classes → api/classes}/GolangPromptTemplate.md +99 -53
  39. package/docs/api/classes/HttpClientToolTransport.md +324 -0
  40. package/docs/api/classes/HttpServerToolTransport.md +332 -0
  41. package/docs/{classes → api/classes}/IntSet.md +12 -12
  42. package/docs/{classes → api/classes}/LRUCache.md +26 -26
  43. package/docs/api/classes/NotFoundError.md +431 -0
  44. package/docs/api/classes/NotImplementationError.md +431 -0
  45. package/docs/{classes → api/classes}/PromptExampleSelector.md +9 -9
  46. package/docs/{classes → api/classes}/PromptTemplate.md +91 -47
  47. package/docs/api/classes/ReadableStreamError.md +451 -0
  48. package/docs/api/classes/ResClientTools.md +3365 -0
  49. package/docs/api/classes/ResServerTools.md +3342 -0
  50. package/docs/api/classes/RpcMethodsClientTool.md +3275 -0
  51. package/docs/api/classes/RpcMethodsServerTool.md +3224 -0
  52. package/docs/api/classes/SSEChannel.md +272 -0
  53. package/docs/{classes → api/classes}/Semaphore.md +26 -26
  54. package/docs/api/classes/ServerToolTransport.md +323 -0
  55. package/docs/{classes → api/classes}/ServerTools.md +583 -120
  56. package/docs/{classes → api/classes}/SignalGate.md +9 -9
  57. package/docs/api/classes/SseClientPubSubTransport.md +92 -0
  58. package/docs/api/classes/SseServerPubSubTransport.md +234 -0
  59. package/docs/{classes → api/classes}/TaskAbortController.md +9 -9
  60. package/docs/api/classes/ToolFunc.md +2665 -0
  61. package/docs/api/classes/ToolTransport.md +143 -0
  62. package/docs/api/classes/YamlTypeBaseObject.md +31 -0
  63. package/docs/api/enumerations/AsyncFeatureBits.md +33 -0
  64. package/docs/api/enumerations/AsyncFeatures.md +33 -0
  65. package/docs/api/enumerations/ErrorCode.md +177 -0
  66. package/docs/api/enumerations/HashAlgorithm.md +97 -0
  67. package/docs/{functions → api/functions}/AIArgProcessor.md +1 -1
  68. package/docs/{functions → api/functions}/AIStream.md +1 -1
  69. package/docs/{functions → api/functions}/ChoiceArgProcessor.md +1 -1
  70. package/docs/api/functions/DefaultDateFormat.md +21 -0
  71. package/docs/{functions → api/functions}/ObjectArgsToArgsInfo.md +1 -1
  72. package/docs/{functions → api/functions}/RateLimit.md +1 -1
  73. package/docs/{functions → api/functions}/TemplateArgProcessor.md +1 -1
  74. package/docs/api/functions/addDate.md +71 -0
  75. package/docs/{functions → api/functions}/assignDirs.md +1 -1
  76. package/docs/{functions → api/functions}/backendEventable.md +1 -1
  77. package/docs/{functions → api/functions}/beforeShutdown.md +1 -1
  78. package/docs/api/functions/calcPerplexity.md +60 -0
  79. package/docs/api/functions/calcPerplexitySimple.md +42 -0
  80. package/docs/api/functions/canonicalize.md +33 -0
  81. package/docs/{functions → api/functions}/completeSentences.md +1 -1
  82. package/docs/{functions → api/functions}/concatText.md +1 -1
  83. package/docs/{functions → api/functions}/countLLMTokens.md +1 -1
  84. package/docs/{functions → api/functions}/countRegexMatches.md +1 -1
  85. package/docs/{functions → api/functions}/createAbilityInjector.md +4 -4
  86. package/docs/{functions → api/functions}/createCallbacksTransformer.md +1 -1
  87. package/docs/{functions → api/functions}/createEmptyReadableStream.md +1 -1
  88. package/docs/{functions → api/functions}/createEndWithRepetitionDetector.md +1 -1
  89. package/docs/{functions → api/functions}/createError.md +1 -1
  90. package/docs/{functions → api/functions}/createEventStreamTransformer.md +1 -1
  91. package/docs/{functions → api/functions}/createHfValueFunc.md +1 -1
  92. package/docs/{functions → api/functions}/createLRUCache.md +1 -1
  93. package/docs/{functions → api/functions}/createYamlObjectTag.md +1 -1
  94. package/docs/{functions → api/functions}/dateToText.md +1 -1
  95. package/docs/{functions → api/functions}/decodeCharset.md +1 -1
  96. package/docs/api/functions/defaultsWithConcat.md +74 -0
  97. package/docs/{functions → api/functions}/detectCharset.md +1 -1
  98. package/docs/{functions → api/functions}/encodeLLMTokens.md +1 -1
  99. package/docs/{functions → api/functions}/ensureQuoted.md +1 -1
  100. package/docs/{functions → api/functions}/eventable.md +1 -1
  101. package/docs/{functions → api/functions}/expandConfig.md +1 -1
  102. package/docs/{functions → api/functions}/expandEnv.md +1 -1
  103. package/docs/{functions → api/functions}/expandObjEnv.md +1 -1
  104. package/docs/{functions → api/functions}/expandPath.md +1 -1
  105. package/docs/api/functions/expandPathInObject.md +29 -0
  106. package/docs/api/functions/expandPaths.md +25 -0
  107. package/docs/{functions → api/functions}/extNameLevel.md +1 -1
  108. package/docs/{functions → api/functions}/fileIsExists.md +1 -1
  109. package/docs/{functions → api/functions}/filterValidFnScope.md +1 -1
  110. package/docs/{functions → api/functions}/findIndexNonEmptyFrom.md +1 -1
  111. package/docs/{functions → api/functions}/findPort.md +1 -1
  112. package/docs/{functions → api/functions}/formatISO.md +1 -1
  113. package/docs/{functions → api/functions}/formatTextWithSpace.md +1 -1
  114. package/docs/api/functions/funcGetMeta.md +27 -0
  115. package/docs/api/functions/funcWithMeta.md +41 -0
  116. package/docs/api/functions/genUrlParamsStr.md +27 -0
  117. package/docs/{functions → api/functions}/getAllEnumKeys.md +1 -1
  118. package/docs/{functions → api/functions}/getConfigFileNames.md +1 -1
  119. package/docs/{functions → api/functions}/getConfigs.md +1 -1
  120. package/docs/{functions → api/functions}/getEnvVairables.md +1 -1
  121. package/docs/{functions → api/functions}/getFileMetaInfo.md +1 -1
  122. package/docs/{functions → api/functions}/getHashAlgoBySize.md +1 -1
  123. package/docs/{functions → api/functions}/getKeysPath.md +1 -1
  124. package/docs/{functions → api/functions}/getLLMTokenizer.md +1 -1
  125. package/docs/{functions → api/functions}/getMultiLevelExtname.md +1 -1
  126. package/docs/{functions → api/functions}/getPackageDir.md +1 -1
  127. package/docs/{functions → api/functions}/getRealFilepath.md +1 -1
  128. package/docs/{functions → api/functions}/getResponseErrorReadableStream.md +1 -1
  129. package/docs/{functions → api/functions}/getXDGConfigs.md +1 -1
  130. package/docs/{functions → api/functions}/hasDirectoryIn.md +1 -1
  131. package/docs/{functions → api/functions}/hash.md +1 -1
  132. package/docs/{functions → api/functions}/hashFile.md +1 -1
  133. package/docs/api/functions/hashObject.md +25 -0
  134. package/docs/{functions → api/functions}/hashStream.md +1 -1
  135. package/docs/api/functions/initShutdown.md +15 -0
  136. package/docs/{functions → api/functions}/isLangUsingSpaces.md +1 -1
  137. package/docs/{functions → api/functions}/isListItemString.md +1 -1
  138. package/docs/{functions → api/functions}/isModelNameMatched.md +1 -1
  139. package/docs/{functions → api/functions}/isPunctuationChar.md +1 -1
  140. package/docs/{functions → api/functions}/isQuoted.md +1 -1
  141. package/docs/{functions → api/functions}/isRegExp.md +1 -1
  142. package/docs/{functions → api/functions}/isSameString.md +1 -1
  143. package/docs/{functions → api/functions}/isSectionString.md +1 -1
  144. package/docs/{functions → api/functions}/isSentenceEnding.md +1 -1
  145. package/docs/{functions → api/functions}/isSepLineString.md +1 -1
  146. package/docs/{functions → api/functions}/isStrWrapped.md +1 -1
  147. package/docs/{functions → api/functions}/isSubdirectory.md +2 -2
  148. package/docs/{functions → api/functions}/isTitleString.md +1 -1
  149. package/docs/{functions → api/functions}/isValidFilename.md +1 -1
  150. package/docs/{functions → api/functions}/isValidFilepath.md +1 -1
  151. package/docs/{functions → api/functions}/isWebStream.md +1 -1
  152. package/docs/api/functions/joinSplitWords.md +46 -0
  153. package/docs/{functions → api/functions}/jsonFilterToWhere.md +1 -1
  154. package/docs/{functions → api/functions}/jsonToMarkdownStr.md +9 -1
  155. package/docs/{functions → api/functions}/loadAIConfig.md +1 -1
  156. package/docs/{functions → api/functions}/loadConfig.md +1 -1
  157. package/docs/{functions → api/functions}/loadConfigFile.md +1 -1
  158. package/docs/{functions → api/functions}/loadFileFromPaths.md +1 -1
  159. package/docs/{functions → api/functions}/loadTextFromPaths.md +1 -1
  160. package/docs/{functions → api/functions}/lrucache.md +1 -1
  161. package/docs/{functions → api/functions}/makeToolFuncCancelable.md +1 -1
  162. package/docs/{functions → api/functions}/matchUrlProtocol.md +1 -1
  163. package/docs/{functions → api/functions}/memoize.md +1 -1
  164. package/docs/api/functions/mergeArray.md +57 -0
  165. package/docs/{functions → api/functions}/messagesToText.md +1 -1
  166. package/docs/api/functions/normalizePath.md +21 -0
  167. package/docs/{functions → api/functions}/paramsSizeToScaleStr.md +1 -1
  168. package/docs/{functions → api/functions}/parseCommand.md +1 -1
  169. package/docs/{functions → api/functions}/parseDateFormat.md +1 -1
  170. package/docs/{functions → api/functions}/parseISO.md +1 -1
  171. package/docs/{functions → api/functions}/parseJsJson.md +1 -1
  172. package/docs/{functions → api/functions}/parseJsJsonSimpleSync.md +1 -1
  173. package/docs/{functions → api/functions}/parseObjectArgInfo.md +1 -1
  174. package/docs/{functions → api/functions}/parseObjectArgumentInfos.md +1 -1
  175. package/docs/{functions → api/functions}/parseObjectArguments.md +1 -1
  176. package/docs/{functions → api/functions}/parseObjectArgumentsAsArgInfos.md +1 -1
  177. package/docs/{functions → api/functions}/parseYaml.md +1 -1
  178. package/docs/api/functions/pruneSubdirectories.md +35 -0
  179. package/docs/api/functions/pruneSubdirectoriesInPlace.md +38 -0
  180. package/docs/{functions → api/functions}/quoteStr.md +1 -1
  181. package/docs/{functions → api/functions}/readFilenamesRecursiveSync.md +1 -1
  182. package/docs/{functions → api/functions}/readTextFileChunks.md +1 -1
  183. package/docs/{functions → api/functions}/readTextFileChunksEx.md +1 -1
  184. package/docs/{functions → api/functions}/readableFromAsyncIterable.md +1 -1
  185. package/docs/{functions → api/functions}/registerCoreTools.md +1 -1
  186. package/docs/{functions → api/functions}/registerYamlTag.md +1 -1
  187. package/docs/{functions → api/functions}/removeMarkdownBold.md +1 -1
  188. package/docs/{functions → api/functions}/removeMarkdownBoldAndItalic.md +1 -1
  189. package/docs/{functions → api/functions}/removeMarkdownItalic.md +1 -1
  190. package/docs/{functions → api/functions}/replaceWithPlaceholder.md +1 -1
  191. package/docs/{functions → api/functions}/restoreFromPlacehoders.md +1 -1
  192. package/docs/{functions → api/functions}/sanitizeFilename.md +1 -1
  193. package/docs/{functions → api/functions}/sanitizeFilepath.md +1 -1
  194. package/docs/{functions → api/functions}/saveConfigFile.md +1 -1
  195. package/docs/{functions → api/functions}/scaleStrToParamsSize.md +1 -1
  196. package/docs/{functions → api/functions}/shutdown.md +1 -1
  197. package/docs/{functions → api/functions}/simplifyObjectArguments.md +1 -1
  198. package/docs/api/functions/sleep.md +36 -0
  199. package/docs/{functions → api/functions}/sortedValues.md +1 -1
  200. package/docs/{functions → api/functions}/splitChunks.md +1 -1
  201. package/docs/{functions → api/functions}/splitParagraph.md +1 -1
  202. package/docs/{functions → api/functions}/splitSentence.md +1 -1
  203. package/docs/api/functions/splitWords.md +42 -0
  204. package/docs/{functions → api/functions}/stringifyYaml.md +1 -1
  205. package/docs/{functions → api/functions}/stripConsoleColor.md +1 -1
  206. package/docs/{functions → api/functions}/textToDate.md +1 -1
  207. package/docs/{functions → api/functions}/throwError.md +3 -3
  208. package/docs/{functions → api/functions}/toDate.md +1 -1
  209. package/docs/{functions → api/functions}/toDateTime.md +1 -1
  210. package/docs/{functions → api/functions}/toRegExp.md +1 -1
  211. package/docs/{functions → api/functions}/trimStartOfStreamHelper.md +1 -1
  212. package/docs/{functions → api/functions}/truncTo.md +1 -1
  213. package/docs/{functions → api/functions}/truncateByToken.md +1 -1
  214. package/docs/{functions → api/functions}/truncateToTokenLimit.md +1 -1
  215. package/docs/{functions → api/functions}/truncateToTokenLimitEx.md +1 -1
  216. package/docs/{functions → api/functions}/uuid.md +1 -1
  217. package/docs/{functions → api/functions}/uuidParse.md +1 -1
  218. package/docs/{functions → api/functions}/uuidStringify.md +1 -1
  219. package/docs/{functions → api/functions}/uuidValidate.md +1 -1
  220. package/docs/{functions → api/functions}/uuidVersion.md +1 -1
  221. package/docs/{functions → api/functions}/uuidv1.md +9 -5
  222. package/docs/{functions → api/functions}/uuidv4.md +9 -5
  223. package/docs/{functions → api/functions}/uuidv5.md +9 -5
  224. package/docs/api/functions/wait.md +45 -0
  225. package/docs/{functions → api/functions}/wrapEventEmitter.md +1 -1
  226. package/docs/{functions → api/functions}/xxhash.md +1 -1
  227. package/docs/{functions → api/functions}/xxhash32.md +1 -1
  228. package/docs/{functions → api/functions}/xxhash64.md +1 -1
  229. package/docs/{functions → api/functions}/xxhashAsStr.md +1 -1
  230. package/docs/api/functions/yieldExec.md +27 -0
  231. package/docs/{globals.md → api/globals.md} +50 -1
  232. package/docs/api/interfaces/AIChatAssistantMessageParam.md +129 -0
  233. package/docs/api/interfaces/AIChatContentPartImage.md +29 -0
  234. package/docs/api/interfaces/AIChatContentPartText.md +25 -0
  235. package/docs/api/interfaces/AIChatMessageParamBase.md +68 -0
  236. package/docs/api/interfaces/AIChatMessageToolCall.md +41 -0
  237. package/docs/{interfaces → api/interfaces}/AIChatSystemMessageParam.md +9 -9
  238. package/docs/api/interfaces/AIChatToolChoiceFuncObject.md +37 -0
  239. package/docs/api/interfaces/AIChatToolChoiceObject.md +25 -0
  240. package/docs/api/interfaces/AIChatToolFunc.md +41 -0
  241. package/docs/api/interfaces/AIChatToolFuncParam.md +37 -0
  242. package/docs/api/interfaces/AIChatToolMessageParam.md +113 -0
  243. package/docs/api/interfaces/AIChatToolParam.md +25 -0
  244. package/docs/api/interfaces/AIChatToolTypeObject.md +17 -0
  245. package/docs/api/interfaces/AIChatUserMessageParam.md +137 -0
  246. package/docs/api/interfaces/AIChoiceConfig.md +65 -0
  247. package/docs/api/interfaces/AIResult.md +65 -0
  248. package/docs/{interfaces → api/interfaces}/AIStreamParser.md +2 -2
  249. package/docs/api/interfaces/AIStreamParserOptions.md +21 -0
  250. package/docs/api/interfaces/BaseFunc.md +299 -0
  251. package/docs/api/interfaces/BaseFuncItem.md +221 -0
  252. package/docs/api/interfaces/BinarySemaphoreAcquireOptions.md +25 -0
  253. package/docs/api/interfaces/BinarySemaphoreOptions.md +57 -0
  254. package/docs/api/interfaces/BinarySemaphoreReleaseOptions.md +25 -0
  255. package/docs/api/interfaces/BinarySemaphoreReleaserFunc.md +37 -0
  256. package/docs/api/interfaces/CancelableAbilityOptions.md +113 -0
  257. package/docs/api/interfaces/ClientFuncItem.md +326 -0
  258. package/docs/api/interfaces/EventClientFuncParams.md +51 -0
  259. package/docs/api/interfaces/EventServerFuncParams.md +73 -0
  260. package/docs/{interfaces → api/interfaces}/FewShotPromptTemplateOptions.md +24 -12
  261. package/docs/api/interfaces/FuncItem.md +281 -0
  262. package/docs/api/interfaces/FuncParam.md +51 -0
  263. package/docs/api/interfaces/FuncParams.md +28 -0
  264. package/docs/api/interfaces/Funcs.md +15 -0
  265. package/docs/api/interfaces/HashAlgoParams.md +33 -0
  266. package/docs/api/interfaces/IClientToolTransport.md +155 -0
  267. package/docs/api/interfaces/IFileMetaInfo.md +65 -0
  268. package/docs/api/interfaces/IPubSubClientTransport.md +70 -0
  269. package/docs/api/interfaces/IPubSubServerTransport.md +241 -0
  270. package/docs/api/interfaces/IReadTextFileChunksOptions.md +143 -0
  271. package/docs/api/interfaces/IServerToolTransport.md +159 -0
  272. package/docs/api/interfaces/IToolTransport.md +73 -0
  273. package/docs/api/interfaces/ITruncateToTokenLimitOptions.md +99 -0
  274. package/docs/api/interfaces/JsonFilter.md +13 -0
  275. package/docs/api/interfaces/ParseObjectArgumentOptions.md +89 -0
  276. package/docs/api/interfaces/ProbabilityItem.md +41 -0
  277. package/docs/api/interfaces/PromptExampleSelectorOptions.md +34 -0
  278. package/docs/{interfaces → api/interfaces}/PromptTemplateOptions.md +15 -7
  279. package/docs/api/interfaces/PubSubClient.md +27 -0
  280. package/docs/api/interfaces/PubSubClientStream.md +196 -0
  281. package/docs/api/interfaces/PubSubServerSession.md +103 -0
  282. package/docs/api/interfaces/RemoteFuncItem.md +316 -0
  283. package/docs/api/interfaces/ReplacePlacehoderOptions.md +41 -0
  284. package/docs/api/interfaces/ResClientFuncParams.md +37 -0
  285. package/docs/api/interfaces/ResServerFuncParams.md +77 -0
  286. package/docs/api/interfaces/RpcMethodsClientFuncParams.md +25 -0
  287. package/docs/api/interfaces/RpcMethodsServerFuncParams.md +61 -0
  288. package/docs/api/interfaces/SanitizeFilenameOptions.md +25 -0
  289. package/docs/api/interfaces/SectionStringOptions.md +25 -0
  290. package/docs/api/interfaces/SemaphoreOptions.md +89 -0
  291. package/docs/api/interfaces/SemaphoreTaskItem.md +73 -0
  292. package/docs/api/interfaces/ServerFuncItem.md +339 -0
  293. package/docs/api/interfaces/ServerFuncParams.md +42 -0
  294. package/docs/api/interfaces/SplitSentenceOptions.md +41 -0
  295. package/docs/{interfaces → api/interfaces}/StreamCallbacksAndOptions.md +5 -5
  296. package/docs/{interfaces → api/interfaces}/TaskAbortControllers.md +1 -1
  297. package/docs/{interfaces → api/interfaces}/TaskPromise.md +6 -6
  298. package/docs/api/interfaces/ToolFuncPackage.md +57 -0
  299. package/docs/{namespaces → api/namespaces}/EventStates/variables/ABORT.md +1 -1
  300. package/docs/{namespaces → api/namespaces}/EventStates/variables/CONTINUE.md +1 -1
  301. package/docs/{namespaces → api/namespaces}/EventStates/variables/DONE.md +1 -1
  302. package/docs/{namespaces → api/namespaces}/EventStates/variables/STOPPED.md +1 -1
  303. package/docs/{namespaces → api/namespaces}/uuidv5/variables/DNS.md +1 -1
  304. package/docs/{namespaces → api/namespaces}/uuidv5/variables/URL.md +1 -1
  305. package/docs/{type-aliases → api/type-aliases}/AIChatContentPart.md +1 -1
  306. package/docs/{type-aliases → api/type-aliases}/AIChatMessageParam.md +1 -1
  307. package/docs/{type-aliases → api/type-aliases}/AIChatRole.md +1 -1
  308. package/docs/{type-aliases → api/type-aliases}/AIChatToolChoiceParam.md +1 -1
  309. package/docs/{type-aliases → api/type-aliases}/AIMessageType.md +1 -1
  310. package/docs/api/type-aliases/AIModelNameRule.md +14 -0
  311. package/docs/api/type-aliases/AIModelNameRuleFn.md +28 -0
  312. package/docs/api/type-aliases/AIModelNameRules.md +13 -0
  313. package/docs/{type-aliases → api/type-aliases}/AITextGenerationFinishReason.md +1 -1
  314. package/docs/api/type-aliases/ActionName.md +13 -0
  315. package/docs/api/type-aliases/ArrayMergeWay.md +11 -0
  316. package/docs/api/type-aliases/AsyncTaskId.md +11 -0
  317. package/docs/{type-aliases → api/type-aliases}/BeforeShutdownListener.md +1 -1
  318. package/docs/{type-aliases → api/type-aliases}/EventErrorListenerFn.md +1 -1
  319. package/docs/{type-aliases → api/type-aliases}/EventListenerFn.md +1 -1
  320. package/docs/api/type-aliases/FuncParamType.md +13 -0
  321. package/docs/{type-aliases → api/type-aliases}/PromptExamples.md +1 -1
  322. package/docs/api/type-aliases/PubSubClientId.md +14 -0
  323. package/docs/api/type-aliases/PubSubCtx.md +37 -0
  324. package/docs/api/type-aliases/RpcMethodHandler.md +34 -0
  325. package/docs/{type-aliases → api/type-aliases}/SemaphoreIsReadyFuncType.md +1 -1
  326. package/docs/api/type-aliases/TFunc.md +33 -0
  327. package/docs/{variables → api/variables}/AIChatRoles.md +1 -1
  328. package/docs/{variables → api/variables}/AIMessageTypes.md +1 -1
  329. package/docs/{variables → api/variables}/AITextGenerationFinishReasons.md +1 -1
  330. package/docs/{variables → api/variables}/AbortErrorCode.md +1 -1
  331. package/docs/api/variables/ActionNames.md +13 -0
  332. package/docs/{variables → api/variables}/AlreadyExistsErrorCode.md +1 -1
  333. package/docs/api/variables/ArrayMergeWay.md +25 -0
  334. package/docs/api/variables/ArrayMergeWaySymbol.md +11 -0
  335. package/docs/api/variables/ClientToolFuncSchema.md +83 -0
  336. package/docs/{variables → api/variables}/DEFAULT_CONFIG_NAME.md +1 -1
  337. package/docs/{variables → api/variables}/DefaultAsyncSemaphoreCapacity.md +1 -1
  338. package/docs/api/variables/EventBusName.md +11 -0
  339. package/docs/api/variables/EventName.md +11 -0
  340. package/docs/{variables → api/variables}/FilenameReservedRegex.md +1 -1
  341. package/docs/api/variables/FuncMetaSymbol.md +15 -0
  342. package/docs/{variables → api/variables}/InternalErrorCode.md +1 -1
  343. package/docs/{variables → api/variables}/LLM_TOKENIZER_NAMES.md +1 -1
  344. package/docs/{variables → api/variables}/LLM_TOKENIZER_NAMES_MAP.md +1 -1
  345. package/docs/{variables → api/variables}/NotFoundErrorCode.md +1 -1
  346. package/docs/{variables → api/variables}/NotImplementedErrorCode.md +1 -1
  347. package/docs/api/variables/PASSING_SCORE.md +13 -0
  348. package/docs/api/variables/RStreamErrCode.md +11 -0
  349. package/docs/api/variables/RemoteToolFuncSchema.md +84 -0
  350. package/docs/api/variables/ResponseRStreamErrCode.md +11 -0
  351. package/docs/api/variables/RpcMethodsClientToolSchema.md +49 -0
  352. package/docs/api/variables/RpcMethodsServerToolSchema.md +21 -0
  353. package/docs/{variables → api/variables}/SHUTDOWN_SIGNALS.md +1 -1
  354. package/docs/{variables → api/variables}/SSEChannelAlreadyClosedErrCode.md +1 -1
  355. package/docs/api/variables/SecondaryCache.md +11 -0
  356. package/docs/api/variables/ServerToolFuncSchema.md +83 -0
  357. package/docs/api/variables/StrangeHumanName.md +11 -0
  358. package/docs/api/variables/ToolAsyncCancelableBit.md +11 -0
  359. package/docs/api/variables/ToolAsyncMultiTaskBit.md +11 -0
  360. package/docs/api/variables/ToolAsyncPriorityBit.md +11 -0
  361. package/docs/{variables → api/variables}/ToolFuncSchema.md +14 -1
  362. package/docs/{variables → api/variables}/WindowsReservedNameRegex.md +1 -1
  363. package/docs/api/variables/base32768.md +11 -0
  364. package/docs/{variables → api/variables}/defaultTemplateFormat.md +1 -1
  365. package/docs/api/variables/event.md +11 -0
  366. package/docs/api/variables/eventClient.md +11 -0
  367. package/docs/api/variables/eventServer.md +11 -0
  368. package/docs/api/variables/lrucache.md +11 -0
  369. package/docs/{variables → api/variables}/mimeType.md +1 -1
  370. package/docs/{variables → api/variables}/uuidNIL.md +1 -1
  371. package/docs/pubsub.md +326 -0
  372. package/docs/server_client_tools.md +88 -0
  373. package/docs/toolFunc.md +183 -0
  374. package/docs/transport.md +137 -0
  375. package/package.json +37 -39
  376. package/dist/chunk-OYDBRUZJ.mjs +0 -1
  377. package/dist/index-BkwhCK1q.d.mts +0 -899
  378. package/dist/index-BkwhCK1q.d.ts +0 -899
  379. package/docs/README.md +0 -250
  380. package/docs/classes/AlreadyExistsError.md +0 -346
  381. package/docs/classes/BaseError.md +0 -359
  382. package/docs/classes/NotFoundError.md +0 -346
  383. package/docs/classes/NotImplementationError.md +0 -346
  384. package/docs/classes/ReadableStreamError.md +0 -366
  385. package/docs/classes/ResClientTools.md +0 -2451
  386. package/docs/classes/ResServerTools.md +0 -2427
  387. package/docs/classes/SSEChannel.md +0 -270
  388. package/docs/classes/ToolFunc.md +0 -2201
  389. package/docs/classes/YamlTypeBaseObject.md +0 -31
  390. package/docs/enumerations/AsyncFeatureBits.md +0 -33
  391. package/docs/enumerations/AsyncFeatures.md +0 -33
  392. package/docs/enumerations/ErrorCode.md +0 -177
  393. package/docs/enumerations/HashAlgorithm.md +0 -97
  394. package/docs/functions/canonicalize.md +0 -21
  395. package/docs/functions/initShutdown.md +0 -15
  396. package/docs/functions/wait.md +0 -21
  397. package/docs/interfaces/AIChatAssistantMessageParam.md +0 -129
  398. package/docs/interfaces/AIChatContentPartImage.md +0 -29
  399. package/docs/interfaces/AIChatContentPartText.md +0 -25
  400. package/docs/interfaces/AIChatMessageParamBase.md +0 -68
  401. package/docs/interfaces/AIChatMessageToolCall.md +0 -41
  402. package/docs/interfaces/AIChatToolChoiceFuncObject.md +0 -37
  403. package/docs/interfaces/AIChatToolChoiceObject.md +0 -25
  404. package/docs/interfaces/AIChatToolFunc.md +0 -41
  405. package/docs/interfaces/AIChatToolFuncParam.md +0 -37
  406. package/docs/interfaces/AIChatToolMessageParam.md +0 -113
  407. package/docs/interfaces/AIChatToolParam.md +0 -25
  408. package/docs/interfaces/AIChatToolTypeObject.md +0 -17
  409. package/docs/interfaces/AIChatUserMessageParam.md +0 -137
  410. package/docs/interfaces/AIChoiceConfig.md +0 -65
  411. package/docs/interfaces/AIResult.md +0 -65
  412. package/docs/interfaces/AIStreamParserOptions.md +0 -21
  413. package/docs/interfaces/BaseFunc.md +0 -157
  414. package/docs/interfaces/BaseFuncItem.md +0 -101
  415. package/docs/interfaces/BinarySemaphoreAcquireOptions.md +0 -25
  416. package/docs/interfaces/BinarySemaphoreOptions.md +0 -57
  417. package/docs/interfaces/BinarySemaphoreReleaseOptions.md +0 -25
  418. package/docs/interfaces/BinarySemaphoreReleaserFunc.md +0 -37
  419. package/docs/interfaces/CancelableAbilityOptions.md +0 -113
  420. package/docs/interfaces/ClientFuncItem.md +0 -175
  421. package/docs/interfaces/EventClientFuncParams.md +0 -51
  422. package/docs/interfaces/EventServerFuncParams.md +0 -67
  423. package/docs/interfaces/FuncItem.md +0 -143
  424. package/docs/interfaces/FuncParam.md +0 -61
  425. package/docs/interfaces/FuncParams.md +0 -13
  426. package/docs/interfaces/Funcs.md +0 -13
  427. package/docs/interfaces/HashAlgoParams.md +0 -33
  428. package/docs/interfaces/IFileMetaInfo.md +0 -65
  429. package/docs/interfaces/IReadTextFileChunksOptions.md +0 -143
  430. package/docs/interfaces/ITruncateToTokenLimitOptions.md +0 -99
  431. package/docs/interfaces/JsonFilter.md +0 -13
  432. package/docs/interfaces/ParseObjectArgumentOptions.md +0 -89
  433. package/docs/interfaces/PromptExampleSelectorOptions.md +0 -34
  434. package/docs/interfaces/RemoteFuncItem.md +0 -164
  435. package/docs/interfaces/ReplacePlacehoderOptions.md +0 -41
  436. package/docs/interfaces/ResClientFuncParams.md +0 -37
  437. package/docs/interfaces/ResServerFuncParams.md +0 -69
  438. package/docs/interfaces/SanitizeFilenameOptions.md +0 -25
  439. package/docs/interfaces/SectionStringOptions.md +0 -25
  440. package/docs/interfaces/SemaphoreOptions.md +0 -89
  441. package/docs/interfaces/SemaphoreTaskItem.md +0 -73
  442. package/docs/interfaces/ServerFuncItem.md +0 -183
  443. package/docs/interfaces/ServerFuncParams.md +0 -35
  444. package/docs/interfaces/SplitSentenceOptions.md +0 -41
  445. package/docs/interfaces/ToolFuncPackage.md +0 -47
  446. package/docs/type-aliases/AIModelNameRule.md +0 -11
  447. package/docs/type-aliases/AIModelNameRuleFn.md +0 -21
  448. package/docs/type-aliases/AIModelNameRules.md +0 -11
  449. package/docs/type-aliases/ActionName.md +0 -11
  450. package/docs/type-aliases/AsyncTaskId.md +0 -11
  451. package/docs/type-aliases/FuncParamType.md +0 -11
  452. package/docs/type-aliases/TFunc.md +0 -25
  453. package/docs/variables/ActionNames.md +0 -11
  454. package/docs/variables/ClientToolFuncSchema.md +0 -101
  455. package/docs/variables/EventBusName.md +0 -11
  456. package/docs/variables/EventName.md +0 -11
  457. package/docs/variables/PASSING_SCORE.md +0 -11
  458. package/docs/variables/RStreamErrCode.md +0 -11
  459. package/docs/variables/RemoteToolFuncSchema.md +0 -101
  460. package/docs/variables/ResponseRStreamErrCode.md +0 -11
  461. package/docs/variables/SecondaryCache.md +0 -11
  462. package/docs/variables/ServerToolFuncSchema.md +0 -101
  463. package/docs/variables/ToolAsyncCancelableBit.md +0 -11
  464. package/docs/variables/ToolAsyncMultiTaskBit.md +0 -11
  465. package/docs/variables/ToolAsyncPriorityBit.md +0 -11
  466. package/docs/variables/base32768.md +0 -11
  467. package/docs/variables/event.md +0 -11
  468. package/docs/variables/eventClient.md +0 -11
  469. package/docs/variables/eventServer.md +0 -11
  470. package/docs/variables/lrucache.md +0 -11
  471. /package/docs/{_media → api/_media}/LICENSE-MIT +0 -0
  472. /package/docs/{namespaces → api/namespaces}/EventStates/README.md +0 -0
  473. /package/docs/{namespaces → api/namespaces}/uuidv5/README.md +0 -0
@@ -0,0 +1,3275 @@
1
+ [**@isdk/ai-tool**](../README.md)
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / RpcMethodsClientTool
6
+
7
+ # Class: RpcMethodsClientTool
8
+
9
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:9](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/rpc-methods-client-tool.ts#L9)
10
+
11
+ Represents a client-side proxy for a remote tool function.
12
+
13
+ A `ClientTools` instance is a `ToolFunc` that, when executed, does not run
14
+ local code. Instead, it serializes the parameters and uses an injected
15
+ transport layer (`IClientToolTransport`) to make a remote procedure call
16
+ to its corresponding `ServerTools` counterpart.
17
+
18
+ These tools are typically created dynamically by loading definitions from a server.
19
+
20
+ ## Extends
21
+
22
+ - [`ClientTools`](ClientTools.md)
23
+
24
+ ## Extended by
25
+
26
+ - [`ResClientTools`](ResClientTools.md)
27
+
28
+ ## Indexable
29
+
30
+ \[`name`: `string`\]: `any`
31
+
32
+ ## Constructors
33
+
34
+ ### new RpcMethodsClientTool()
35
+
36
+ > **new RpcMethodsClientTool**(`name`, `options`?): [`RpcMethodsClientTool`](RpcMethodsClientTool.md)
37
+
38
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:571](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L571)
39
+
40
+ The initial value of Object.prototype.constructor is the standard built-in Object constructor.
41
+
42
+ #### Parameters
43
+
44
+ ##### name
45
+
46
+ Can be a function name, a function implementation, or a configuration object.
47
+
48
+ `string` | `Function` | [`FuncItem`](../interfaces/FuncItem.md)
49
+
50
+ ##### options?
51
+
52
+ `any` = `{}`
53
+
54
+ Configuration options if not provided in the first argument.
55
+
56
+ #### Returns
57
+
58
+ [`RpcMethodsClientTool`](RpcMethodsClientTool.md)
59
+
60
+ #### Inherited from
61
+
62
+ [`ClientTools`](ClientTools.md).[`constructor`](ClientTools.md#constructors)
63
+
64
+ ## Properties
65
+
66
+ ### $attributes
67
+
68
+ > **$attributes**: `Properties`
69
+
70
+ Defined in: [property-manager.js/src/advance.d.ts:5](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/advance.d.ts#L5)
71
+
72
+ #### Inherited from
73
+
74
+ [`ClientTools`](ClientTools.md).[`$attributes`](ClientTools.md#$attributes)
75
+
76
+ ***
77
+
78
+ ### action?
79
+
80
+ > `optional` **action**: `"get"` \| `"post"` \| `"put"` \| `"delete"` \| `"patch"` \| `"list"` \| `"res"`
81
+
82
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/consts.ts:95](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/consts.ts#L95)
83
+
84
+ The action to be used for the remote call. This typically represents an RPC method name.
85
+ Only for RESTful HTTP transports, it might be mapped to a standard HTTP method (e.g., GET, POST)
86
+
87
+ #### Inherited from
88
+
89
+ [`ClientTools`](ClientTools.md).[`action`](ClientTools.md#action)
90
+
91
+ ***
92
+
93
+ ### alias?
94
+
95
+ > `optional` **alias**: `string` \| `string`[]
96
+
97
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:130](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L130)
98
+
99
+ Optional aliases for the function name.
100
+
101
+ #### Inherited from
102
+
103
+ [`ClientTools`](ClientTools.md).[`alias`](ClientTools.md#alias)
104
+
105
+ ***
106
+
107
+ ### asyncFeatures?
108
+
109
+ > `optional` **asyncFeatures**: `number`
110
+
111
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:144](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L144)
112
+
113
+ A bitmask representing asynchronous features supported by the function, built from `AsyncFeatureBits`.
114
+ This allows the system to understand if a function supports capabilities like cancellation or multi-tasking.
115
+
116
+ #### See
117
+
118
+ AsyncFeatureBits from `@src/utils/cancelable-ability.ts`
119
+
120
+ #### Example
121
+
122
+ ```ts
123
+ import { AsyncFeatures } from './utils';
124
+ const func = new ToolFunc({
125
+ name: 'cancellableTask',
126
+ asyncFeatures: AsyncFeatures.Cancelable | AsyncFeatures.MultiTask,
127
+ // ...
128
+ });
129
+ ```
130
+
131
+ #### Inherited from
132
+
133
+ [`ClientTools`](ClientTools.md).[`asyncFeatures`](ClientTools.md#asyncfeatures)
134
+
135
+ ***
136
+
137
+ ### constructor
138
+
139
+ > **constructor**: `Function`
140
+
141
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:125
142
+
143
+ The initial value of Object.prototype.constructor is the standard built-in Object constructor.
144
+
145
+ #### Inherited from
146
+
147
+ `ClientTools.constructor`
148
+
149
+ ***
150
+
151
+ ### defaultOptions
152
+
153
+ > **defaultOptions**: `object`
154
+
155
+ Defined in: [property-manager.js/src/abstract.d.ts:74](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L74)
156
+
157
+ The default options for export and assign
158
+
159
+ #### assign?
160
+
161
+ > `optional` **assign**: `IMergeOptions`
162
+
163
+ #### export?
164
+
165
+ > `optional` **export**: `IMergeOptions`
166
+
167
+ #### Inherited from
168
+
169
+ [`ClientTools`](ClientTools.md).[`defaultOptions`](ClientTools.md#defaultoptions)
170
+
171
+ ***
172
+
173
+ ### depends?
174
+
175
+ > `optional` **depends**: `object`
176
+
177
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:167](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L167)
178
+
179
+ A map of dependencies this function has on other tool functions.
180
+ Declaring dependencies ensures that they are automatically registered when this function is registered.
181
+ This is crucial for building modular functions that rely on each other without needing to manage registration order manually.
182
+
183
+ #### Index Signature
184
+
185
+ \[`name`: `string`\]: [`ToolFunc`](ToolFunc.md)
186
+
187
+ #### Example
188
+
189
+ ```ts
190
+ const helperFunc = new ToolFunc({ name: 'helper', func: () => 'world' });
191
+ const mainFunc = new ToolFunc({
192
+ name: 'main',
193
+ depends: {
194
+ helper: helperFunc,
195
+ },
196
+ func() {
197
+ // We can now safely run the dependency
198
+ const result = this.runSync('helper');
199
+ return `Hello, ${result}`;
200
+ }
201
+ });
202
+ // When mainFunc is registered, helperFunc will be registered automatically.
203
+ mainFunc.register();
204
+ ```
205
+
206
+ #### Inherited from
207
+
208
+ [`ClientTools`](ClientTools.md).[`depends`](ClientTools.md#depends)
209
+
210
+ ***
211
+
212
+ ### description?
213
+
214
+ > `optional` **description**: `string`
215
+
216
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:172](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L172)
217
+
218
+ A detailed description of what the function does.
219
+
220
+ #### Inherited from
221
+
222
+ [`ClientTools`](ClientTools.md).[`description`](ClientTools.md#description)
223
+
224
+ ***
225
+
226
+ ### ~~fetchOptions?~~
227
+
228
+ > `optional` **fetchOptions**: `any`
229
+
230
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/consts.ts:101](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/utils/consts.ts#L101)
231
+
232
+ Options to be passed to the underlying `fetch` call in an HTTP transport.
233
+
234
+ #### Deprecated
235
+
236
+ Use `transport` instead.
237
+
238
+ #### Inherited from
239
+
240
+ [`ClientTools`](ClientTools.md).[`fetchOptions`](ClientTools.md#fetchoptions)
241
+
242
+ ***
243
+
244
+ ### isApi?
245
+
246
+ > `optional` **isApi**: `boolean`
247
+
248
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:119](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L119)
249
+
250
+ If true, indicates that this function should be treated as a server-side API.
251
+
252
+ #### Inherited from
253
+
254
+ [`ClientTools`](ClientTools.md).[`isApi`](ClientTools.md#isapi)
255
+
256
+ ***
257
+
258
+ ### name?
259
+
260
+ > `optional` **name**: `string`
261
+
262
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:76](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L76)
263
+
264
+ The unique name of the function.
265
+
266
+ #### Inherited from
267
+
268
+ [`ClientTools`](ClientTools.md).[`name`](ClientTools.md#name-3)
269
+
270
+ ***
271
+
272
+ ### nonExported1stChar
273
+
274
+ > **nonExported1stChar**: `string`
275
+
276
+ Defined in: [property-manager.js/src/abstract.d.ts:78](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L78)
277
+
278
+ the property with the default prefix '$' will not be exported.
279
+
280
+ #### Inherited from
281
+
282
+ [`ClientTools`](ClientTools.md).[`nonExported1stChar`](ClientTools.md#nonexported1stchar)
283
+
284
+ ***
285
+
286
+ ### params?
287
+
288
+ > `optional` **params**: [`FuncParams`](../interfaces/FuncParams.md) \| [`FuncParam`](../interfaces/FuncParam.md)[]
289
+
290
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:81](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L81)
291
+
292
+ Parameter definitions, which can be an object mapping names to definitions or an array for positional parameters.
293
+
294
+ #### Inherited from
295
+
296
+ [`ClientTools`](ClientTools.md).[`params`](ClientTools.md#params)
297
+
298
+ ***
299
+
300
+ ### result?
301
+
302
+ > `optional` **result**: `string` \| `Record`\<`string`, `any`\>
303
+
304
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:86](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L86)
305
+
306
+ The expected return type of the function, described as a string or a JSON schema object.
307
+
308
+ #### Inherited from
309
+
310
+ [`ClientTools`](ClientTools.md).[`result`](ClientTools.md#result)
311
+
312
+ ***
313
+
314
+ ### scope?
315
+
316
+ > `optional` **scope**: `any`
317
+
318
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:91](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L91)
319
+
320
+ The execution scope or context (`this`) for the function.
321
+
322
+ #### Inherited from
323
+
324
+ [`ClientTools`](ClientTools.md).[`scope`](ClientTools.md#scope)
325
+
326
+ ***
327
+
328
+ ### setup()?
329
+
330
+ > `optional` **setup**: (`this`, `options`?) => `void`
331
+
332
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:114](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L114)
333
+
334
+ A lifecycle hook called once during the `ToolFunc` instance's initialization.
335
+ It allows for initial setup, state configuration, or property modification on the instance
336
+ before it is used or registered. The `this` context is the `ToolFunc` instance itself.
337
+
338
+ #### Parameters
339
+
340
+ ##### this
341
+
342
+ [`ToolFunc`](ToolFunc.md)
343
+
344
+ ##### options?
345
+
346
+ [`FuncItem`](../interfaces/FuncItem.md)
347
+
348
+ The configuration options for the function.
349
+
350
+ #### Returns
351
+
352
+ `void`
353
+
354
+ #### Example
355
+
356
+ ```ts
357
+ const myFunc = new ToolFunc({
358
+ name: 'myFunc',
359
+ customState: 'initial',
360
+ setup() {
361
+ // `this` is the myFunc instance
362
+ this.customState = 'configured';
363
+ }
364
+ });
365
+ console.log(myFunc.customState); // Outputs: 'configured'
366
+ ```
367
+
368
+ #### Inherited from
369
+
370
+ [`ClientTools`](ClientTools.md).[`setup`](ClientTools.md#setup)
371
+
372
+ ***
373
+
374
+ ### stream?
375
+
376
+ > `optional` **stream**: `boolean`
377
+
378
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:125](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L125)
379
+
380
+ If true, indicates that the function has the *capability* to stream its output.
381
+ Whether a specific call is streamed is determined by a `stream` property in the runtime parameters.
382
+
383
+ #### Inherited from
384
+
385
+ [`ClientTools`](ClientTools.md).[`stream`](ClientTools.md#stream)
386
+
387
+ ***
388
+
389
+ ### tags?
390
+
391
+ > `optional` **tags**: `string` \| `string`[]
392
+
393
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:96](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L96)
394
+
395
+ Tags for grouping or filtering functions.
396
+
397
+ #### Inherited from
398
+
399
+ [`ClientTools`](ClientTools.md).[`tags`](ClientTools.md#tags)
400
+
401
+ ***
402
+
403
+ ### title?
404
+
405
+ > `optional` **title**: `string`
406
+
407
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:177](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L177)
408
+
409
+ A concise, human-readable title for the function, often used in UI or by AI.
410
+
411
+ #### Inherited from
412
+
413
+ [`ClientTools`](ClientTools.md).[`title`](ClientTools.md#title)
414
+
415
+ ***
416
+
417
+ ### action?
418
+
419
+ > `static` `optional` **action**: `string`
420
+
421
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:32](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/client-tools.ts#L32)
422
+
423
+ #### Inherited from
424
+
425
+ [`ClientTools`](ClientTools.md).[`action`](ClientTools.md#action-1)
426
+
427
+ ***
428
+
429
+ ### aliases
430
+
431
+ > `static` **aliases**: `object` = `{}`
432
+
433
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:305](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L305)
434
+
435
+ A static map of aliases to their corresponding function names.
436
+
437
+ #### Index Signature
438
+
439
+ \[`name`: `string`\]: `string`
440
+
441
+ #### Inherited from
442
+
443
+ [`ClientTools`](ClientTools.md).[`aliases`](ClientTools.md#aliases)
444
+
445
+ ***
446
+
447
+ ### dataPath
448
+
449
+ > `static` **dataPath**: `string`
450
+
451
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:312](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L312)
452
+
453
+ A conventional property to designate a file path for saving the registered `ToolFunc` data.
454
+ Note: The `ToolFunc` class itself does not implement persistence logic. It is up to the
455
+ developer to use this path to save and load the `ToolFunc.items` registry if needed.
456
+
457
+ #### Inherited from
458
+
459
+ [`ClientTools`](ClientTools.md).[`dataPath`](ClientTools.md#datapath)
460
+
461
+ ***
462
+
463
+ ### items
464
+
465
+ > `static` **items**: [`Funcs`](../interfaces/Funcs.md) = `{}`
466
+
467
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:300](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L300)
468
+
469
+ A static registry of all `ToolFunc` instances, indexed by name.
470
+
471
+ #### Inherited from
472
+
473
+ [`ClientTools`](ClientTools.md).[`items`](ClientTools.md#items)
474
+
475
+ ## Accessors
476
+
477
+ ### ~~apiRoot~~
478
+
479
+ #### Get Signature
480
+
481
+ > **get** **apiRoot**(): `string`
482
+
483
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:109](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/client-tools.ts#L109)
484
+
485
+ ##### Deprecated
486
+
487
+ This property is now mainly for informational purposes.
488
+ The actual endpoint is managed by the transport.
489
+
490
+ ##### Returns
491
+
492
+ `string`
493
+
494
+ The root endpoint for the remote service.
495
+
496
+ #### Deprecated
497
+
498
+ Use `transport` instead.
499
+
500
+ #### Inherited from
501
+
502
+ [`ClientTools`](ClientTools.md).[`apiRoot`](ClientTools.md#apiroot)
503
+
504
+ ***
505
+
506
+ ### apiRoot
507
+
508
+ #### Get Signature
509
+
510
+ > **get** `static` **apiRoot**(): `string`
511
+
512
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:40](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/client-tools.ts#L40)
513
+
514
+ ##### Deprecated
515
+
516
+ This property is now mainly for informational purposes.
517
+ The actual endpoint is managed by the transport.
518
+
519
+ ##### Returns
520
+
521
+ `string`
522
+
523
+ #### Inherited from
524
+
525
+ [`ClientTools`](ClientTools.md).[`apiRoot`](ClientTools.md#apiroot-2)
526
+
527
+ ***
528
+
529
+ ### transport
530
+
531
+ #### Get Signature
532
+
533
+ > **get** `static` **transport**(): [`IClientToolTransport`](../interfaces/IClientToolTransport.md)
534
+
535
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:60](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/client-tools.ts#L60)
536
+
537
+ ##### Returns
538
+
539
+ [`IClientToolTransport`](../interfaces/IClientToolTransport.md)
540
+
541
+ #### Inherited from
542
+
543
+ [`ClientTools`](ClientTools.md).[`transport`](ClientTools.md#transport)
544
+
545
+ ## Methods
546
+
547
+ ### \_func()
548
+
549
+ > **\_func**(`action`, `options`): `Promise`\<`any`\>
550
+
551
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:19](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/rpc-methods-client-tool.ts#L19)
552
+
553
+ #### Parameters
554
+
555
+ ##### action
556
+
557
+ `"get"` | `"post"` | `"put"` | `"delete"` | `"patch"` | `"list"` | `"res"`
558
+
559
+ ##### options
560
+
561
+ [`RpcMethodsClientFuncParams`](../interfaces/RpcMethodsClientFuncParams.md)
562
+
563
+ #### Returns
564
+
565
+ `Promise`\<`any`\>
566
+
567
+ ***
568
+
569
+ ### arr2ObjParams()
570
+
571
+ > **arr2ObjParams**(`params`): `any`[]
572
+
573
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:629](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L629)
574
+
575
+ Converts an array of positional arguments into a named parameters object.
576
+ This is used internally to support functions defined with named parameters.
577
+
578
+ #### Parameters
579
+
580
+ ##### params
581
+
582
+ `any`[]
583
+
584
+ An array of positional arguments.
585
+
586
+ #### Returns
587
+
588
+ `any`[]
589
+
590
+ An array containing a single parameters object.
591
+
592
+ #### Inherited from
593
+
594
+ [`ClientTools`](ClientTools.md).[`arr2ObjParams`](ClientTools.md#arr2objparams)
595
+
596
+ ***
597
+
598
+ ### assign()
599
+
600
+ > **assign**(`src`, `options`?): `this`
601
+
602
+ Defined in: [property-manager.js/src/abstract.d.ts:106](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L106)
603
+
604
+ Assign the values from the src object.
605
+
606
+ #### Parameters
607
+
608
+ ##### src
609
+
610
+ `any`
611
+
612
+ the source object
613
+
614
+ ##### options?
615
+
616
+ `IMergeOptions`
617
+
618
+ #### Returns
619
+
620
+ `this`
621
+
622
+ this object
623
+
624
+ #### Inherited from
625
+
626
+ [`ClientTools`](ClientTools.md).[`assign`](ClientTools.md#assign)
627
+
628
+ ***
629
+
630
+ ### assignMethods()
631
+
632
+ > **assignMethods**(`methods`): `void`
633
+
634
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:32](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/rpc-methods-client-tool.ts#L32)
635
+
636
+ #### Parameters
637
+
638
+ ##### methods
639
+
640
+ `string`[]
641
+
642
+ #### Returns
643
+
644
+ `void`
645
+
646
+ ***
647
+
648
+ ### assignProperty()
649
+
650
+ > **assignProperty**(`src`, `name`, `value`, `attrs`?, `options`?): `void`
651
+
652
+ Defined in: [property-manager.js/src/abstract.d.ts:117](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L117)
653
+
654
+ Assign a property of src to this object.
655
+
656
+ #### Parameters
657
+
658
+ ##### src
659
+
660
+ `any`
661
+
662
+ the src object
663
+
664
+ ##### name
665
+
666
+ `string`
667
+
668
+ the property name to assign
669
+
670
+ ##### value
671
+
672
+ `any`
673
+
674
+ the property value to assign
675
+
676
+ ##### attrs?
677
+
678
+ `any`
679
+
680
+ the attributes object
681
+
682
+ ##### options?
683
+
684
+ `IMergeOptions`
685
+
686
+ #### Returns
687
+
688
+ `void`
689
+
690
+ #### Inherited from
691
+
692
+ [`ClientTools`](ClientTools.md).[`assignProperty`](ClientTools.md#assignproperty)
693
+
694
+ ***
695
+
696
+ ### assignPropertyTo()
697
+
698
+ > `abstract` **assignPropertyTo**(`dest`, `src`, `name`, `value`, `attrs`?, `options`?): `void`
699
+
700
+ Defined in: [property-manager.js/src/abstract.d.ts:131](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L131)
701
+
702
+ Assign the property value from the src to destination object.
703
+
704
+ #### Parameters
705
+
706
+ ##### dest
707
+
708
+ `any`
709
+
710
+ The destination object
711
+
712
+ ##### src
713
+
714
+ `any`
715
+
716
+ The src object
717
+
718
+ ##### name
719
+
720
+ `string`
721
+
722
+ The property name
723
+
724
+ ##### value
725
+
726
+ `any`
727
+
728
+ The property value
729
+
730
+ ##### attrs?
731
+
732
+ `any`
733
+
734
+ The attributes object of the property
735
+
736
+ ##### options?
737
+
738
+ `IMergeOptions`
739
+
740
+ #### Returns
741
+
742
+ `void`
743
+
744
+ #### Inherited from
745
+
746
+ [`ClientTools`](ClientTools.md).[`assignPropertyTo`](ClientTools.md#assignpropertyto)
747
+
748
+ ***
749
+
750
+ ### assignTo()
751
+
752
+ > **assignTo**(`dest`?, `options`?): `any`
753
+
754
+ Defined in: [property-manager.js/src/abstract.d.ts:191](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L191)
755
+
756
+ Assign this attributes to the dest object
757
+
758
+ #### Parameters
759
+
760
+ ##### dest?
761
+
762
+ `any`
763
+
764
+ the destination object
765
+
766
+ ##### options?
767
+
768
+ `IMergeOptions`
769
+
770
+ #### Returns
771
+
772
+ `any`
773
+
774
+ the dest object
775
+
776
+ #### Inherited from
777
+
778
+ [`ClientTools`](ClientTools.md).[`assignTo`](ClientTools.md#assignto)
779
+
780
+ ***
781
+
782
+ ### clone()
783
+
784
+ > **clone**(`options`?): `any`
785
+
786
+ Defined in: [property-manager.js/src/abstract.d.ts:155](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L155)
787
+
788
+ Create a new object with the same values of attributes.
789
+
790
+ #### Parameters
791
+
792
+ ##### options?
793
+
794
+ `IMergeOptions`
795
+
796
+ #### Returns
797
+
798
+ `any`
799
+
800
+ the new object
801
+
802
+ #### Inherited from
803
+
804
+ [`ClientTools`](ClientTools.md).[`clone`](ClientTools.md#clone)
805
+
806
+ ***
807
+
808
+ ### cloneTo()
809
+
810
+ > **cloneTo**(`dest`, `options`?): `any`
811
+
812
+ Defined in: [property-manager.js/src/abstract.d.ts:148](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L148)
813
+
814
+ Create and assign the values to the destination object.
815
+
816
+ #### Parameters
817
+
818
+ ##### dest
819
+
820
+ `any`
821
+
822
+ the destination object
823
+
824
+ ##### options?
825
+
826
+ `IMergeOptions`
827
+
828
+ #### Returns
829
+
830
+ `any`
831
+
832
+ the new dest object
833
+
834
+ #### Inherited from
835
+
836
+ [`ClientTools`](ClientTools.md).[`cloneTo`](ClientTools.md#cloneto)
837
+
838
+ ***
839
+
840
+ ### defineProperties()
841
+
842
+ > `abstract` **defineProperties**(`aProperties`): `any`
843
+
844
+ Defined in: [property-manager.js/src/abstract.d.ts:89](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L89)
845
+
846
+ Define the attributes of this object.
847
+
848
+ #### Parameters
849
+
850
+ ##### aProperties
851
+
852
+ `SimplePropDescriptors`
853
+
854
+ the defined attributes of the object
855
+
856
+ #### Returns
857
+
858
+ `any`
859
+
860
+ #### Inherited from
861
+
862
+ [`ClientTools`](ClientTools.md).[`defineProperties`](ClientTools.md#defineproperties)
863
+
864
+ ***
865
+
866
+ ### exportTo()
867
+
868
+ > **exportTo**(`dest`, `options`?): `any`
869
+
870
+ Defined in: [property-manager.js/src/abstract.d.ts:173](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L173)
871
+
872
+ Export attributes to the dest json object.
873
+
874
+ #### Parameters
875
+
876
+ ##### dest
877
+
878
+ `any`
879
+
880
+ the destination object
881
+
882
+ ##### options?
883
+
884
+ `IExportOptions`
885
+
886
+ #### Returns
887
+
888
+ `any`
889
+
890
+ the dest object.
891
+
892
+ #### Inherited from
893
+
894
+ [`ClientTools`](ClientTools.md).[`exportTo`](ClientTools.md#exportto)
895
+
896
+ ***
897
+
898
+ ### fetch()
899
+
900
+ > **fetch**(`options`, `action`, `subName`?): `Promise`\<`any`\>
901
+
902
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:10](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/rpc-methods-client-tool.ts#L10)
903
+
904
+ #### Parameters
905
+
906
+ ##### options
907
+
908
+ [`RpcMethodsClientFuncParams`](../interfaces/RpcMethodsClientFuncParams.md)
909
+
910
+ ##### action
911
+
912
+ `"get"` | `"post"` | `"put"` | `"delete"` | `"patch"` | `"list"` | `"res"`
913
+
914
+ ##### subName?
915
+
916
+ `any`
917
+
918
+ #### Returns
919
+
920
+ `Promise`\<`any`\>
921
+
922
+ #### Overrides
923
+
924
+ [`ClientTools`](ClientTools.md).[`fetch`](ClientTools.md#fetch)
925
+
926
+ ***
927
+
928
+ ### func()
929
+
930
+ > **func**(`options`): `Promise`\<`any`\>
931
+
932
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:24](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/rpc-methods-client-tool.ts#L24)
933
+
934
+ The core implementation for a client-side tool. When a `ClientTools` instance
935
+ is "run", this `func` method is executed. It delegates the call to the
936
+ configured transport, which handles the network communication.
937
+
938
+ #### Parameters
939
+
940
+ ##### options
941
+
942
+ [`RpcMethodsClientFuncParams`](../interfaces/RpcMethodsClientFuncParams.md)
943
+
944
+ #### Returns
945
+
946
+ `Promise`\<`any`\>
947
+
948
+ The result from the remote tool.
949
+
950
+ #### Overrides
951
+
952
+ [`ClientTools`](ClientTools.md).[`func`](ClientTools.md#func)
953
+
954
+ ***
955
+
956
+ ### getFunc()
957
+
958
+ > **getFunc**(`name`?): `any`
959
+
960
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:720](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L720)
961
+
962
+ Gets a bound function reference for execution with named parameters.
963
+ If a name is provided, it retrieves a different function from the registry.
964
+ Otherwise, it returns a bound version of this instance's `runSync`.
965
+
966
+ #### Parameters
967
+
968
+ ##### name?
969
+
970
+ `string`
971
+
972
+ Optional name of the function to retrieve.
973
+
974
+ #### Returns
975
+
976
+ `any`
977
+
978
+ A function reference or `undefined` if not found.
979
+
980
+ #### Inherited from
981
+
982
+ [`ClientTools`](ClientTools.md).[`getFunc`](ClientTools.md#getfunc)
983
+
984
+ ***
985
+
986
+ ### getFuncWithPos()
987
+
988
+ > **getFuncWithPos**(`name`?): `any`
989
+
990
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:777](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L777)
991
+
992
+ Gets a bound function reference suitable for positional argument execution.
993
+ If a name is provided, it retrieves a different function from the registry.
994
+ Otherwise, it returns a bound version of this instance's `runWithPosSync`.
995
+
996
+ #### Parameters
997
+
998
+ ##### name?
999
+
1000
+ `string`
1001
+
1002
+ Optional name of the function to retrieve.
1003
+
1004
+ #### Returns
1005
+
1006
+ `any`
1007
+
1008
+ A function reference or `undefined` if not found.
1009
+
1010
+ #### Inherited from
1011
+
1012
+ [`ClientTools`](ClientTools.md).[`getFuncWithPos`](ClientTools.md#getfuncwithpos)
1013
+
1014
+ ***
1015
+
1016
+ ### getProperties()
1017
+
1018
+ > `abstract` **getProperties**(): `PropDescriptors`
1019
+
1020
+ Defined in: [property-manager.js/src/abstract.d.ts:98](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L98)
1021
+
1022
+ Get the defined attributes.
1023
+
1024
+ #### Returns
1025
+
1026
+ `PropDescriptors`
1027
+
1028
+ the descriptors of properties object
1029
+
1030
+ #### Inherited from
1031
+
1032
+ [`ClientTools`](ClientTools.md).[`getProperties`](ClientTools.md#getproperties)
1033
+
1034
+ ***
1035
+
1036
+ ### hasAsyncFeature()
1037
+
1038
+ > **hasAsyncFeature**(`feature`): `boolean`
1039
+
1040
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:787](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L787)
1041
+
1042
+ Checks if the current function instance supports a specific async feature.
1043
+
1044
+ #### Parameters
1045
+
1046
+ ##### feature
1047
+
1048
+ [`AsyncFeatureBits`](../enumerations/AsyncFeatureBits.md)
1049
+
1050
+ The async feature bit to check for.
1051
+
1052
+ #### Returns
1053
+
1054
+ `boolean`
1055
+
1056
+ `true` if the feature is supported, otherwise `false`.
1057
+
1058
+ #### Inherited from
1059
+
1060
+ [`ClientTools`](ClientTools.md).[`hasAsyncFeature`](ClientTools.md#hasasyncfeature)
1061
+
1062
+ ***
1063
+
1064
+ ### hasOwnProperty()
1065
+
1066
+ > **hasOwnProperty**(`v`): `boolean`
1067
+
1068
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:140
1069
+
1070
+ Determines whether an object has a property with the specified name.
1071
+
1072
+ #### Parameters
1073
+
1074
+ ##### v
1075
+
1076
+ `PropertyKey`
1077
+
1078
+ A property name.
1079
+
1080
+ #### Returns
1081
+
1082
+ `boolean`
1083
+
1084
+ #### Inherited from
1085
+
1086
+ [`ClientTools`](ClientTools.md).[`hasOwnProperty`](ClientTools.md#hasownproperty)
1087
+
1088
+ ***
1089
+
1090
+ ### initialize()
1091
+
1092
+ > **initialize**(`src`?): `this`
1093
+
1094
+ Defined in: [property-manager.js/src/abstract.d.ts:139](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L139)
1095
+
1096
+ Initialize object and assign attribute values from src if src exists.
1097
+
1098
+ #### Parameters
1099
+
1100
+ ##### src?
1101
+
1102
+ `any`
1103
+
1104
+ #### Returns
1105
+
1106
+ `this`
1107
+
1108
+ this object.
1109
+
1110
+ #### Inherited from
1111
+
1112
+ [`ClientTools`](ClientTools.md).[`initialize`](ClientTools.md#initialize)
1113
+
1114
+ ***
1115
+
1116
+ ### isPrototypeOf()
1117
+
1118
+ > **isPrototypeOf**(`v`): `boolean`
1119
+
1120
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:146
1121
+
1122
+ Determines whether an object exists in another object's prototype chain.
1123
+
1124
+ #### Parameters
1125
+
1126
+ ##### v
1127
+
1128
+ `Object`
1129
+
1130
+ Another object whose prototype chain is to be checked.
1131
+
1132
+ #### Returns
1133
+
1134
+ `boolean`
1135
+
1136
+ #### Inherited from
1137
+
1138
+ [`ClientTools`](ClientTools.md).[`isPrototypeOf`](ClientTools.md#isprototypeof)
1139
+
1140
+ ***
1141
+
1142
+ ### isSame()
1143
+
1144
+ > **isSame**(`src`, `options`?): `boolean`
1145
+
1146
+ Defined in: [property-manager.js/src/abstract.d.ts:200](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L200)
1147
+
1148
+ Check the src object whether “equals” this object.
1149
+
1150
+ #### Parameters
1151
+
1152
+ ##### src
1153
+
1154
+ `any`
1155
+
1156
+ The source object
1157
+
1158
+ ##### options?
1159
+
1160
+ `IMergeOptions`
1161
+
1162
+ #### Returns
1163
+
1164
+ `boolean`
1165
+
1166
+ #### Inherited from
1167
+
1168
+ [`ClientTools`](ClientTools.md).[`isSame`](ClientTools.md#issame)
1169
+
1170
+ ***
1171
+
1172
+ ### isStream()
1173
+
1174
+ > **isStream**(`params`): `undefined` \| `boolean`
1175
+
1176
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:805](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L805)
1177
+
1178
+ Determines if a function call should produce a stream.
1179
+
1180
+ The logic is as follows:
1181
+ 1. It first checks if the function is generally capable of streaming (`this.stream`).
1182
+ 2. If it is, it then checks if a `stream` parameter is formally declared in the function's `params` definition.
1183
+ 3. If both are true, the method returns the value of the `stream` property from the runtime `params` object.
1184
+ Otherwise, it returns the function's static `stream` capability.
1185
+
1186
+ #### Parameters
1187
+
1188
+ ##### params
1189
+
1190
+ `any`
1191
+
1192
+ The runtime parameters passed to the function call.
1193
+
1194
+ #### Returns
1195
+
1196
+ `undefined` \| `boolean`
1197
+
1198
+ `true` if the call should be streamed, `false` or `undefined` otherwise.
1199
+
1200
+ #### Inherited from
1201
+
1202
+ [`ClientTools`](ClientTools.md).[`isStream`](ClientTools.md#isstream)
1203
+
1204
+ ***
1205
+
1206
+ ### mergeTo()
1207
+
1208
+ > **mergeTo**(`dest`, `options`?): `any`
1209
+
1210
+ Defined in: [property-manager.js/src/abstract.d.ts:164](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L164)
1211
+
1212
+ Merge this attributes to dest object.
1213
+
1214
+ #### Parameters
1215
+
1216
+ ##### dest
1217
+
1218
+ `any`
1219
+
1220
+ The destination object
1221
+
1222
+ ##### options?
1223
+
1224
+ `IMergeOptions`
1225
+
1226
+ #### Returns
1227
+
1228
+ `any`
1229
+
1230
+ the dest object.
1231
+
1232
+ #### Inherited from
1233
+
1234
+ [`ClientTools`](ClientTools.md).[`mergeTo`](ClientTools.md#mergeto)
1235
+
1236
+ ***
1237
+
1238
+ ### obj2ArrParams()
1239
+
1240
+ > **obj2ArrParams**(`params`?): `any`[]
1241
+
1242
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:648](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L648)
1243
+
1244
+ Converts a named parameters object into an array of positional arguments.
1245
+ This is used for functions defined with positional parameters.
1246
+
1247
+ #### Parameters
1248
+
1249
+ ##### params?
1250
+
1251
+ `any`
1252
+
1253
+ A named parameters object.
1254
+
1255
+ #### Returns
1256
+
1257
+ `any`[]
1258
+
1259
+ An array of positional arguments.
1260
+
1261
+ #### Inherited from
1262
+
1263
+ [`ClientTools`](ClientTools.md).[`obj2ArrParams`](ClientTools.md#obj2arrparams)
1264
+
1265
+ ***
1266
+
1267
+ ### propertyIsEnumerable()
1268
+
1269
+ > **propertyIsEnumerable**(`v`): `boolean`
1270
+
1271
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:152
1272
+
1273
+ Determines whether a specified property is enumerable.
1274
+
1275
+ #### Parameters
1276
+
1277
+ ##### v
1278
+
1279
+ `PropertyKey`
1280
+
1281
+ A property name.
1282
+
1283
+ #### Returns
1284
+
1285
+ `boolean`
1286
+
1287
+ #### Inherited from
1288
+
1289
+ [`ClientTools`](ClientTools.md).[`propertyIsEnumerable`](ClientTools.md#propertyisenumerable)
1290
+
1291
+ ***
1292
+
1293
+ ### register()
1294
+
1295
+ > **register**(): `boolean` \| [`ToolFunc`](ToolFunc.md)
1296
+
1297
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:602](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L602)
1298
+
1299
+ Registers the current `ToolFunc` instance into the static registry.
1300
+ Also registers any declared dependencies.
1301
+
1302
+ #### Returns
1303
+
1304
+ `boolean` \| [`ToolFunc`](ToolFunc.md)
1305
+
1306
+ The instance itself upon successful registration, or `false` if it already exists.
1307
+
1308
+ #### Inherited from
1309
+
1310
+ [`ClientTools`](ClientTools.md).[`register`](ClientTools.md#register)
1311
+
1312
+ ***
1313
+
1314
+ ### run()
1315
+
1316
+ > **run**(`params`?): `Promise`\<`any`\>
1317
+
1318
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:686](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L686)
1319
+
1320
+ Executes the function asynchronously with a named parameters object.
1321
+
1322
+ #### Parameters
1323
+
1324
+ ##### params?
1325
+
1326
+ `any`
1327
+
1328
+ The parameters object for the function.
1329
+
1330
+ #### Returns
1331
+
1332
+ `Promise`\<`any`\>
1333
+
1334
+ A promise that resolves with the function's result.
1335
+
1336
+ #### Inherited from
1337
+
1338
+ [`ClientTools`](ClientTools.md).[`run`](ClientTools.md#run)
1339
+
1340
+ ***
1341
+
1342
+ ### runAs()
1343
+
1344
+ > **runAs**(`name`, `params`?): `Promise`\<`any`\>
1345
+
1346
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:697](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L697)
1347
+
1348
+ Asynchronously executes another registered function by name.
1349
+ This method delegates to `runAsSync()` internally.
1350
+
1351
+ #### Parameters
1352
+
1353
+ ##### name
1354
+
1355
+ `string`
1356
+
1357
+ The name of the target function to run.
1358
+
1359
+ ##### params?
1360
+
1361
+ `any`
1362
+
1363
+ Optional parameters to pass to the function.
1364
+
1365
+ #### Returns
1366
+
1367
+ `Promise`\<`any`\>
1368
+
1369
+ A promise that resolves with the result of the function execution.
1370
+
1371
+ #### Inherited from
1372
+
1373
+ [`ClientTools`](ClientTools.md).[`runAs`](ClientTools.md#runas)
1374
+
1375
+ ***
1376
+
1377
+ ### runAsSync()
1378
+
1379
+ > **runAsSync**(`name`, `params`?): `any`
1380
+
1381
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:708](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L708)
1382
+
1383
+ Synchronously executes another registered function by name.
1384
+ This is a convenience method that forwards the call to the static `runSync()` method.
1385
+
1386
+ #### Parameters
1387
+
1388
+ ##### name
1389
+
1390
+ `string`
1391
+
1392
+ The name of the target function to run.
1393
+
1394
+ ##### params?
1395
+
1396
+ `any`
1397
+
1398
+ Optional parameters to pass to the function.
1399
+
1400
+ #### Returns
1401
+
1402
+ `any`
1403
+
1404
+ The result of the function execution.
1405
+
1406
+ #### Inherited from
1407
+
1408
+ [`ClientTools`](ClientTools.md).[`runAsSync`](ClientTools.md#runassync)
1409
+
1410
+ ***
1411
+
1412
+ ### runSync()
1413
+
1414
+ > **runSync**(`params`?): `any`
1415
+
1416
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:667](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L667)
1417
+
1418
+ Executes the function synchronously with a named parameters object.
1419
+
1420
+ #### Parameters
1421
+
1422
+ ##### params?
1423
+
1424
+ `any`
1425
+
1426
+ The parameters object for the function.
1427
+
1428
+ #### Returns
1429
+
1430
+ `any`
1431
+
1432
+ The result of the function execution.
1433
+
1434
+ #### Throws
1435
+
1436
+ Will throw an error if an array of parameters is passed to a function that expects an object.
1437
+
1438
+ #### Inherited from
1439
+
1440
+ [`ClientTools`](ClientTools.md).[`runSync`](ClientTools.md#runsync)
1441
+
1442
+ ***
1443
+
1444
+ ### runWithPos()
1445
+
1446
+ > **runWithPos**(...`params`): `Promise`\<`any`\>
1447
+
1448
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:755](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L755)
1449
+
1450
+ Executes the function asynchronously using positional arguments.
1451
+ Delegates to `runWithPosSync()` internally.
1452
+
1453
+ #### Parameters
1454
+
1455
+ ##### params
1456
+
1457
+ ...`any`[]
1458
+
1459
+ Positional arguments passed to the function.
1460
+
1461
+ #### Returns
1462
+
1463
+ `Promise`\<`any`\>
1464
+
1465
+ A promise that resolves with the result of the function execution.
1466
+
1467
+ #### Inherited from
1468
+
1469
+ [`ClientTools`](ClientTools.md).[`runWithPos`](ClientTools.md#runwithpos)
1470
+
1471
+ ***
1472
+
1473
+ ### runWithPosAs()
1474
+
1475
+ > **runWithPosAs**(`name`, ...`params`): `Promise`\<`any`\>
1476
+
1477
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:766](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L766)
1478
+
1479
+ Asynchronously executes another function by name using positional arguments.
1480
+ Delegates to `runWithPosAsSync()` internally.
1481
+
1482
+ #### Parameters
1483
+
1484
+ ##### name
1485
+
1486
+ `string`
1487
+
1488
+ The name of the target function to run.
1489
+
1490
+ ##### params
1491
+
1492
+ ...`any`[]
1493
+
1494
+ Positional arguments to pass to the function.
1495
+
1496
+ #### Returns
1497
+
1498
+ `Promise`\<`any`\>
1499
+
1500
+ A promise that resolves with the result of the function execution.
1501
+
1502
+ #### Inherited from
1503
+
1504
+ [`ClientTools`](ClientTools.md).[`runWithPosAs`](ClientTools.md#runwithposas)
1505
+
1506
+ ***
1507
+
1508
+ ### runWithPosAsSync()
1509
+
1510
+ > **runWithPosAsSync**(`name`, ...`params`): `any`
1511
+
1512
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:745](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L745)
1513
+
1514
+ Synchronously executes another function by name using positional arguments.
1515
+ This is a convenience wrapper around the static `runWithPosSync()` method.
1516
+
1517
+ #### Parameters
1518
+
1519
+ ##### name
1520
+
1521
+ `string`
1522
+
1523
+ The name of the target function to run.
1524
+
1525
+ ##### params
1526
+
1527
+ ...`any`[]
1528
+
1529
+ Positional arguments to pass to the function.
1530
+
1531
+ #### Returns
1532
+
1533
+ `any`
1534
+
1535
+ The result of the function execution.
1536
+
1537
+ #### Inherited from
1538
+
1539
+ [`ClientTools`](ClientTools.md).[`runWithPosAsSync`](ClientTools.md#runwithposassync)
1540
+
1541
+ ***
1542
+
1543
+ ### runWithPosSync()
1544
+
1545
+ > **runWithPosSync**(...`params`): `any`
1546
+
1547
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:731](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L731)
1548
+
1549
+ Executes the function synchronously using positional arguments.
1550
+ If the function expects named parameters, it converts the arguments automatically.
1551
+
1552
+ #### Parameters
1553
+
1554
+ ##### params
1555
+
1556
+ ...`any`[]
1557
+
1558
+ Positional arguments passed to the function.
1559
+
1560
+ #### Returns
1561
+
1562
+ `any`
1563
+
1564
+ The result of the function execution.
1565
+
1566
+ #### Inherited from
1567
+
1568
+ [`ClientTools`](ClientTools.md).[`runWithPosSync`](ClientTools.md#runwithpossync)
1569
+
1570
+ ***
1571
+
1572
+ ### toJSON()
1573
+
1574
+ > **toJSON**(): `any`
1575
+
1576
+ Defined in: [property-manager.js/src/abstract.d.ts:182](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L182)
1577
+
1578
+ #### Returns
1579
+
1580
+ `any`
1581
+
1582
+ #### Inherited from
1583
+
1584
+ [`ClientTools`](ClientTools.md).[`toJSON`](ClientTools.md#tojson)
1585
+
1586
+ ***
1587
+
1588
+ ### toLocaleString()
1589
+
1590
+ > **toLocaleString**(): `string`
1591
+
1592
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:131
1593
+
1594
+ Returns a date converted to a string using the current locale.
1595
+
1596
+ #### Returns
1597
+
1598
+ `string`
1599
+
1600
+ #### Inherited from
1601
+
1602
+ [`ClientTools`](ClientTools.md).[`toLocaleString`](ClientTools.md#tolocalestring)
1603
+
1604
+ ***
1605
+
1606
+ ### toObject()
1607
+
1608
+ > **toObject**(`options`?): `any`
1609
+
1610
+ Defined in: [property-manager.js/src/abstract.d.ts:181](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L181)
1611
+
1612
+ Convert the attributes to the json object
1613
+
1614
+ #### Parameters
1615
+
1616
+ ##### options?
1617
+
1618
+ `any`
1619
+
1620
+ #### Returns
1621
+
1622
+ `any`
1623
+
1624
+ the json object.
1625
+
1626
+ #### Inherited from
1627
+
1628
+ [`ClientTools`](ClientTools.md).[`toObject`](ClientTools.md#toobject)
1629
+
1630
+ ***
1631
+
1632
+ ### toString()
1633
+
1634
+ > **toString**(): `string`
1635
+
1636
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:128
1637
+
1638
+ Returns a string representation of an object.
1639
+
1640
+ #### Returns
1641
+
1642
+ `string`
1643
+
1644
+ #### Inherited from
1645
+
1646
+ [`ClientTools`](ClientTools.md).[`toString`](ClientTools.md#tostring)
1647
+
1648
+ ***
1649
+
1650
+ ### unregister()
1651
+
1652
+ > **unregister**(): `any`
1653
+
1654
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:619](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L619)
1655
+
1656
+ Removes the current `ToolFunc` instance from the static registry.
1657
+
1658
+ #### Returns
1659
+
1660
+ `any`
1661
+
1662
+ The instance that was unregistered.
1663
+
1664
+ #### Inherited from
1665
+
1666
+ [`ClientTools`](ClientTools.md).[`unregister`](ClientTools.md#unregister)
1667
+
1668
+ ***
1669
+
1670
+ ### valueOf()
1671
+
1672
+ > **valueOf**(): `Object`
1673
+
1674
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:134
1675
+
1676
+ Returns the primitive value of the specified object.
1677
+
1678
+ #### Returns
1679
+
1680
+ `Object`
1681
+
1682
+ #### Inherited from
1683
+
1684
+ [`ClientTools`](ClientTools.md).[`valueOf`](ClientTools.md#valueof)
1685
+
1686
+ ***
1687
+
1688
+ ### assign()
1689
+
1690
+ #### Call Signature
1691
+
1692
+ > `static` **assign**\<`T`, `U`\>(`target`, `source`): `T` & `U`
1693
+
1694
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:286
1695
+
1696
+ Copy the values of all of the enumerable own properties from one or more source objects to a
1697
+ target object. Returns the target object.
1698
+
1699
+ ##### Type Parameters
1700
+
1701
+ • **T** *extends* `object`
1702
+
1703
+ • **U**
1704
+
1705
+ ##### Parameters
1706
+
1707
+ ###### target
1708
+
1709
+ `T`
1710
+
1711
+ The target object to copy to.
1712
+
1713
+ ###### source
1714
+
1715
+ `U`
1716
+
1717
+ The source object from which to copy properties.
1718
+
1719
+ ##### Returns
1720
+
1721
+ `T` & `U`
1722
+
1723
+ ##### Inherited from
1724
+
1725
+ [`ClientTools`](ClientTools.md).[`assign`](ClientTools.md#assign-2)
1726
+
1727
+ #### Call Signature
1728
+
1729
+ > `static` **assign**\<`T`, `U`, `V`\>(`target`, `source1`, `source2`): `T` & `U` & `V`
1730
+
1731
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:295
1732
+
1733
+ Copy the values of all of the enumerable own properties from one or more source objects to a
1734
+ target object. Returns the target object.
1735
+
1736
+ ##### Type Parameters
1737
+
1738
+ • **T** *extends* `object`
1739
+
1740
+ • **U**
1741
+
1742
+ • **V**
1743
+
1744
+ ##### Parameters
1745
+
1746
+ ###### target
1747
+
1748
+ `T`
1749
+
1750
+ The target object to copy to.
1751
+
1752
+ ###### source1
1753
+
1754
+ `U`
1755
+
1756
+ The first source object from which to copy properties.
1757
+
1758
+ ###### source2
1759
+
1760
+ `V`
1761
+
1762
+ The second source object from which to copy properties.
1763
+
1764
+ ##### Returns
1765
+
1766
+ `T` & `U` & `V`
1767
+
1768
+ ##### Inherited from
1769
+
1770
+ [`ClientTools`](ClientTools.md).[`assign`](ClientTools.md#assign-2)
1771
+
1772
+ #### Call Signature
1773
+
1774
+ > `static` **assign**\<`T`, `U`, `V`, `W`\>(`target`, `source1`, `source2`, `source3`): `T` & `U` & `V` & `W`
1775
+
1776
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:305
1777
+
1778
+ Copy the values of all of the enumerable own properties from one or more source objects to a
1779
+ target object. Returns the target object.
1780
+
1781
+ ##### Type Parameters
1782
+
1783
+ • **T** *extends* `object`
1784
+
1785
+ • **U**
1786
+
1787
+ • **V**
1788
+
1789
+ • **W**
1790
+
1791
+ ##### Parameters
1792
+
1793
+ ###### target
1794
+
1795
+ `T`
1796
+
1797
+ The target object to copy to.
1798
+
1799
+ ###### source1
1800
+
1801
+ `U`
1802
+
1803
+ The first source object from which to copy properties.
1804
+
1805
+ ###### source2
1806
+
1807
+ `V`
1808
+
1809
+ The second source object from which to copy properties.
1810
+
1811
+ ###### source3
1812
+
1813
+ `W`
1814
+
1815
+ The third source object from which to copy properties.
1816
+
1817
+ ##### Returns
1818
+
1819
+ `T` & `U` & `V` & `W`
1820
+
1821
+ ##### Inherited from
1822
+
1823
+ [`ClientTools`](ClientTools.md).[`assign`](ClientTools.md#assign-2)
1824
+
1825
+ #### Call Signature
1826
+
1827
+ > `static` **assign**(`target`, ...`sources`): `any`
1828
+
1829
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:313
1830
+
1831
+ Copy the values of all of the enumerable own properties from one or more source objects to a
1832
+ target object. Returns the target object.
1833
+
1834
+ ##### Parameters
1835
+
1836
+ ###### target
1837
+
1838
+ `object`
1839
+
1840
+ The target object to copy to.
1841
+
1842
+ ###### sources
1843
+
1844
+ ...`any`[]
1845
+
1846
+ One or more source objects from which to copy properties
1847
+
1848
+ ##### Returns
1849
+
1850
+ `any`
1851
+
1852
+ ##### Inherited from
1853
+
1854
+ [`ClientTools`](ClientTools.md).[`assign`](ClientTools.md#assign-2)
1855
+
1856
+ ***
1857
+
1858
+ ### create()
1859
+
1860
+ #### Call Signature
1861
+
1862
+ > `static` **create**(`o`): `any`
1863
+
1864
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:188
1865
+
1866
+ Creates an object that has the specified prototype or that has null prototype.
1867
+
1868
+ ##### Parameters
1869
+
1870
+ ###### o
1871
+
1872
+ Object to use as a prototype. May be null.
1873
+
1874
+ `null` | `object`
1875
+
1876
+ ##### Returns
1877
+
1878
+ `any`
1879
+
1880
+ ##### Inherited from
1881
+
1882
+ [`ClientTools`](ClientTools.md).[`create`](ClientTools.md#create)
1883
+
1884
+ #### Call Signature
1885
+
1886
+ > `static` **create**(`o`, `properties`): `any`
1887
+
1888
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:195
1889
+
1890
+ Creates an object that has the specified prototype, and that optionally contains specified properties.
1891
+
1892
+ ##### Parameters
1893
+
1894
+ ###### o
1895
+
1896
+ Object to use as a prototype. May be null
1897
+
1898
+ `null` | `object`
1899
+
1900
+ ###### properties
1901
+
1902
+ `PropertyDescriptorMap` & `ThisType`\<`any`\>
1903
+
1904
+ JavaScript object that contains one or more property descriptors.
1905
+
1906
+ ##### Returns
1907
+
1908
+ `any`
1909
+
1910
+ ##### Inherited from
1911
+
1912
+ [`ClientTools`](ClientTools.md).[`create`](ClientTools.md#create)
1913
+
1914
+ ***
1915
+
1916
+ ### defineProperties()
1917
+
1918
+ > `static` **defineProperties**(`aTarget`, `aProperties`, `recreate`?): `any`
1919
+
1920
+ Defined in: [property-manager.js/src/advance.d.ts:11](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/advance.d.ts#L11)
1921
+
1922
+ Adds one or more properties to an object, and/or modifies attributes of existing properties.
1923
+
1924
+ #### Parameters
1925
+
1926
+ ##### aTarget
1927
+
1928
+ `any`
1929
+
1930
+ ##### aProperties
1931
+
1932
+ `PropDescriptors`
1933
+
1934
+ ##### recreate?
1935
+
1936
+ `boolean`
1937
+
1938
+ #### Returns
1939
+
1940
+ `any`
1941
+
1942
+ #### Inherited from
1943
+
1944
+ [`ClientTools`](ClientTools.md).[`defineProperties`](ClientTools.md#defineproperties-2)
1945
+
1946
+ ***
1947
+
1948
+ ### defineProperty()
1949
+
1950
+ > `static` **defineProperty**\<`T`\>(`o`, `p`, `attributes`): `T`
1951
+
1952
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:203
1953
+
1954
+ Adds a property to an object, or modifies attributes of an existing property.
1955
+
1956
+ #### Type Parameters
1957
+
1958
+ • **T**
1959
+
1960
+ #### Parameters
1961
+
1962
+ ##### o
1963
+
1964
+ `T`
1965
+
1966
+ 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.
1967
+
1968
+ ##### p
1969
+
1970
+ `PropertyKey`
1971
+
1972
+ The property name.
1973
+
1974
+ ##### attributes
1975
+
1976
+ `PropertyDescriptor` & `ThisType`\<`any`\>
1977
+
1978
+ Descriptor for the property. It can be for a data property or an accessor property.
1979
+
1980
+ #### Returns
1981
+
1982
+ `T`
1983
+
1984
+ #### Inherited from
1985
+
1986
+ [`ClientTools`](ClientTools.md).[`defineProperty`](ClientTools.md#defineproperty)
1987
+
1988
+ ***
1989
+
1990
+ ### entries()
1991
+
1992
+ #### Call Signature
1993
+
1994
+ > `static` **entries**\<`T`\>(`o`): \[`string`, `T`\][]
1995
+
1996
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:36
1997
+
1998
+ Returns an array of key/values of the enumerable own properties of an object
1999
+
2000
+ ##### Type Parameters
2001
+
2002
+ • **T**
2003
+
2004
+ ##### Parameters
2005
+
2006
+ ###### o
2007
+
2008
+ Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2009
+
2010
+ \{\} | `ArrayLike`\<`T`\>
2011
+
2012
+ ##### Returns
2013
+
2014
+ \[`string`, `T`\][]
2015
+
2016
+ ##### Inherited from
2017
+
2018
+ [`ClientTools`](ClientTools.md).[`entries`](ClientTools.md#entries)
2019
+
2020
+ #### Call Signature
2021
+
2022
+ > `static` **entries**(`o`): \[`string`, `any`\][]
2023
+
2024
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:42
2025
+
2026
+ Returns an array of key/values of the enumerable own properties of an object
2027
+
2028
+ ##### Parameters
2029
+
2030
+ ###### o
2031
+
2032
+ Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2033
+
2034
+ ##### Returns
2035
+
2036
+ \[`string`, `any`\][]
2037
+
2038
+ ##### Inherited from
2039
+
2040
+ [`ClientTools`](ClientTools.md).[`entries`](ClientTools.md#entries)
2041
+
2042
+ ***
2043
+
2044
+ ### fetch()
2045
+
2046
+ > `static` **fetch**(`name`, `objParam`?, ...`args`?): `Promise`\<`any`\>
2047
+
2048
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:98](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/client-tools.ts#L98)
2049
+
2050
+ #### Parameters
2051
+
2052
+ ##### name
2053
+
2054
+ `string`
2055
+
2056
+ ##### objParam?
2057
+
2058
+ `any`
2059
+
2060
+ ##### args?
2061
+
2062
+ ...`any`[]
2063
+
2064
+ #### Returns
2065
+
2066
+ `Promise`\<`any`\>
2067
+
2068
+ #### Inherited from
2069
+
2070
+ [`ClientTools`](ClientTools.md).[`fetch`](ClientTools.md#fetch-2)
2071
+
2072
+ ***
2073
+
2074
+ ### freeze()
2075
+
2076
+ #### Call Signature
2077
+
2078
+ > `static` **freeze**\<`T`\>(`f`): `T`
2079
+
2080
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:222
2081
+
2082
+ Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
2083
+
2084
+ ##### Type Parameters
2085
+
2086
+ • **T** *extends* `Function`
2087
+
2088
+ ##### Parameters
2089
+
2090
+ ###### f
2091
+
2092
+ `T`
2093
+
2094
+ Object on which to lock the attributes.
2095
+
2096
+ ##### Returns
2097
+
2098
+ `T`
2099
+
2100
+ ##### Inherited from
2101
+
2102
+ [`ClientTools`](ClientTools.md).[`freeze`](ClientTools.md#freeze)
2103
+
2104
+ #### Call Signature
2105
+
2106
+ > `static` **freeze**\<`T`, `U`\>(`o`): `Readonly`\<`T`\>
2107
+
2108
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:228
2109
+
2110
+ Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
2111
+
2112
+ ##### Type Parameters
2113
+
2114
+ • **T** *extends* `object`
2115
+
2116
+ • **U** *extends* `string` \| `number` \| `bigint` \| `boolean` \| `symbol`
2117
+
2118
+ ##### Parameters
2119
+
2120
+ ###### o
2121
+
2122
+ `T`
2123
+
2124
+ Object on which to lock the attributes.
2125
+
2126
+ ##### Returns
2127
+
2128
+ `Readonly`\<`T`\>
2129
+
2130
+ ##### Inherited from
2131
+
2132
+ [`ClientTools`](ClientTools.md).[`freeze`](ClientTools.md#freeze)
2133
+
2134
+ #### Call Signature
2135
+
2136
+ > `static` **freeze**\<`T`\>(`o`): `Readonly`\<`T`\>
2137
+
2138
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:234
2139
+
2140
+ Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
2141
+
2142
+ ##### Type Parameters
2143
+
2144
+ • **T**
2145
+
2146
+ ##### Parameters
2147
+
2148
+ ###### o
2149
+
2150
+ `T`
2151
+
2152
+ Object on which to lock the attributes.
2153
+
2154
+ ##### Returns
2155
+
2156
+ `Readonly`\<`T`\>
2157
+
2158
+ ##### Inherited from
2159
+
2160
+ [`ClientTools`](ClientTools.md).[`freeze`](ClientTools.md#freeze)
2161
+
2162
+ ***
2163
+
2164
+ ### fromEntries()
2165
+
2166
+ #### Call Signature
2167
+
2168
+ > `static` **fromEntries**\<`T`\>(`entries`): `object`
2169
+
2170
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2019.object.d.ts:26
2171
+
2172
+ Returns an object created by key-value entries for properties and methods
2173
+
2174
+ ##### Type Parameters
2175
+
2176
+ • **T** = `any`
2177
+
2178
+ ##### Parameters
2179
+
2180
+ ###### entries
2181
+
2182
+ `Iterable`\<readonly \[`PropertyKey`, `T`\]\>
2183
+
2184
+ An iterable object that contains key-value entries for properties and methods.
2185
+
2186
+ ##### Returns
2187
+
2188
+ `object`
2189
+
2190
+ ##### Inherited from
2191
+
2192
+ [`ClientTools`](ClientTools.md).[`fromEntries`](ClientTools.md#fromentries)
2193
+
2194
+ #### Call Signature
2195
+
2196
+ > `static` **fromEntries**(`entries`): `any`
2197
+
2198
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2019.object.d.ts:32
2199
+
2200
+ Returns an object created by key-value entries for properties and methods
2201
+
2202
+ ##### Parameters
2203
+
2204
+ ###### entries
2205
+
2206
+ `Iterable`\<readonly `any`[]\>
2207
+
2208
+ An iterable object that contains key-value entries for properties and methods.
2209
+
2210
+ ##### Returns
2211
+
2212
+ `any`
2213
+
2214
+ ##### Inherited from
2215
+
2216
+ [`ClientTools`](ClientTools.md).[`fromEntries`](ClientTools.md#fromentries)
2217
+
2218
+ ***
2219
+
2220
+ ### get()
2221
+
2222
+ > `static` **get**(`name`): [`ToolFunc`](ToolFunc.md)
2223
+
2224
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:319](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L319)
2225
+
2226
+ Retrieves a registered function by its name or alias.
2227
+
2228
+ #### Parameters
2229
+
2230
+ ##### name
2231
+
2232
+ `string`
2233
+
2234
+ The name or alias of the function to retrieve.
2235
+
2236
+ #### Returns
2237
+
2238
+ [`ToolFunc`](ToolFunc.md)
2239
+
2240
+ The `ToolFunc` instance if found, otherwise `undefined`.
2241
+
2242
+ #### Inherited from
2243
+
2244
+ [`ClientTools`](ClientTools.md).[`get`](ClientTools.md#get)
2245
+
2246
+ ***
2247
+
2248
+ ### getAllByTag()
2249
+
2250
+ > `static` **getAllByTag**(`tagName`): [`ToolFunc`](ToolFunc.md)[]
2251
+
2252
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:365](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L365)
2253
+
2254
+ Retrieves all registered functions that have a specific tag.
2255
+
2256
+ #### Parameters
2257
+
2258
+ ##### tagName
2259
+
2260
+ `string`
2261
+
2262
+ The tag to search for.
2263
+
2264
+ #### Returns
2265
+
2266
+ [`ToolFunc`](ToolFunc.md)[]
2267
+
2268
+ An array of matching `ToolFunc` instances.
2269
+
2270
+ #### Inherited from
2271
+
2272
+ [`ClientTools`](ClientTools.md).[`getAllByTag`](ClientTools.md#getallbytag)
2273
+
2274
+ ***
2275
+
2276
+ ### getByTag()
2277
+
2278
+ > `static` **getByTag**(`tagName`): `undefined` \| [`ToolFunc`](ToolFunc.md)
2279
+
2280
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:340](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L340)
2281
+
2282
+ Finds the first registered function that has a specific tag.
2283
+
2284
+ #### Parameters
2285
+
2286
+ ##### tagName
2287
+
2288
+ `string`
2289
+
2290
+ The tag to search for.
2291
+
2292
+ #### Returns
2293
+
2294
+ `undefined` \| [`ToolFunc`](ToolFunc.md)
2295
+
2296
+ The first matching `ToolFunc` instance, or `undefined` if none is found.
2297
+
2298
+ #### Inherited from
2299
+
2300
+ [`ClientTools`](ClientTools.md).[`getByTag`](ClientTools.md#getbytag)
2301
+
2302
+ ***
2303
+
2304
+ ### getFunc()
2305
+
2306
+ > `static` **getFunc**(`name`): `any`
2307
+
2308
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:431](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L431)
2309
+
2310
+ Retrieves a bound, runnable function reference for a registered function.
2311
+ This reference is suitable for execution with an object of named parameters.
2312
+
2313
+ #### Parameters
2314
+
2315
+ ##### name
2316
+
2317
+ `string`
2318
+
2319
+ The name of the function.
2320
+
2321
+ #### Returns
2322
+
2323
+ `any`
2324
+
2325
+ A bound function reference, or `undefined` if not found.
2326
+
2327
+ #### Inherited from
2328
+
2329
+ [`ClientTools`](ClientTools.md).[`getFunc`](ClientTools.md#getfunc-2)
2330
+
2331
+ ***
2332
+
2333
+ ### getFuncWithPos()
2334
+
2335
+ > `static` **getFuncWithPos**(`name`): `any`
2336
+
2337
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:472](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L472)
2338
+
2339
+ Retrieves a bound, runnable function reference for a registered function.
2340
+ This reference is suitable for execution with positional arguments.
2341
+
2342
+ #### Parameters
2343
+
2344
+ ##### name
2345
+
2346
+ `string`
2347
+
2348
+ The name of the function.
2349
+
2350
+ #### Returns
2351
+
2352
+ `any`
2353
+
2354
+ A bound function reference, or `undefined` if not found.
2355
+
2356
+ #### Inherited from
2357
+
2358
+ [`ClientTools`](ClientTools.md).[`getFuncWithPos`](ClientTools.md#getfuncwithpos-2)
2359
+
2360
+ ***
2361
+
2362
+ ### getOwnPropertyDescriptor()
2363
+
2364
+ > `static` **getOwnPropertyDescriptor**(`o`, `p`): `undefined` \| `PropertyDescriptor`
2365
+
2366
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:175
2367
+
2368
+ Gets the own property descriptor of the specified object.
2369
+ An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
2370
+
2371
+ #### Parameters
2372
+
2373
+ ##### o
2374
+
2375
+ `any`
2376
+
2377
+ Object that contains the property.
2378
+
2379
+ ##### p
2380
+
2381
+ `PropertyKey`
2382
+
2383
+ Name of the property.
2384
+
2385
+ #### Returns
2386
+
2387
+ `undefined` \| `PropertyDescriptor`
2388
+
2389
+ #### Inherited from
2390
+
2391
+ [`ClientTools`](ClientTools.md).[`getOwnPropertyDescriptor`](ClientTools.md#getownpropertydescriptor)
2392
+
2393
+ ***
2394
+
2395
+ ### getOwnPropertyDescriptors()
2396
+
2397
+ > `static` **getOwnPropertyDescriptors**\<`T`\>(`o`): \{ \[P in string \| number \| symbol\]: TypedPropertyDescriptor\<T\[P\]\> \} & `object`
2398
+
2399
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:48
2400
+
2401
+ Returns an object containing all own property descriptors of an object
2402
+
2403
+ #### Type Parameters
2404
+
2405
+ • **T**
2406
+
2407
+ #### Parameters
2408
+
2409
+ ##### o
2410
+
2411
+ `T`
2412
+
2413
+ Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2414
+
2415
+ #### Returns
2416
+
2417
+ \{ \[P in string \| number \| symbol\]: TypedPropertyDescriptor\<T\[P\]\> \} & `object`
2418
+
2419
+ #### Inherited from
2420
+
2421
+ [`ClientTools`](ClientTools.md).[`getOwnPropertyDescriptors`](ClientTools.md#getownpropertydescriptors)
2422
+
2423
+ ***
2424
+
2425
+ ### getOwnPropertyNames()
2426
+
2427
+ > `static` **getOwnPropertyNames**(`o`): `string`[]
2428
+
2429
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:182
2430
+
2431
+ Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
2432
+ on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
2433
+
2434
+ #### Parameters
2435
+
2436
+ ##### o
2437
+
2438
+ `any`
2439
+
2440
+ Object that contains the own properties.
2441
+
2442
+ #### Returns
2443
+
2444
+ `string`[]
2445
+
2446
+ #### Inherited from
2447
+
2448
+ [`ClientTools`](ClientTools.md).[`getOwnPropertyNames`](ClientTools.md#getownpropertynames)
2449
+
2450
+ ***
2451
+
2452
+ ### getOwnPropertySymbols()
2453
+
2454
+ > `static` **getOwnPropertySymbols**(`o`): `symbol`[]
2455
+
2456
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:319
2457
+
2458
+ Returns an array of all symbol properties found directly on object o.
2459
+
2460
+ #### Parameters
2461
+
2462
+ ##### o
2463
+
2464
+ `any`
2465
+
2466
+ Object to retrieve the symbols from.
2467
+
2468
+ #### Returns
2469
+
2470
+ `symbol`[]
2471
+
2472
+ #### Inherited from
2473
+
2474
+ [`ClientTools`](ClientTools.md).[`getOwnPropertySymbols`](ClientTools.md#getownpropertysymbols)
2475
+
2476
+ ***
2477
+
2478
+ ### getProperties()
2479
+
2480
+ > `static` **getProperties**(): `PropDescriptors`
2481
+
2482
+ Defined in: [property-manager.js/src/advance.d.ts:10](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/advance.d.ts#L10)
2483
+
2484
+ get all properties descriptor include inherited.
2485
+
2486
+ #### Returns
2487
+
2488
+ `PropDescriptors`
2489
+
2490
+ #### Inherited from
2491
+
2492
+ [`ClientTools`](ClientTools.md).[`getProperties`](ClientTools.md#getproperties-2)
2493
+
2494
+ ***
2495
+
2496
+ ### getPrototypeOf()
2497
+
2498
+ > `static` **getPrototypeOf**(`o`): `any`
2499
+
2500
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:167
2501
+
2502
+ Returns the prototype of an object.
2503
+
2504
+ #### Parameters
2505
+
2506
+ ##### o
2507
+
2508
+ `any`
2509
+
2510
+ The object that references the prototype.
2511
+
2512
+ #### Returns
2513
+
2514
+ `any`
2515
+
2516
+ #### Inherited from
2517
+
2518
+ [`ClientTools`](ClientTools.md).[`getPrototypeOf`](ClientTools.md#getprototypeof)
2519
+
2520
+ ***
2521
+
2522
+ ### hasAsyncFeature()
2523
+
2524
+ > `static` **hasAsyncFeature**(`feature`): `boolean`
2525
+
2526
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:388](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L388)
2527
+
2528
+ Checks if any registered function has a specific asynchronous feature.
2529
+
2530
+ #### Parameters
2531
+
2532
+ ##### feature
2533
+
2534
+ [`AsyncFeatureBits`](../enumerations/AsyncFeatureBits.md)
2535
+
2536
+ The async feature bit to check for.
2537
+
2538
+ #### Returns
2539
+
2540
+ `boolean`
2541
+
2542
+ `true` if the feature is present in any function, otherwise `false`.
2543
+
2544
+ #### Inherited from
2545
+
2546
+ [`ClientTools`](ClientTools.md).[`hasAsyncFeature`](ClientTools.md#hasasyncfeature-2)
2547
+
2548
+ ***
2549
+
2550
+ ### hasOwn()
2551
+
2552
+ > `static` **hasOwn**(`o`, `v`): `boolean`
2553
+
2554
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2022.object.d.ts:25
2555
+
2556
+ Determines whether an object has a property with the specified name.
2557
+
2558
+ #### Parameters
2559
+
2560
+ ##### o
2561
+
2562
+ `object`
2563
+
2564
+ An object.
2565
+
2566
+ ##### v
2567
+
2568
+ `PropertyKey`
2569
+
2570
+ A property name.
2571
+
2572
+ #### Returns
2573
+
2574
+ `boolean`
2575
+
2576
+ #### Inherited from
2577
+
2578
+ [`ClientTools`](ClientTools.md).[`hasOwn`](ClientTools.md#hasown)
2579
+
2580
+ ***
2581
+
2582
+ ### is()
2583
+
2584
+ > `static` **is**(`value1`, `value2`): `boolean`
2585
+
2586
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:332
2587
+
2588
+ Returns true if the values are the same value, false otherwise.
2589
+
2590
+ #### Parameters
2591
+
2592
+ ##### value1
2593
+
2594
+ `any`
2595
+
2596
+ The first value.
2597
+
2598
+ ##### value2
2599
+
2600
+ `any`
2601
+
2602
+ The second value.
2603
+
2604
+ #### Returns
2605
+
2606
+ `boolean`
2607
+
2608
+ #### Inherited from
2609
+
2610
+ [`ClientTools`](ClientTools.md).[`is`](ClientTools.md#is)
2611
+
2612
+ ***
2613
+
2614
+ ### isExtensible()
2615
+
2616
+ > `static` **isExtensible**(`o`): `boolean`
2617
+
2618
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:258
2619
+
2620
+ Returns a value that indicates whether new properties can be added to an object.
2621
+
2622
+ #### Parameters
2623
+
2624
+ ##### o
2625
+
2626
+ `any`
2627
+
2628
+ Object to test.
2629
+
2630
+ #### Returns
2631
+
2632
+ `boolean`
2633
+
2634
+ #### Inherited from
2635
+
2636
+ [`ClientTools`](ClientTools.md).[`isExtensible`](ClientTools.md#isextensible)
2637
+
2638
+ ***
2639
+
2640
+ ### isFrozen()
2641
+
2642
+ > `static` **isFrozen**(`o`): `boolean`
2643
+
2644
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:252
2645
+
2646
+ Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
2647
+
2648
+ #### Parameters
2649
+
2650
+ ##### o
2651
+
2652
+ `any`
2653
+
2654
+ Object to test.
2655
+
2656
+ #### Returns
2657
+
2658
+ `boolean`
2659
+
2660
+ #### Inherited from
2661
+
2662
+ [`ClientTools`](ClientTools.md).[`isFrozen`](ClientTools.md#isfrozen)
2663
+
2664
+ ***
2665
+
2666
+ ### isSealed()
2667
+
2668
+ > `static` **isSealed**(`o`): `boolean`
2669
+
2670
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:246
2671
+
2672
+ Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
2673
+
2674
+ #### Parameters
2675
+
2676
+ ##### o
2677
+
2678
+ `any`
2679
+
2680
+ Object to test.
2681
+
2682
+ #### Returns
2683
+
2684
+ `boolean`
2685
+
2686
+ #### Inherited from
2687
+
2688
+ [`ClientTools`](ClientTools.md).[`isSealed`](ClientTools.md#issealed)
2689
+
2690
+ ***
2691
+
2692
+ ### keys()
2693
+
2694
+ #### Call Signature
2695
+
2696
+ > `static` **keys**(`o`): `string`[]
2697
+
2698
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:264
2699
+
2700
+ Returns the names of the enumerable string properties and methods of an object.
2701
+
2702
+ ##### Parameters
2703
+
2704
+ ###### o
2705
+
2706
+ `object`
2707
+
2708
+ Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2709
+
2710
+ ##### Returns
2711
+
2712
+ `string`[]
2713
+
2714
+ ##### Inherited from
2715
+
2716
+ [`ClientTools`](ClientTools.md).[`keys`](ClientTools.md#keys)
2717
+
2718
+ #### Call Signature
2719
+
2720
+ > `static` **keys**(`o`): `string`[]
2721
+
2722
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:325
2723
+
2724
+ Returns the names of the enumerable string properties and methods of an object.
2725
+
2726
+ ##### Parameters
2727
+
2728
+ ###### o
2729
+
2730
+ Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2731
+
2732
+ ##### Returns
2733
+
2734
+ `string`[]
2735
+
2736
+ ##### Inherited from
2737
+
2738
+ [`ClientTools`](ClientTools.md).[`keys`](ClientTools.md#keys)
2739
+
2740
+ ***
2741
+
2742
+ ### list()
2743
+
2744
+ > `static` **list**(): [`Funcs`](../interfaces/Funcs.md)
2745
+
2746
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:331](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L331)
2747
+
2748
+ Returns the complete map of all registered functions.
2749
+
2750
+ #### Returns
2751
+
2752
+ [`Funcs`](../interfaces/Funcs.md)
2753
+
2754
+ The map of `ToolFunc` instances.
2755
+
2756
+ #### Inherited from
2757
+
2758
+ [`ClientTools`](ClientTools.md).[`list`](ClientTools.md#list)
2759
+
2760
+ ***
2761
+
2762
+ ### loadFrom()
2763
+
2764
+ > `static` **loadFrom**(`items`?): `Promise`\<[`Funcs`](../interfaces/Funcs.md)\>
2765
+
2766
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:68](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/client-tools.ts#L68)
2767
+
2768
+ Loads tool definitions from the remote server via the configured transport.
2769
+ This method populates the local `ToolFunc` registry with `ClientTools` stubs.
2770
+
2771
+ #### Parameters
2772
+
2773
+ ##### items?
2774
+
2775
+ [`Funcs`](../interfaces/Funcs.md)
2776
+
2777
+ #### Returns
2778
+
2779
+ `Promise`\<[`Funcs`](../interfaces/Funcs.md)\>
2780
+
2781
+ #### Inherited from
2782
+
2783
+ [`ClientTools`](ClientTools.md).[`loadFrom`](ClientTools.md#loadfrom)
2784
+
2785
+ ***
2786
+
2787
+ ### loadFromSync()
2788
+
2789
+ > `static` **loadFromSync**(`items`): `void`
2790
+
2791
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:84](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/client-tools.ts#L84)
2792
+
2793
+ Synchronously loads tool definitions from a provided object, registering
2794
+ each one as a `ClientTools` instance.
2795
+
2796
+ #### Parameters
2797
+
2798
+ ##### items
2799
+
2800
+ [`Funcs`](../interfaces/Funcs.md)
2801
+
2802
+ A map of tool function metadata, typically from a server.
2803
+
2804
+ #### Returns
2805
+
2806
+ `void`
2807
+
2808
+ #### Inherited from
2809
+
2810
+ [`ClientTools`](ClientTools.md).[`loadFromSync`](ClientTools.md#loadfromsync)
2811
+
2812
+ ***
2813
+
2814
+ ### preventExtensions()
2815
+
2816
+ > `static` **preventExtensions**\<`T`\>(`o`): `T`
2817
+
2818
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:240
2819
+
2820
+ Prevents the addition of new properties to an object.
2821
+
2822
+ #### Type Parameters
2823
+
2824
+ • **T**
2825
+
2826
+ #### Parameters
2827
+
2828
+ ##### o
2829
+
2830
+ `T`
2831
+
2832
+ Object to make non-extensible.
2833
+
2834
+ #### Returns
2835
+
2836
+ `T`
2837
+
2838
+ #### Inherited from
2839
+
2840
+ [`ClientTools`](ClientTools.md).[`preventExtensions`](ClientTools.md#preventextensions)
2841
+
2842
+ ***
2843
+
2844
+ ### register()
2845
+
2846
+ #### Call Signature
2847
+
2848
+ > `static` **register**(`name`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
2849
+
2850
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:495](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L495)
2851
+
2852
+ Registers a new tool function.
2853
+
2854
+ ##### Parameters
2855
+
2856
+ ###### name
2857
+
2858
+ `string`
2859
+
2860
+ The name of the function.
2861
+
2862
+ ###### options
2863
+
2864
+ [`FuncItem`](../interfaces/FuncItem.md)
2865
+
2866
+ The function's configuration.
2867
+
2868
+ ##### Returns
2869
+
2870
+ `boolean` \| [`ToolFunc`](ToolFunc.md)
2871
+
2872
+ The new `ToolFunc` instance, or `false` if a function with that name already exists.
2873
+
2874
+ The new `ToolFunc` instance, or `false` if a function with that name already exists.
2875
+
2876
+ The new `ToolFunc` instance, or `false` if a function with that name already exists.
2877
+
2878
+ ##### Inherited from
2879
+
2880
+ [`ClientTools`](ClientTools.md).[`register`](ClientTools.md#register-2)
2881
+
2882
+ #### Call Signature
2883
+
2884
+ > `static` **register**(`func`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
2885
+
2886
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:496](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L496)
2887
+
2888
+ Registers a new tool function.
2889
+
2890
+ ##### Parameters
2891
+
2892
+ ###### func
2893
+
2894
+ `Function`
2895
+
2896
+ The function implementation.
2897
+
2898
+ ###### options
2899
+
2900
+ [`FuncItem`](../interfaces/FuncItem.md)
2901
+
2902
+ The function's configuration.
2903
+
2904
+ ##### Returns
2905
+
2906
+ `boolean` \| [`ToolFunc`](ToolFunc.md)
2907
+
2908
+ The new `ToolFunc` instance, or `false` if a function with that name already exists.
2909
+
2910
+ The new `ToolFunc` instance, or `false` if a function with that name already exists.
2911
+
2912
+ The new `ToolFunc` instance, or `false` if a function with that name already exists.
2913
+
2914
+ ##### Inherited from
2915
+
2916
+ [`ClientTools`](ClientTools.md).[`register`](ClientTools.md#register-2)
2917
+
2918
+ #### Call Signature
2919
+
2920
+ > `static` **register**(`name`, `options`?): `boolean` \| [`ToolFunc`](ToolFunc.md)
2921
+
2922
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:497](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L497)
2923
+
2924
+ Registers a new tool function.
2925
+
2926
+ ##### Parameters
2927
+
2928
+ ###### name
2929
+
2930
+ The name of the function.
2931
+
2932
+ `string` | `Function` | [`ToolFunc`](ToolFunc.md) | [`FuncItem`](../interfaces/FuncItem.md)
2933
+
2934
+ ###### options?
2935
+
2936
+ [`FuncItem`](../interfaces/FuncItem.md)
2937
+
2938
+ The function's configuration.
2939
+
2940
+ ##### Returns
2941
+
2942
+ `boolean` \| [`ToolFunc`](ToolFunc.md)
2943
+
2944
+ The new `ToolFunc` instance, or `false` if a function with that name already exists.
2945
+
2946
+ The new `ToolFunc` instance, or `false` if a function with that name already exists.
2947
+
2948
+ The new `ToolFunc` instance, or `false` if a function with that name already exists.
2949
+
2950
+ ##### Inherited from
2951
+
2952
+ [`ClientTools`](ClientTools.md).[`register`](ClientTools.md#register-2)
2953
+
2954
+ ***
2955
+
2956
+ ### run()
2957
+
2958
+ > `static` **run**(`name`, `params`?): `Promise`\<`any`\>
2959
+
2960
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:402](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L402)
2961
+
2962
+ Asynchronously executes a registered function by name with named parameters.
2963
+
2964
+ #### Parameters
2965
+
2966
+ ##### name
2967
+
2968
+ `string`
2969
+
2970
+ The name of the function to run.
2971
+
2972
+ ##### params?
2973
+
2974
+ `any`
2975
+
2976
+ The parameters object for the function.
2977
+
2978
+ #### Returns
2979
+
2980
+ `Promise`\<`any`\>
2981
+
2982
+ A promise that resolves with the function's result.
2983
+
2984
+ #### Throws
2985
+
2986
+ If the function with the given name is not found.
2987
+
2988
+ #### Inherited from
2989
+
2990
+ [`ClientTools`](ClientTools.md).[`run`](ClientTools.md#run-2)
2991
+
2992
+ ***
2993
+
2994
+ ### runSync()
2995
+
2996
+ > `static` **runSync**(`name`, `params`?): `any`
2997
+
2998
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:417](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L417)
2999
+
3000
+ Synchronously executes a registered function by name with named parameters.
3001
+
3002
+ #### Parameters
3003
+
3004
+ ##### name
3005
+
3006
+ `string`
3007
+
3008
+ The name of the function to run.
3009
+
3010
+ ##### params?
3011
+
3012
+ `any`
3013
+
3014
+ The parameters object for the function.
3015
+
3016
+ #### Returns
3017
+
3018
+ `any`
3019
+
3020
+ The result of the function's execution.
3021
+
3022
+ #### Throws
3023
+
3024
+ If the function with the given name is not found.
3025
+
3026
+ #### Inherited from
3027
+
3028
+ [`ClientTools`](ClientTools.md).[`runSync`](ClientTools.md#runsync-2)
3029
+
3030
+ ***
3031
+
3032
+ ### runWithPos()
3033
+
3034
+ > `static` **runWithPos**(`name`, ...`params`): `Promise`\<`any`\>
3035
+
3036
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:443](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L443)
3037
+
3038
+ Asynchronously executes a function using positional arguments.
3039
+
3040
+ #### Parameters
3041
+
3042
+ ##### name
3043
+
3044
+ `string`
3045
+
3046
+ The name of the function to run.
3047
+
3048
+ ##### params
3049
+
3050
+ ...`any`[]
3051
+
3052
+ Positional arguments to pass to the function.
3053
+
3054
+ #### Returns
3055
+
3056
+ `Promise`\<`any`\>
3057
+
3058
+ A promise that resolves with the function's result.
3059
+
3060
+ #### Throws
3061
+
3062
+ If the function with the given name is not found.
3063
+
3064
+ #### Inherited from
3065
+
3066
+ [`ClientTools`](ClientTools.md).[`runWithPos`](ClientTools.md#runwithpos-2)
3067
+
3068
+ ***
3069
+
3070
+ ### runWithPosSync()
3071
+
3072
+ > `static` **runWithPosSync**(`name`, ...`params`): `any`
3073
+
3074
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:458](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L458)
3075
+
3076
+ Synchronously executes a function using positional arguments.
3077
+
3078
+ #### Parameters
3079
+
3080
+ ##### name
3081
+
3082
+ `string`
3083
+
3084
+ The name of the function to run.
3085
+
3086
+ ##### params
3087
+
3088
+ ...`any`[]
3089
+
3090
+ Positional arguments to pass to the function.
3091
+
3092
+ #### Returns
3093
+
3094
+ `any`
3095
+
3096
+ The result of the function's execution.
3097
+
3098
+ #### Throws
3099
+
3100
+ If the function with the given name is not found.
3101
+
3102
+ #### Inherited from
3103
+
3104
+ [`ClientTools`](ClientTools.md).[`runWithPosSync`](ClientTools.md#runwithpossync-2)
3105
+
3106
+ ***
3107
+
3108
+ ### seal()
3109
+
3110
+ > `static` **seal**\<`T`\>(`o`): `T`
3111
+
3112
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:216
3113
+
3114
+ Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
3115
+
3116
+ #### Type Parameters
3117
+
3118
+ • **T**
3119
+
3120
+ #### Parameters
3121
+
3122
+ ##### o
3123
+
3124
+ `T`
3125
+
3126
+ Object on which to lock the attributes.
3127
+
3128
+ #### Returns
3129
+
3130
+ `T`
3131
+
3132
+ #### Inherited from
3133
+
3134
+ [`ClientTools`](ClientTools.md).[`seal`](ClientTools.md#seal)
3135
+
3136
+ ***
3137
+
3138
+ ### setPrototypeOf()
3139
+
3140
+ > `static` **setPrototypeOf**(`o`, `proto`): `any`
3141
+
3142
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:339
3143
+
3144
+ Sets the prototype of a specified object o to object proto or null. Returns the object o.
3145
+
3146
+ #### Parameters
3147
+
3148
+ ##### o
3149
+
3150
+ `any`
3151
+
3152
+ The object to change its prototype.
3153
+
3154
+ ##### proto
3155
+
3156
+ The value of the new prototype or null.
3157
+
3158
+ `null` | `object`
3159
+
3160
+ #### Returns
3161
+
3162
+ `any`
3163
+
3164
+ #### Inherited from
3165
+
3166
+ [`ClientTools`](ClientTools.md).[`setPrototypeOf`](ClientTools.md#setprototypeof)
3167
+
3168
+ ***
3169
+
3170
+ ### setTransport()
3171
+
3172
+ > `static` **setTransport**(`transport`): `void`
3173
+
3174
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:50](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/client-tools.ts#L50)
3175
+
3176
+ Injects the client-side transport implementation. This is a crucial step
3177
+ to enable communication with the server.
3178
+
3179
+ #### Parameters
3180
+
3181
+ ##### transport
3182
+
3183
+ [`IClientToolTransport`](../interfaces/IClientToolTransport.md)
3184
+
3185
+ The transport instance to use for all client-server communication.
3186
+
3187
+ #### Returns
3188
+
3189
+ `void`
3190
+
3191
+ #### Inherited from
3192
+
3193
+ [`ClientTools`](ClientTools.md).[`setTransport`](ClientTools.md#settransport)
3194
+
3195
+ ***
3196
+
3197
+ ### unregister()
3198
+
3199
+ > `static` **unregister**(`name`): `undefined` \| [`ToolFunc`](ToolFunc.md)
3200
+
3201
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:547](https://github.com/isdk/ai-tool.js/blob/4ebf370aaec9c78535cb40ffc19656d7bddcb145/src/tool-func.ts#L547)
3202
+
3203
+ Unregisters a function by its name, also removing any associated aliases.
3204
+
3205
+ #### Parameters
3206
+
3207
+ ##### name
3208
+
3209
+ `string`
3210
+
3211
+ The name of the function to unregister.
3212
+
3213
+ #### Returns
3214
+
3215
+ `undefined` \| [`ToolFunc`](ToolFunc.md)
3216
+
3217
+ The unregistered `ToolFunc` instance, or `undefined` if it was not found.
3218
+
3219
+ #### Inherited from
3220
+
3221
+ [`ClientTools`](ClientTools.md).[`unregister`](ClientTools.md#unregister-2)
3222
+
3223
+ ***
3224
+
3225
+ ### values()
3226
+
3227
+ #### Call Signature
3228
+
3229
+ > `static` **values**\<`T`\>(`o`): `T`[]
3230
+
3231
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:24
3232
+
3233
+ Returns an array of values of the enumerable own properties of an object
3234
+
3235
+ ##### Type Parameters
3236
+
3237
+ • **T**
3238
+
3239
+ ##### Parameters
3240
+
3241
+ ###### o
3242
+
3243
+ Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
3244
+
3245
+ \{\} | `ArrayLike`\<`T`\>
3246
+
3247
+ ##### Returns
3248
+
3249
+ `T`[]
3250
+
3251
+ ##### Inherited from
3252
+
3253
+ [`ClientTools`](ClientTools.md).[`values`](ClientTools.md#values)
3254
+
3255
+ #### Call Signature
3256
+
3257
+ > `static` **values**(`o`): `any`[]
3258
+
3259
+ Defined in: @isdk/ai-tools/node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:30
3260
+
3261
+ Returns an array of values of the enumerable own properties of an object
3262
+
3263
+ ##### Parameters
3264
+
3265
+ ###### o
3266
+
3267
+ Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
3268
+
3269
+ ##### Returns
3270
+
3271
+ `any`[]
3272
+
3273
+ ##### Inherited from
3274
+
3275
+ [`ClientTools`](ClientTools.md).[`values`](ClientTools.md#values)