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