@isdk/ai-tool 0.8.0 → 0.8.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 (287) hide show
  1. package/docs/api/classes/BinarySemaphore.md +25 -25
  2. package/docs/api/classes/CancelableAbility.md +25 -25
  3. package/docs/api/classes/ClientToolTransport.md +12 -12
  4. package/docs/api/classes/ClientTools.md +61 -61
  5. package/docs/api/classes/EventClient.md +88 -88
  6. package/docs/api/classes/EventServer.md +83 -83
  7. package/docs/api/classes/EventToolFunc.md +52 -52
  8. package/docs/api/classes/FewShotPromptTemplate.md +11 -11
  9. package/docs/api/classes/HttpClientToolTransport.md +13 -13
  10. package/docs/api/classes/HttpServerToolTransport.md +15 -15
  11. package/docs/api/classes/IntSet.md +12 -12
  12. package/docs/api/classes/PromptExampleSelector.md +9 -9
  13. package/docs/api/classes/ReadableStreamError.md +2 -2
  14. package/docs/api/classes/ResClientTools.md +68 -68
  15. package/docs/api/classes/ResServerTools.md +69 -69
  16. package/docs/api/classes/RpcMethodsClientTool.md +63 -63
  17. package/docs/api/classes/RpcMethodsServerTool.md +64 -64
  18. package/docs/api/classes/SSEChannel.md +19 -19
  19. package/docs/api/classes/Semaphore.md +26 -26
  20. package/docs/api/classes/ServerToolTransport.md +13 -13
  21. package/docs/api/classes/ServerTools.md +57 -57
  22. package/docs/api/classes/SignalGate.md +9 -9
  23. package/docs/api/classes/SseClientPubSubTransport.md +4 -4
  24. package/docs/api/classes/SseServerPubSubTransport.md +10 -10
  25. package/docs/api/classes/TaskAbortController.md +8 -8
  26. package/docs/api/classes/ToolFunc.md +50 -50
  27. package/docs/api/classes/ToolTransport.md +7 -7
  28. package/docs/api/classes/YamlTypeBaseObject.md +2 -2
  29. package/docs/api/enumerations/AsyncFeatureBits.md +4 -4
  30. package/docs/api/enumerations/AsyncFeatures.md +4 -4
  31. package/docs/api/enumerations/HashAlgorithm.md +12 -12
  32. package/docs/api/functions/AIArgProcessor.md +1 -1
  33. package/docs/api/functions/AIStream.md +1 -1
  34. package/docs/api/functions/ChoiceArgProcessor.md +1 -1
  35. package/docs/api/functions/DefaultDateFormat.md +1 -1
  36. package/docs/api/functions/ObjectArgsToArgsInfo.md +1 -1
  37. package/docs/api/functions/RateLimit.md +1 -1
  38. package/docs/api/functions/TemplateArgProcessor.md +1 -1
  39. package/docs/api/functions/assignDirs.md +1 -1
  40. package/docs/api/functions/beforeShutdown.md +1 -1
  41. package/docs/api/functions/calcPerplexity.md +1 -1
  42. package/docs/api/functions/calcPerplexitySimple.md +1 -1
  43. package/docs/api/functions/completeSentences.md +1 -1
  44. package/docs/api/functions/concatText.md +1 -1
  45. package/docs/api/functions/countLLMTokens.md +1 -1
  46. package/docs/api/functions/countRegexMatches.md +1 -1
  47. package/docs/api/functions/createCallbacksTransformer.md +1 -1
  48. package/docs/api/functions/createEmptyReadableStream.md +1 -1
  49. package/docs/api/functions/createEndWithRepetitionDetector.md +1 -1
  50. package/docs/api/functions/createEventStreamTransformer.md +1 -1
  51. package/docs/api/functions/createLRUCache.md +1 -1
  52. package/docs/api/functions/createYamlObjectTag.md +1 -1
  53. package/docs/api/functions/dateToText.md +1 -1
  54. package/docs/api/functions/decodeCharset.md +1 -1
  55. package/docs/api/functions/defaultsWithConcat.md +1 -1
  56. package/docs/api/functions/detectCharset.md +1 -1
  57. package/docs/api/functions/encodeLLMTokens.md +1 -1
  58. package/docs/api/functions/ensureQuoted.md +1 -1
  59. package/docs/api/functions/expandConfig.md +1 -1
  60. package/docs/api/functions/expandPath.md +1 -1
  61. package/docs/api/functions/expandPathInObject.md +1 -1
  62. package/docs/api/functions/expandPaths.md +1 -1
  63. package/docs/api/functions/fileIsExists.md +1 -1
  64. package/docs/api/functions/filterValidFnScope.md +1 -1
  65. package/docs/api/functions/findIndexNonEmptyFrom.md +1 -1
  66. package/docs/api/functions/findPort.md +1 -1
  67. package/docs/api/functions/formatTextWithSpace.md +1 -1
  68. package/docs/api/functions/funcGetMeta.md +1 -1
  69. package/docs/api/functions/funcWithMeta.md +1 -1
  70. package/docs/api/functions/genUrlParamsStr.md +1 -1
  71. package/docs/api/functions/getAllEnumKeys.md +1 -1
  72. package/docs/api/functions/getConfigFileNames.md +1 -1
  73. package/docs/api/functions/getConfigs.md +1 -1
  74. package/docs/api/functions/getFileMetaInfo.md +1 -1
  75. package/docs/api/functions/getHashAlgoBySize.md +1 -1
  76. package/docs/api/functions/getKeysPath.md +1 -1
  77. package/docs/api/functions/getLLMTokenizer.md +1 -1
  78. package/docs/api/functions/getPackageDir.md +1 -1
  79. package/docs/api/functions/getRealFilepath.md +1 -1
  80. package/docs/api/functions/getResponseErrorReadableStream.md +1 -1
  81. package/docs/api/functions/getXDGConfigs.md +1 -1
  82. package/docs/api/functions/hasDirectoryIn.md +1 -1
  83. package/docs/api/functions/hash.md +1 -1
  84. package/docs/api/functions/hashFile.md +1 -1
  85. package/docs/api/functions/hashObject.md +1 -1
  86. package/docs/api/functions/hashStream.md +1 -1
  87. package/docs/api/functions/initShutdown.md +1 -1
  88. package/docs/api/functions/isLangUsingSpaces.md +1 -1
  89. package/docs/api/functions/isListItemString.md +1 -1
  90. package/docs/api/functions/isModelNameMatched.md +1 -1
  91. package/docs/api/functions/isPunctuationChar.md +1 -1
  92. package/docs/api/functions/isQuoted.md +1 -1
  93. package/docs/api/functions/isRegExp.md +1 -1
  94. package/docs/api/functions/isSameString.md +1 -1
  95. package/docs/api/functions/isSectionString.md +1 -1
  96. package/docs/api/functions/isSentenceEnding.md +1 -1
  97. package/docs/api/functions/isSepLineString.md +1 -1
  98. package/docs/api/functions/isStrWrapped.md +1 -1
  99. package/docs/api/functions/isSubdirectory.md +1 -1
  100. package/docs/api/functions/isTitleString.md +1 -1
  101. package/docs/api/functions/isWebStream.md +1 -1
  102. package/docs/api/functions/joinSplitWords.md +1 -1
  103. package/docs/api/functions/jsonFilterToWhere.md +1 -1
  104. package/docs/api/functions/jsonToMarkdownStr.md +1 -1
  105. package/docs/api/functions/loadAIConfig.md +1 -1
  106. package/docs/api/functions/loadConfig.md +1 -1
  107. package/docs/api/functions/loadConfigFile.md +1 -1
  108. package/docs/api/functions/loadFileFromPaths.md +1 -1
  109. package/docs/api/functions/loadTextFromPaths.md +1 -1
  110. package/docs/api/functions/lrucache.md +1 -1
  111. package/docs/api/functions/matchUrlProtocol.md +1 -1
  112. package/docs/api/functions/memoize.md +1 -1
  113. package/docs/api/functions/mergeArray.md +1 -1
  114. package/docs/api/functions/messagesToText.md +1 -1
  115. package/docs/api/functions/normalizePath.md +1 -1
  116. package/docs/api/functions/paramsSizeToScaleStr.md +1 -1
  117. package/docs/api/functions/parseCommand.md +1 -1
  118. package/docs/api/functions/parseJsJson.md +1 -1
  119. package/docs/api/functions/parseJsJsonSimpleSync.md +1 -1
  120. package/docs/api/functions/parseObjectArgInfo.md +1 -1
  121. package/docs/api/functions/parseObjectArgumentInfos.md +1 -1
  122. package/docs/api/functions/parseObjectArguments.md +1 -1
  123. package/docs/api/functions/parseObjectArgumentsAsArgInfos.md +1 -1
  124. package/docs/api/functions/pruneSubdirectories.md +1 -1
  125. package/docs/api/functions/pruneSubdirectoriesInPlace.md +1 -1
  126. package/docs/api/functions/quoteStr.md +1 -1
  127. package/docs/api/functions/readFilenamesRecursiveSync.md +1 -1
  128. package/docs/api/functions/readTextFileChunks.md +1 -1
  129. package/docs/api/functions/readTextFileChunksEx.md +1 -1
  130. package/docs/api/functions/readableFromAsyncIterable.md +1 -1
  131. package/docs/api/functions/registerCoreTools.md +1 -1
  132. package/docs/api/functions/removeMarkdownBold.md +1 -1
  133. package/docs/api/functions/removeMarkdownBoldAndItalic.md +1 -1
  134. package/docs/api/functions/removeMarkdownItalic.md +1 -1
  135. package/docs/api/functions/replaceWithPlaceholder.md +1 -1
  136. package/docs/api/functions/restoreFromPlacehoders.md +1 -1
  137. package/docs/api/functions/saveConfigFile.md +1 -1
  138. package/docs/api/functions/scaleStrToParamsSize.md +1 -1
  139. package/docs/api/functions/shutdown.md +1 -1
  140. package/docs/api/functions/simplifyObjectArguments.md +1 -1
  141. package/docs/api/functions/sleep.md +1 -1
  142. package/docs/api/functions/sortedValues.md +1 -1
  143. package/docs/api/functions/splitChunks.md +1 -1
  144. package/docs/api/functions/splitParagraph.md +1 -1
  145. package/docs/api/functions/splitSentence.md +1 -1
  146. package/docs/api/functions/splitWords.md +1 -1
  147. package/docs/api/functions/stripConsoleColor.md +1 -1
  148. package/docs/api/functions/textToDate.md +1 -1
  149. package/docs/api/functions/toDateTime.md +1 -1
  150. package/docs/api/functions/trimStartOfStreamHelper.md +1 -1
  151. package/docs/api/functions/truncTo.md +1 -1
  152. package/docs/api/functions/truncateByToken.md +1 -1
  153. package/docs/api/functions/truncateToTokenLimit.md +1 -1
  154. package/docs/api/functions/truncateToTokenLimitEx.md +1 -1
  155. package/docs/api/functions/uuid.md +1 -1
  156. package/docs/api/functions/xxhash.md +1 -1
  157. package/docs/api/functions/xxhash32.md +1 -1
  158. package/docs/api/functions/xxhash64.md +1 -1
  159. package/docs/api/functions/xxhashAsStr.md +1 -1
  160. package/docs/api/functions/yieldExec.md +1 -1
  161. package/docs/api/interfaces/AIChatAssistantMessageParam.md +12 -12
  162. package/docs/api/interfaces/AIChatContentPartImage.md +3 -3
  163. package/docs/api/interfaces/AIChatContentPartText.md +3 -3
  164. package/docs/api/interfaces/AIChatMessageParamBase.md +7 -7
  165. package/docs/api/interfaces/AIChatMessageToolCall.md +4 -4
  166. package/docs/api/interfaces/AIChatSystemMessageParam.md +9 -9
  167. package/docs/api/interfaces/AIChatToolChoiceFuncObject.md +3 -3
  168. package/docs/api/interfaces/AIChatToolChoiceObject.md +2 -2
  169. package/docs/api/interfaces/AIChatToolFunc.md +5 -5
  170. package/docs/api/interfaces/AIChatToolFuncParam.md +3 -3
  171. package/docs/api/interfaces/AIChatToolMessageParam.md +10 -10
  172. package/docs/api/interfaces/AIChatToolParam.md +2 -2
  173. package/docs/api/interfaces/AIChatToolTypeObject.md +2 -2
  174. package/docs/api/interfaces/AIChatUserMessageParam.md +13 -13
  175. package/docs/api/interfaces/AIChoiceConfig.md +8 -8
  176. package/docs/api/interfaces/AIResult.md +6 -6
  177. package/docs/api/interfaces/AIStreamParser.md +2 -2
  178. package/docs/api/interfaces/AIStreamParserOptions.md +2 -2
  179. package/docs/api/interfaces/BaseFunc.md +15 -15
  180. package/docs/api/interfaces/BaseFuncItem.md +14 -14
  181. package/docs/api/interfaces/BinarySemaphoreAcquireOptions.md +2 -2
  182. package/docs/api/interfaces/BinarySemaphoreOptions.md +5 -5
  183. package/docs/api/interfaces/BinarySemaphoreReleaseOptions.md +2 -2
  184. package/docs/api/interfaces/BinarySemaphoreReleaserFunc.md +3 -3
  185. package/docs/api/interfaces/CancelableAbilityOptions.md +4 -4
  186. package/docs/api/interfaces/ClientFuncItem.md +17 -17
  187. package/docs/api/interfaces/EventClientFuncParams.md +5 -5
  188. package/docs/api/interfaces/EventServerFuncParams.md +7 -7
  189. package/docs/api/interfaces/FewShotPromptTemplateOptions.md +6 -6
  190. package/docs/api/interfaces/FuncItem.md +15 -15
  191. package/docs/api/interfaces/FuncParam.md +5 -5
  192. package/docs/api/interfaces/FuncParams.md +1 -1
  193. package/docs/api/interfaces/Funcs.md +1 -1
  194. package/docs/api/interfaces/HashAlgoParams.md +4 -4
  195. package/docs/api/interfaces/IClientToolTransport.md +7 -7
  196. package/docs/api/interfaces/IFileMetaInfo.md +8 -8
  197. package/docs/api/interfaces/IPubSubClientTransport.md +4 -4
  198. package/docs/api/interfaces/IPubSubServerTransport.md +11 -11
  199. package/docs/api/interfaces/IReadTextFileChunksOptions.md +11 -11
  200. package/docs/api/interfaces/IServerToolTransport.md +8 -8
  201. package/docs/api/interfaces/IToolTransport.md +5 -5
  202. package/docs/api/interfaces/ITruncateToTokenLimitOptions.md +10 -10
  203. package/docs/api/interfaces/JsonFilter.md +1 -1
  204. package/docs/api/interfaces/ParseObjectArgumentOptions.md +11 -11
  205. package/docs/api/interfaces/ProbabilityItem.md +4 -4
  206. package/docs/api/interfaces/PromptExampleSelectorOptions.md +3 -3
  207. package/docs/api/interfaces/PubSubClientStream.md +10 -10
  208. package/docs/api/interfaces/PubSubServerSession.md +7 -7
  209. package/docs/api/interfaces/RemoteFuncItem.md +17 -17
  210. package/docs/api/interfaces/ReplacePlacehoderOptions.md +5 -5
  211. package/docs/api/interfaces/ResClientFuncParams.md +3 -3
  212. package/docs/api/interfaces/ResServerFuncParams.md +6 -6
  213. package/docs/api/interfaces/RpcMethodsClientFuncParams.md +2 -2
  214. package/docs/api/interfaces/RpcMethodsServerFuncParams.md +4 -4
  215. package/docs/api/interfaces/SectionStringOptions.md +3 -3
  216. package/docs/api/interfaces/SemaphoreOptions.md +7 -7
  217. package/docs/api/interfaces/SemaphoreTaskItem.md +5 -5
  218. package/docs/api/interfaces/ServerFuncItem.md +18 -18
  219. package/docs/api/interfaces/ServerFuncParams.md +3 -3
  220. package/docs/api/interfaces/SplitSentenceOptions.md +5 -5
  221. package/docs/api/interfaces/StreamCallbacksAndOptions.md +5 -5
  222. package/docs/api/interfaces/TaskAbortControllers.md +1 -1
  223. package/docs/api/interfaces/TaskPromise.md +2 -2
  224. package/docs/api/interfaces/ToolFuncPackage.md +4 -4
  225. package/docs/api/type-aliases/AIChatContentPart.md +1 -1
  226. package/docs/api/type-aliases/AIChatMessageParam.md +1 -1
  227. package/docs/api/type-aliases/AIChatRole.md +1 -1
  228. package/docs/api/type-aliases/AIChatToolChoiceParam.md +1 -1
  229. package/docs/api/type-aliases/AIMessageType.md +1 -1
  230. package/docs/api/type-aliases/AIModelNameRule.md +1 -1
  231. package/docs/api/type-aliases/AIModelNameRuleFn.md +1 -1
  232. package/docs/api/type-aliases/AIModelNameRules.md +1 -1
  233. package/docs/api/type-aliases/AITextGenerationFinishReason.md +1 -1
  234. package/docs/api/type-aliases/ActionName.md +1 -1
  235. package/docs/api/type-aliases/ArrayMergeWay.md +1 -1
  236. package/docs/api/type-aliases/AsyncTaskId.md +1 -1
  237. package/docs/api/type-aliases/BeforeShutdownListener.md +1 -1
  238. package/docs/api/type-aliases/EventErrorListenerFn.md +1 -1
  239. package/docs/api/type-aliases/EventListenerFn.md +1 -1
  240. package/docs/api/type-aliases/FuncParamType.md +1 -1
  241. package/docs/api/type-aliases/PromptExamples.md +1 -1
  242. package/docs/api/type-aliases/PubSubClientId.md +1 -1
  243. package/docs/api/type-aliases/PubSubCtx.md +6 -6
  244. package/docs/api/type-aliases/RpcMethodHandler.md +1 -1
  245. package/docs/api/type-aliases/SSEClient.md +5 -5
  246. package/docs/api/type-aliases/SemaphoreIsReadyFuncType.md +1 -1
  247. package/docs/api/type-aliases/TFunc.md +1 -1
  248. package/docs/api/type-aliases/UUIDVersions.md +1 -1
  249. package/docs/api/variables/AIChatRoles.md +1 -1
  250. package/docs/api/variables/AIMessageTypes.md +1 -1
  251. package/docs/api/variables/AITextGenerationFinishReasons.md +1 -1
  252. package/docs/api/variables/ActionNames.md +1 -1
  253. package/docs/api/variables/ArrayMergeWay.md +1 -1
  254. package/docs/api/variables/ArrayMergeWaySymbol.md +1 -1
  255. package/docs/api/variables/ClientEventPrefix.md +1 -1
  256. package/docs/api/variables/ClientToolFuncSchema.md +1 -1
  257. package/docs/api/variables/DEFAULT_CONFIG_NAME.md +1 -1
  258. package/docs/api/variables/DefaultAsyncSemaphoreCapacity.md +1 -1
  259. package/docs/api/variables/EventBusName.md +1 -1
  260. package/docs/api/variables/EventName.md +1 -1
  261. package/docs/api/variables/FuncMetaSymbol.md +1 -1
  262. package/docs/api/variables/LLM_TOKENIZER_NAMES.md +1 -1
  263. package/docs/api/variables/LLM_TOKENIZER_NAMES_MAP.md +1 -1
  264. package/docs/api/variables/PASSING_SCORE.md +1 -1
  265. package/docs/api/variables/RStreamErrCode.md +1 -1
  266. package/docs/api/variables/RemoteToolFuncSchema.md +1 -1
  267. package/docs/api/variables/ResponseRStreamErrCode.md +1 -1
  268. package/docs/api/variables/RpcMethodsClientToolSchema.md +1 -1
  269. package/docs/api/variables/RpcMethodsServerToolSchema.md +1 -1
  270. package/docs/api/variables/SHUTDOWN_SIGNALS.md +1 -1
  271. package/docs/api/variables/SSEChannelAlreadyClosedErrCode.md +1 -1
  272. package/docs/api/variables/SecondaryCache.md +1 -1
  273. package/docs/api/variables/ServerToolFuncSchema.md +1 -1
  274. package/docs/api/variables/StrangeHumanName.md +1 -1
  275. package/docs/api/variables/ToolAsyncCancelableBit.md +1 -1
  276. package/docs/api/variables/ToolAsyncMultiTaskBit.md +1 -1
  277. package/docs/api/variables/ToolAsyncPriorityBit.md +1 -1
  278. package/docs/api/variables/ToolFuncSchema.md +1 -1
  279. package/docs/api/variables/backendEventable.md +1 -1
  280. package/docs/api/variables/base32768.md +1 -1
  281. package/docs/api/variables/event.md +1 -1
  282. package/docs/api/variables/eventClient.md +1 -1
  283. package/docs/api/variables/eventServer.md +1 -1
  284. package/docs/api/variables/lrucache.md +1 -1
  285. package/docs/api/variables/makeToolFuncCancelable.md +1 -1
  286. package/docs/api/variables/wait.md +1 -1
  287. package/package.json +3 -3
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: EventToolFunc
8
8
 
9
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:6](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/funcs/event.ts#L6)
9
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:6](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/funcs/event.ts#L6)
10
10
 
11
11
  A manager for creating, registering, and executing reusable tool functions.
12
12
 
@@ -77,7 +77,7 @@ main();
77
77
 
78
78
  > **new EventToolFunc**(`name`, `options?`): `EventToolFunc`
79
79
 
80
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:571](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L571)
80
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:571](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L571)
81
81
 
82
82
  Initializes a new `ToolFunc` instance.
83
83
 
@@ -109,7 +109,7 @@ Configuration options if not provided in the first argument.
109
109
 
110
110
  > **\_emitter**: [`EventEmitter`](EventEmitter.md)
111
111
 
112
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:7](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/funcs/event.ts#L7)
112
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:7](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/funcs/event.ts#L7)
113
113
 
114
114
  ***
115
115
 
@@ -129,7 +129,7 @@ Defined in: [property-manager.js/src/advance.d.ts:5](https://github.com/snowyu/p
129
129
 
130
130
  > `optional` **alias**: `string` \| `string`[]
131
131
 
132
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:130](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L130)
132
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:130](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L130)
133
133
 
134
134
  Optional aliases for the function name.
135
135
 
@@ -143,7 +143,7 @@ Optional aliases for the function name.
143
143
 
144
144
  > `optional` **asyncFeatures**: `number`
145
145
 
146
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:144](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L144)
146
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:144](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L144)
147
147
 
148
148
  A bitmask representing asynchronous features supported by the function, built from `AsyncFeatureBits`.
149
149
  This allows the system to understand if a function supports capabilities like cancellation or multi-tasking.
@@ -209,7 +209,7 @@ The default options for export and assign
209
209
 
210
210
  > `optional` **depends**: `object`
211
211
 
212
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:167](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L167)
212
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:167](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L167)
213
213
 
214
214
  A map of dependencies this function has on other tool functions.
215
215
  Declaring dependencies ensures that they are automatically registered when this function is registered.
@@ -248,7 +248,7 @@ mainFunc.register();
248
248
 
249
249
  > **description**: `string` = `'Return event bus'`
250
250
 
251
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:9](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/funcs/event.ts#L9)
251
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:9](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/funcs/event.ts#L9)
252
252
 
253
253
  A detailed description of what the function does.
254
254
 
@@ -262,7 +262,7 @@ A detailed description of what the function does.
262
262
 
263
263
  > `optional` **isApi**: `boolean`
264
264
 
265
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:119](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L119)
265
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:119](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L119)
266
266
 
267
267
  If true, indicates that this function should be treated as a server-side API.
268
268
 
@@ -276,7 +276,7 @@ If true, indicates that this function should be treated as a server-side API.
276
276
 
277
277
  > `optional` **name**: `string`
278
278
 
279
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:76](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L76)
279
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:76](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L76)
280
280
 
281
281
  The unique name of the function.
282
282
 
@@ -304,7 +304,7 @@ the property with the default prefix '$' will not be exported.
304
304
 
305
305
  > `optional` **params**: [`FuncParams`](../interfaces/FuncParams.md) \| [`FuncParam`](../interfaces/FuncParam.md)[]
306
306
 
307
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:81](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L81)
307
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:81](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L81)
308
308
 
309
309
  Parameter definitions, which can be an object mapping names to definitions or an array for positional parameters.
310
310
 
@@ -318,7 +318,7 @@ Parameter definitions, which can be an object mapping names to definitions or an
318
318
 
319
319
  > **result**: `string` = `'event'`
320
320
 
321
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:10](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/funcs/event.ts#L10)
321
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:10](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/funcs/event.ts#L10)
322
322
 
323
323
  The expected return type of the function, described as a string or a JSON schema object.
324
324
 
@@ -332,7 +332,7 @@ The expected return type of the function, described as a string or a JSON schema
332
332
 
333
333
  > `optional` **scope**: `any`
334
334
 
335
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:91](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L91)
335
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:91](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L91)
336
336
 
337
337
  The execution scope or context (`this`) for the function.
338
338
 
@@ -346,7 +346,7 @@ The execution scope or context (`this`) for the function.
346
346
 
347
347
  > `optional` **setup**: (`this`, `options?`) => `void`
348
348
 
349
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:114](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L114)
349
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:114](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L114)
350
350
 
351
351
  A lifecycle hook called once during the `ToolFunc` instance's initialization.
352
352
  It allows for initial setup, state configuration, or property modification on the instance
@@ -392,7 +392,7 @@ console.log(myFunc.customState); // Outputs: 'configured'
392
392
 
393
393
  > `optional` **stream**: `boolean`
394
394
 
395
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:125](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L125)
395
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:125](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L125)
396
396
 
397
397
  If true, indicates that the function has the *capability* to stream its output.
398
398
  Whether a specific call is streamed is determined by a `stream` property in the runtime parameters.
@@ -407,7 +407,7 @@ Whether a specific call is streamed is determined by a `stream` property in the
407
407
 
408
408
  > `optional` **tags**: `string` \| `string`[]
409
409
 
410
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:96](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L96)
410
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:96](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L96)
411
411
 
412
412
  Tags for grouping or filtering functions.
413
413
 
@@ -421,7 +421,7 @@ Tags for grouping or filtering functions.
421
421
 
422
422
  > `optional` **title**: `string`
423
423
 
424
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:177](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L177)
424
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:177](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L177)
425
425
 
426
426
  A concise, human-readable title for the function, often used in UI or by AI.
427
427
 
@@ -435,7 +435,7 @@ A concise, human-readable title for the function, often used in UI or by AI.
435
435
 
436
436
  > `static` **aliases**: `object` = `{}`
437
437
 
438
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:305](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L305)
438
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:305](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L305)
439
439
 
440
440
  A static map of aliases to their corresponding function names.
441
441
 
@@ -453,7 +453,7 @@ A static map of aliases to their corresponding function names.
453
453
 
454
454
  > `static` **dataPath**: `string`
455
455
 
456
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:312](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L312)
456
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:312](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L312)
457
457
 
458
458
  A conventional property to designate a file path for saving the registered `ToolFunc` data.
459
459
  Note: The `ToolFunc` class itself does not implement persistence logic. It is up to the
@@ -469,7 +469,7 @@ developer to use this path to save and load the `ToolFunc.items` registry if nee
469
469
 
470
470
  > `static` **items**: [`Funcs`](../interfaces/Funcs.md) = `{}`
471
471
 
472
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:300](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L300)
472
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:300](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L300)
473
473
 
474
474
  A static registry of all `ToolFunc` instances, indexed by name.
475
475
 
@@ -485,7 +485,7 @@ A static registry of all `ToolFunc` instances, indexed by name.
485
485
 
486
486
  > **get** **emitter**(): [`EventEmitter`](EventEmitter.md)
487
487
 
488
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:12](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/funcs/event.ts#L12)
488
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:12](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/funcs/event.ts#L12)
489
489
 
490
490
  ##### Returns
491
491
 
@@ -497,7 +497,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:12](https://gith
497
497
 
498
498
  > **arr2ObjParams**(`params`): `any`[]
499
499
 
500
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:629](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L629)
500
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:629](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L629)
501
501
 
502
502
  Converts an array of positional arguments into a named parameters object.
503
503
  This is used internally to support functions defined with named parameters.
@@ -808,7 +808,7 @@ the dest object.
808
808
 
809
809
  > **func**(): [`EventEmitter`](EventEmitter.md)
810
810
 
811
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:16](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/funcs/event.ts#L16)
811
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/funcs/event.ts:16](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/funcs/event.ts#L16)
812
812
 
813
813
  The actual function implementation.
814
814
 
@@ -828,7 +828,7 @@ The result of the function.
828
828
 
829
829
  > **getFunc**(`name?`): `any`
830
830
 
831
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:720](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L720)
831
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:720](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L720)
832
832
 
833
833
  Gets a bound function reference for execution with named parameters.
834
834
  If a name is provided, it retrieves a different function from the registry.
@@ -858,7 +858,7 @@ A function reference or `undefined` if not found.
858
858
 
859
859
  > **getFuncWithPos**(`name?`): `any`
860
860
 
861
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:777](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L777)
861
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:777](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L777)
862
862
 
863
863
  Gets a bound function reference suitable for positional argument execution.
864
864
  If a name is provided, it retrieves a different function from the registry.
@@ -908,7 +908,7 @@ the descriptors of properties object
908
908
 
909
909
  > **hasAsyncFeature**(`feature`): `boolean`
910
910
 
911
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:787](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L787)
911
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:787](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L787)
912
912
 
913
913
  Checks if the current function instance supports a specific async feature.
914
914
 
@@ -1044,7 +1044,7 @@ The source object
1044
1044
 
1045
1045
  > **isStream**(`params`): `undefined` \| `boolean`
1046
1046
 
1047
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:805](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L805)
1047
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:805](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L805)
1048
1048
 
1049
1049
  Determines if a function call should produce a stream.
1050
1050
 
@@ -1110,7 +1110,7 @@ the dest object.
1110
1110
 
1111
1111
  > **obj2ArrParams**(`params?`): `any`[]
1112
1112
 
1113
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:648](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L648)
1113
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:648](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L648)
1114
1114
 
1115
1115
  Converts a named parameters object into an array of positional arguments.
1116
1116
  This is used for functions defined with positional parameters.
@@ -1165,7 +1165,7 @@ A property name.
1165
1165
 
1166
1166
  > **register**(): `boolean` \| [`ToolFunc`](ToolFunc.md)
1167
1167
 
1168
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:602](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L602)
1168
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:602](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L602)
1169
1169
 
1170
1170
  Registers the current `ToolFunc` instance into the static registry.
1171
1171
  Also registers any declared dependencies.
@@ -1186,7 +1186,7 @@ The instance itself upon successful registration, or `false` if it already exist
1186
1186
 
1187
1187
  > **run**(`params?`): `Promise`\<`any`\>
1188
1188
 
1189
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:686](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L686)
1189
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:686](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L686)
1190
1190
 
1191
1191
  Executes the function asynchronously with a named parameters object.
1192
1192
 
@@ -1214,7 +1214,7 @@ A promise that resolves with the function's result.
1214
1214
 
1215
1215
  > **runAs**(`name`, `params?`): `Promise`\<`any`\>
1216
1216
 
1217
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:697](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L697)
1217
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:697](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L697)
1218
1218
 
1219
1219
  Asynchronously executes another registered function by name.
1220
1220
  This method delegates to `runAsSync()` internally.
@@ -1249,7 +1249,7 @@ A promise that resolves with the result of the function execution.
1249
1249
 
1250
1250
  > **runAsSync**(`name`, `params?`): `any`
1251
1251
 
1252
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:708](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L708)
1252
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:708](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L708)
1253
1253
 
1254
1254
  Synchronously executes another registered function by name.
1255
1255
  This is a convenience method that forwards the call to the static `runSync()` method.
@@ -1284,7 +1284,7 @@ The result of the function execution.
1284
1284
 
1285
1285
  > **runSync**(`params?`): `any`
1286
1286
 
1287
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:667](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L667)
1287
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:667](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L667)
1288
1288
 
1289
1289
  Executes the function synchronously with a named parameters object.
1290
1290
 
@@ -1316,7 +1316,7 @@ Will throw an error if an array of parameters is passed to a function that expec
1316
1316
 
1317
1317
  > **runWithPos**(...`params`): `Promise`\<`any`\>
1318
1318
 
1319
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:755](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L755)
1319
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:755](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L755)
1320
1320
 
1321
1321
  Executes the function asynchronously using positional arguments.
1322
1322
  Delegates to `runWithPosSync()` internally.
@@ -1345,7 +1345,7 @@ A promise that resolves with the result of the function execution.
1345
1345
 
1346
1346
  > **runWithPosAs**(`name`, ...`params`): `Promise`\<`any`\>
1347
1347
 
1348
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:766](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L766)
1348
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:766](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L766)
1349
1349
 
1350
1350
  Asynchronously executes another function by name using positional arguments.
1351
1351
  Delegates to `runWithPosAsSync()` internally.
@@ -1380,7 +1380,7 @@ A promise that resolves with the result of the function execution.
1380
1380
 
1381
1381
  > **runWithPosAsSync**(`name`, ...`params`): `any`
1382
1382
 
1383
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:745](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L745)
1383
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:745](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L745)
1384
1384
 
1385
1385
  Synchronously executes another function by name using positional arguments.
1386
1386
  This is a convenience wrapper around the static `runWithPosSync()` method.
@@ -1415,7 +1415,7 @@ The result of the function execution.
1415
1415
 
1416
1416
  > **runWithPosSync**(...`params`): `any`
1417
1417
 
1418
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:731](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L731)
1418
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:731](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L731)
1419
1419
 
1420
1420
  Executes the function synchronously using positional arguments.
1421
1421
  If the function expects named parameters, it converts the arguments automatically.
@@ -1522,7 +1522,7 @@ Returns a string representation of an object.
1522
1522
 
1523
1523
  > **unregister**(): `any`
1524
1524
 
1525
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:619](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L619)
1525
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:619](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L619)
1526
1526
 
1527
1527
  Removes the current `ToolFunc` instance from the static registry.
1528
1528
 
@@ -2094,7 +2094,7 @@ An iterable object that contains key-value entries for properties and methods.
2094
2094
 
2095
2095
  > `static` **get**(`name`): [`ToolFunc`](ToolFunc.md)
2096
2096
 
2097
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:319](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L319)
2097
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:319](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L319)
2098
2098
 
2099
2099
  Retrieves a registered function by its name or alias.
2100
2100
 
@@ -2122,7 +2122,7 @@ The `ToolFunc` instance if found, otherwise `undefined`.
2122
2122
 
2123
2123
  > `static` **getAllByTag**(`tagName`): [`ToolFunc`](ToolFunc.md)[]
2124
2124
 
2125
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:365](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L365)
2125
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:365](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L365)
2126
2126
 
2127
2127
  Retrieves all registered functions that have a specific tag.
2128
2128
 
@@ -2150,7 +2150,7 @@ An array of matching `ToolFunc` instances.
2150
2150
 
2151
2151
  > `static` **getByTag**(`tagName`): `undefined` \| [`ToolFunc`](ToolFunc.md)
2152
2152
 
2153
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:340](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L340)
2153
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:340](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L340)
2154
2154
 
2155
2155
  Finds the first registered function that has a specific tag.
2156
2156
 
@@ -2178,7 +2178,7 @@ The first matching `ToolFunc` instance, or `undefined` if none is found.
2178
2178
 
2179
2179
  > `static` **getFunc**(`name`): `any`
2180
2180
 
2181
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:431](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L431)
2181
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:431](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L431)
2182
2182
 
2183
2183
  Retrieves a bound, runnable function reference for a registered function.
2184
2184
  This reference is suitable for execution with an object of named parameters.
@@ -2207,7 +2207,7 @@ A bound function reference, or `undefined` if not found.
2207
2207
 
2208
2208
  > `static` **getFuncWithPos**(`name`): `any`
2209
2209
 
2210
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:472](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L472)
2210
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:472](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L472)
2211
2211
 
2212
2212
  Retrieves a bound, runnable function reference for a registered function.
2213
2213
  This reference is suitable for execution with positional arguments.
@@ -2398,7 +2398,7 @@ The object that references the prototype.
2398
2398
 
2399
2399
  > `static` **hasAsyncFeature**(`feature`): `boolean`
2400
2400
 
2401
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:388](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L388)
2401
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:388](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L388)
2402
2402
 
2403
2403
  Checks if any registered function has a specific asynchronous feature.
2404
2404
 
@@ -2618,7 +2618,7 @@ Object that contains the properties and methods. This can be an object that you
2618
2618
 
2619
2619
  > `static` **list**(): [`Funcs`](../interfaces/Funcs.md)
2620
2620
 
2621
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:331](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L331)
2621
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:331](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L331)
2622
2622
 
2623
2623
  Returns the complete map of all registered functions.
2624
2624
 
@@ -2672,7 +2672,7 @@ Object to make non-extensible.
2672
2672
 
2673
2673
  > `static` **register**(`name`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
2674
2674
 
2675
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:495](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L495)
2675
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:495](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L495)
2676
2676
 
2677
2677
  Registers a new tool function.
2678
2678
 
@@ -2704,7 +2704,7 @@ The new `ToolFunc` instance, or `false` if a function with that name already exi
2704
2704
 
2705
2705
  > `static` **register**(`func`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
2706
2706
 
2707
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:496](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L496)
2707
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:496](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L496)
2708
2708
 
2709
2709
  Registers a new tool function.
2710
2710
 
@@ -2736,7 +2736,7 @@ The new `ToolFunc` instance, or `false` if a function with that name already exi
2736
2736
 
2737
2737
  > `static` **register**(`name`, `options?`): `boolean` \| [`ToolFunc`](ToolFunc.md)
2738
2738
 
2739
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:497](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L497)
2739
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:497](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L497)
2740
2740
 
2741
2741
  Registers a new tool function.
2742
2742
 
@@ -2770,7 +2770,7 @@ The new `ToolFunc` instance, or `false` if a function with that name already exi
2770
2770
 
2771
2771
  > `static` **run**(`name`, `params?`): `Promise`\<`any`\>
2772
2772
 
2773
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:402](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L402)
2773
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:402](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L402)
2774
2774
 
2775
2775
  Asynchronously executes a registered function by name with named parameters.
2776
2776
 
@@ -2808,7 +2808,7 @@ If the function with the given name is not found.
2808
2808
 
2809
2809
  > `static` **runSync**(`name`, `params?`): `any`
2810
2810
 
2811
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:417](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L417)
2811
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:417](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L417)
2812
2812
 
2813
2813
  Synchronously executes a registered function by name with named parameters.
2814
2814
 
@@ -2846,7 +2846,7 @@ If the function with the given name is not found.
2846
2846
 
2847
2847
  > `static` **runWithPos**(`name`, ...`params`): `Promise`\<`any`\>
2848
2848
 
2849
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:443](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L443)
2849
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:443](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L443)
2850
2850
 
2851
2851
  Asynchronously executes a function using positional arguments.
2852
2852
 
@@ -2884,7 +2884,7 @@ If the function with the given name is not found.
2884
2884
 
2885
2885
  > `static` **runWithPosSync**(`name`, ...`params`): `any`
2886
2886
 
2887
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:458](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L458)
2887
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:458](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L458)
2888
2888
 
2889
2889
  Synchronously executes a function using positional arguments.
2890
2890
 
@@ -2986,7 +2986,7 @@ The value of the new prototype or null.
2986
2986
 
2987
2987
  > `static` **unregister**(`name`): `undefined` \| [`ToolFunc`](ToolFunc.md)
2988
2988
 
2989
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:547](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L547)
2989
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:547](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L547)
2990
2990
 
2991
2991
  Unregisters a function by its name, also removing any associated aliases.
2992
2992
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: FewShotPromptTemplate\<T\>
8
8
 
9
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:39](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/prompt/few-shot-prompt-template.ts#L39)
9
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:39](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/prompt/few-shot-prompt-template.ts#L39)
10
10
 
11
11
  The `StringTemplate` class is a versatile template engine that supports dynamic template creation,
12
12
  formatting, and partial data processing. It extends the `BaseFactory` class and provides methods
@@ -51,7 +51,7 @@ console.log(result); // Output: "Formatted: Hello World"
51
51
 
52
52
  > **new FewShotPromptTemplate**\<`T`\>(`options`): `FewShotPromptTemplate`\<`T`\>
53
53
 
54
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:50](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/prompt/few-shot-prompt-template.ts#L50)
54
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:50](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/prompt/few-shot-prompt-template.ts#L50)
55
55
 
56
56
  #### Parameters
57
57
 
@@ -101,7 +101,7 @@ Declares the data object used for template interpolation.
101
101
 
102
102
  > **examplePrompt**: `undefined` \| [`PromptTemplate`](PromptTemplate.md)
103
103
 
104
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:41](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/prompt/few-shot-prompt-template.ts#L41)
104
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:41](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/prompt/few-shot-prompt-template.ts#L41)
105
105
 
106
106
  ***
107
107
 
@@ -109,7 +109,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-te
109
109
 
110
110
  > **examples**: [`PromptExamples`](../type-aliases/PromptExamples.md)\<`T`\>
111
111
 
112
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:40](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/prompt/few-shot-prompt-template.ts#L40)
112
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:40](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/prompt/few-shot-prompt-template.ts#L40)
113
113
 
114
114
  ***
115
115
 
@@ -117,7 +117,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-te
117
117
 
118
118
  > **exampleSeparator**: `string`
119
119
 
120
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:43](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/prompt/few-shot-prompt-template.ts#L43)
120
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:43](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/prompt/few-shot-prompt-template.ts#L43)
121
121
 
122
122
  ***
123
123
 
@@ -139,7 +139,7 @@ Declares the list of input variables expected by the template.
139
139
 
140
140
  > **prefix**: `string`
141
141
 
142
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:44](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/prompt/few-shot-prompt-template.ts#L44)
142
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:44](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/prompt/few-shot-prompt-template.ts#L44)
143
143
 
144
144
  ***
145
145
 
@@ -147,7 +147,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-te
147
147
 
148
148
  > **suffix**: `string`
149
149
 
150
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:42](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/prompt/few-shot-prompt-template.ts#L42)
150
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:42](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/prompt/few-shot-prompt-template.ts#L42)
151
151
 
152
152
  ***
153
153
 
@@ -341,7 +341,7 @@ The Root Factory class
341
341
 
342
342
  > **\_format**(`data`): `Promise`\<`string`\>
343
343
 
344
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:69](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/prompt/few-shot-prompt-template.ts#L69)
344
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:69](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/prompt/few-shot-prompt-template.ts#L69)
345
345
 
346
346
  Placeholder method for formatting the template. Must be implemented by subclasses.
347
347
 
@@ -369,7 +369,7 @@ A formatted string or a promise resolving to the formatted string.
369
369
 
370
370
  > **\_initialize**(`options?`): `void`
371
371
 
372
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:54](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/prompt/few-shot-prompt-template.ts#L54)
372
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:54](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/prompt/few-shot-prompt-template.ts#L54)
373
373
 
374
374
  Placeholder method for initializing the template. Must be implemented by subclasses.
375
375
 
@@ -549,7 +549,7 @@ console.log(dateResult.date instanceof Date); // Output: true
549
549
 
550
550
  > **toJSON**(`options`): [`FewShotPromptTemplateOptions`](../interfaces/FewShotPromptTemplateOptions.md)\<`T`\>
551
551
 
552
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:94](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/prompt/few-shot-prompt-template.ts#L94)
552
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:94](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/prompt/few-shot-prompt-template.ts#L94)
553
553
 
554
554
  Serializes the `StringTemplate` instance into a JSON-compatible object.
555
555
 
@@ -918,7 +918,7 @@ the name to register
918
918
 
919
919
  > `static` **from**\<`T`\>(`options`): `FewShotPromptTemplate`\<`T`\>
920
920
 
921
- Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:46](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/prompt/few-shot-prompt-template.ts#L46)
921
+ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:46](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/prompt/few-shot-prompt-template.ts#L46)
922
922
 
923
923
  Creates a new instance of the `StringTemplate` class.
924
924