@isdk/ai-tool 0.7.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-4FKBOPZI.mjs +1 -0
- package/dist/{chunk-VIG2GB47.mjs → chunk-TGTHY57V.mjs} +1 -1
- package/dist/funcs.d.mts +1 -2
- package/dist/funcs.d.ts +1 -2
- package/dist/funcs.js +1 -1
- package/dist/funcs.mjs +1 -1
- package/dist/{index-DEUnmyUq.d.mts → index-BLW3R7VS.d.mts} +103 -69
- package/dist/{index-DEUnmyUq.d.ts → index-BLW3R7VS.d.ts} +103 -69
- package/dist/index.d.mts +100 -37
- package/dist/index.d.ts +100 -37
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/test/util.js +1 -1
- package/dist/test/util.mjs +1 -1
- package/docs/api/{namespaces → @isdk/namespaces}/EventStates/README.md +2 -2
- package/docs/api/{namespaces → @isdk/namespaces}/EventStates/variables/ABORT.md +2 -2
- package/docs/api/{namespaces → @isdk/namespaces}/EventStates/variables/CONTINUE.md +2 -2
- package/docs/api/{namespaces → @isdk/namespaces}/EventStates/variables/DONE.md +2 -2
- package/docs/api/{namespaces → @isdk/namespaces}/EventStates/variables/STOPPED.md +2 -2
- package/docs/api/@isdk/namespaces/uuidv5/README.md +12 -0
- package/docs/api/{namespaces → @isdk/namespaces}/uuidv5/variables/DNS.md +2 -2
- package/docs/api/{namespaces → @isdk/namespaces}/uuidv5/variables/URL.md +2 -2
- package/docs/api/_media/pubsub.md +427 -105
- package/docs/api/_media/server_client_tools.md +5 -3
- package/docs/api/_media/toolFunc.md +3 -1
- package/docs/api/classes/AbortError.md +8 -8
- package/docs/api/classes/AlreadyExistsError.md +8 -8
- package/docs/api/classes/BaseError.md +14 -14
- package/docs/api/classes/BinarySemaphore.md +39 -39
- package/docs/api/classes/CancelableAbility.md +43 -39
- package/docs/api/classes/ClientToolTransport.md +22 -22
- package/docs/api/classes/ClientTools.md +178 -154
- package/docs/api/classes/CommonError.md +12 -12
- package/docs/api/classes/ConfigFile.md +6 -6
- package/docs/api/classes/EnvPromptTemplate.md +14 -14
- package/docs/api/classes/EventClient.md +240 -198
- package/docs/api/classes/EventEmitter.md +14 -14
- package/docs/api/classes/EventServer.md +208 -233
- package/docs/api/classes/EventToolFunc.md +144 -116
- package/docs/api/classes/FStringPromptTemplate.md +14 -14
- package/docs/api/classes/FewShotPromptTemplate.md +30 -26
- package/docs/api/classes/GolangPromptTemplate.md +13 -13
- package/docs/api/classes/HttpClientToolTransport.md +23 -23
- package/docs/api/classes/HttpServerToolTransport.md +32 -27
- package/docs/api/classes/IntSet.md +21 -21
- package/docs/api/classes/LRUCache.md +18 -18
- package/docs/api/classes/NotFoundError.md +8 -8
- package/docs/api/classes/NotImplementationError.md +8 -8
- package/docs/api/classes/PromptExampleSelector.md +17 -15
- package/docs/api/classes/PromptTemplate.md +15 -15
- package/docs/api/classes/ReadableStreamError.md +12 -12
- package/docs/api/classes/ResClientTools.md +180 -152
- package/docs/api/classes/ResServerTools.md +163 -139
- package/docs/api/classes/RpcMethodsClientTool.md +174 -146
- package/docs/api/classes/RpcMethodsServerTool.md +157 -133
- package/docs/api/classes/SSEChannel.md +142 -52
- package/docs/api/classes/Semaphore.md +40 -40
- package/docs/api/classes/ServerToolTransport.md +32 -27
- package/docs/api/classes/ServerTools.md +163 -139
- package/docs/api/classes/SignalGate.md +19 -17
- package/docs/api/classes/SseClientPubSubTransport.md +38 -10
- package/docs/api/classes/SseServerPubSubTransport.md +115 -42
- package/docs/api/classes/TaskAbortController.md +13 -13
- package/docs/api/classes/ToolFunc.md +157 -129
- package/docs/api/classes/ToolTransport.md +13 -13
- package/docs/api/classes/YamlTypeBaseObject.md +5 -5
- package/docs/api/enumerations/AsyncFeatureBits.md +4 -4
- package/docs/api/enumerations/AsyncFeatures.md +4 -4
- package/docs/api/enumerations/HashAlgorithm.md +12 -12
- package/docs/api/functions/AIArgProcessor.md +2 -2
- package/docs/api/functions/AIStream.md +8 -4
- package/docs/api/functions/ChoiceArgProcessor.md +2 -2
- package/docs/api/functions/DefaultDateFormat.md +2 -2
- package/docs/api/functions/ObjectArgsToArgsInfo.md +1 -1
- package/docs/api/functions/RateLimit.md +2 -2
- package/docs/api/functions/TemplateArgProcessor.md +2 -2
- package/docs/api/functions/addDate.md +7 -3
- package/docs/api/functions/assignDirs.md +1 -1
- package/docs/api/functions/beforeShutdown.md +1 -1
- package/docs/api/functions/calcPerplexity.md +2 -2
- package/docs/api/functions/calcPerplexitySimple.md +1 -1
- package/docs/api/functions/canonicalize.md +1 -1
- package/docs/api/functions/completeSentences.md +1 -1
- package/docs/api/functions/concatText.md +1 -1
- package/docs/api/functions/countLLMTokens.md +1 -1
- package/docs/api/functions/countRegexMatches.md +1 -1
- package/docs/api/functions/createAbilityInjector.md +16 -8
- package/docs/api/functions/createCallbacksTransformer.md +7 -3
- package/docs/api/functions/createEmptyReadableStream.md +1 -1
- package/docs/api/functions/createEndWithRepetitionDetector.md +2 -2
- package/docs/api/functions/createError.md +1 -1
- package/docs/api/functions/createEventStreamTransformer.md +8 -4
- package/docs/api/functions/createHfValueFunc.md +1 -1
- package/docs/api/functions/createLRUCache.md +2 -2
- package/docs/api/functions/createYamlObjectTag.md +1 -1
- package/docs/api/functions/dateToText.md +1 -1
- package/docs/api/functions/decodeCharset.md +2 -2
- package/docs/api/functions/defaultsWithConcat.md +1 -1
- package/docs/api/functions/detectCharset.md +2 -2
- package/docs/api/functions/encodeLLMTokens.md +1 -1
- package/docs/api/functions/ensureQuoted.md +1 -1
- package/docs/api/functions/eventable.md +6 -8
- package/docs/api/functions/expandConfig.md +2 -2
- package/docs/api/functions/expandObjEnv.md +1 -1
- package/docs/api/functions/expandPath.md +2 -2
- package/docs/api/functions/expandPathInObject.md +2 -2
- package/docs/api/functions/expandPaths.md +2 -2
- package/docs/api/functions/fileIsExists.md +1 -1
- package/docs/api/functions/filterValidFnScope.md +2 -2
- package/docs/api/functions/findIndexNonEmptyFrom.md +1 -1
- package/docs/api/functions/findPort.md +1 -1
- package/docs/api/functions/formatISO.md +1 -1
- package/docs/api/functions/formatTextWithSpace.md +2 -2
- package/docs/api/functions/funcGetMeta.md +1 -1
- package/docs/api/functions/funcWithMeta.md +2 -2
- package/docs/api/functions/genUrlParamsStr.md +8 -2
- package/docs/api/functions/getAllEnumKeys.md +4 -2
- package/docs/api/functions/getConfigFileNames.md +2 -2
- package/docs/api/functions/getConfigs.md +2 -2
- package/docs/api/functions/getFileMetaInfo.md +1 -1
- package/docs/api/functions/getHashAlgoBySize.md +1 -1
- package/docs/api/functions/getKeysPath.md +4 -2
- package/docs/api/functions/getLLMTokenizer.md +1 -1
- package/docs/api/functions/getMultiLevelExtname.md +1 -1
- package/docs/api/functions/getPackageDir.md +1 -1
- package/docs/api/functions/getRealFilepath.md +1 -1
- package/docs/api/functions/getResponseErrorReadableStream.md +2 -2
- package/docs/api/functions/getXDGConfigs.md +1 -1
- package/docs/api/functions/hasDirectoryIn.md +2 -2
- package/docs/api/functions/hash.md +1 -1
- package/docs/api/functions/hashFile.md +2 -2
- package/docs/api/functions/hashObject.md +2 -2
- package/docs/api/functions/hashStream.md +1 -1
- package/docs/api/functions/initShutdown.md +1 -1
- package/docs/api/functions/isLangUsingSpaces.md +1 -1
- package/docs/api/functions/isListItemString.md +1 -1
- package/docs/api/functions/isModelNameMatched.md +2 -2
- package/docs/api/functions/isPunctuationChar.md +1 -1
- package/docs/api/functions/isQuoted.md +1 -1
- package/docs/api/functions/isRegExp.md +1 -1
- package/docs/api/functions/isSameString.md +1 -1
- package/docs/api/functions/isSectionString.md +2 -2
- package/docs/api/functions/isSentenceEnding.md +1 -1
- package/docs/api/functions/isSepLineString.md +1 -1
- package/docs/api/functions/isStrWrapped.md +1 -1
- package/docs/api/functions/isSubdirectory.md +1 -1
- package/docs/api/functions/isTitleString.md +2 -2
- package/docs/api/functions/isWebStream.md +1 -1
- package/docs/api/functions/joinSplitWords.md +1 -1
- package/docs/api/functions/jsonFilterToWhere.md +2 -2
- package/docs/api/functions/jsonToMarkdownStr.md +2 -2
- package/docs/api/functions/loadAIConfig.md +1 -1
- package/docs/api/functions/loadConfig.md +1 -1
- package/docs/api/functions/loadConfigFile.md +1 -1
- package/docs/api/functions/loadFileFromPaths.md +2 -2
- package/docs/api/functions/loadTextFromPaths.md +3 -3
- package/docs/api/functions/lrucache.md +1 -1
- package/docs/api/functions/matchUrlProtocol.md +1 -1
- package/docs/api/functions/memoize.md +5 -3
- package/docs/api/functions/mergeArray.md +1 -1
- package/docs/api/functions/messagesToText.md +1 -1
- package/docs/api/functions/nanoid.md +45 -0
- package/docs/api/functions/normalizePath.md +1 -1
- package/docs/api/functions/paramsSizeToScaleStr.md +1 -1
- package/docs/api/functions/parseCommand.md +3 -3
- package/docs/api/functions/parseDateFormat.md +7 -3
- package/docs/api/functions/parseISO.md +7 -3
- package/docs/api/functions/parseJsJson.md +2 -2
- package/docs/api/functions/parseJsJsonSimpleSync.md +2 -2
- package/docs/api/functions/parseObjectArgInfo.md +2 -2
- package/docs/api/functions/parseObjectArgumentInfos.md +2 -2
- package/docs/api/functions/parseObjectArguments.md +2 -2
- package/docs/api/functions/parseObjectArgumentsAsArgInfos.md +2 -2
- package/docs/api/functions/parseYaml.md +1 -1
- package/docs/api/functions/pruneSubdirectories.md +1 -1
- package/docs/api/functions/pruneSubdirectoriesInPlace.md +1 -1
- package/docs/api/functions/quoteStr.md +1 -1
- package/docs/api/functions/readFilenamesRecursiveSync.md +2 -2
- package/docs/api/functions/readTextFileChunks.md +2 -2
- package/docs/api/functions/readTextFileChunksEx.md +2 -2
- package/docs/api/functions/readableFromAsyncIterable.md +4 -2
- package/docs/api/functions/registerCoreTools.md +1 -1
- package/docs/api/functions/removeMarkdownBold.md +2 -2
- package/docs/api/functions/removeMarkdownBoldAndItalic.md +2 -2
- package/docs/api/functions/removeMarkdownItalic.md +2 -2
- package/docs/api/functions/replaceWithPlaceholder.md +2 -2
- package/docs/api/functions/restoreFromPlacehoders.md +2 -2
- package/docs/api/functions/sanitizeFilename.md +1 -1
- package/docs/api/functions/sanitizeFilepath.md +1 -1
- package/docs/api/functions/saveConfigFile.md +1 -1
- package/docs/api/functions/scaleStrToParamsSize.md +1 -1
- package/docs/api/functions/shutdown.md +1 -1
- package/docs/api/functions/simplifyObjectArguments.md +1 -1
- package/docs/api/functions/sleep.md +1 -1
- package/docs/api/functions/sortedValues.md +4 -2
- package/docs/api/functions/splitChunks.md +2 -2
- package/docs/api/functions/splitParagraph.md +2 -2
- package/docs/api/functions/splitSentence.md +1 -1
- package/docs/api/functions/splitWords.md +1 -1
- package/docs/api/functions/stringifyYaml.md +1 -1
- package/docs/api/functions/stripConsoleColor.md +1 -1
- package/docs/api/functions/textToDate.md +1 -1
- package/docs/api/functions/throwError.md +1 -1
- package/docs/api/functions/toDate.md +7 -3
- package/docs/api/functions/toDateTime.md +1 -1
- package/docs/api/functions/trimStartOfStreamHelper.md +3 -3
- package/docs/api/functions/truncTo.md +1 -1
- package/docs/api/functions/truncateByToken.md +2 -2
- package/docs/api/functions/truncateToTokenLimit.md +2 -2
- package/docs/api/functions/truncateToTokenLimitEx.md +2 -2
- package/docs/api/functions/uuid.md +15 -6
- package/docs/api/functions/uuidStringify.md +1 -1
- package/docs/api/functions/uuidv1.md +5 -3
- package/docs/api/functions/uuidv4.md +5 -3
- package/docs/api/functions/uuidv5.md +5 -3
- package/docs/api/functions/uuidv6.md +61 -0
- package/docs/api/functions/uuidv7.md +61 -0
- package/docs/api/functions/wrapEventEmitter.md +1 -1
- package/docs/api/functions/xxhash.md +1 -1
- package/docs/api/functions/xxhash32.md +1 -1
- package/docs/api/functions/xxhash64.md +1 -1
- package/docs/api/functions/xxhashAsStr.md +1 -1
- package/docs/api/functions/yieldExec.md +1 -1
- package/docs/api/globals.md +11 -6
- package/docs/api/interfaces/AIChatAssistantMessageParam.md +12 -12
- package/docs/api/interfaces/AIChatContentPartImage.md +3 -3
- package/docs/api/interfaces/AIChatContentPartText.md +3 -3
- package/docs/api/interfaces/AIChatMessageParamBase.md +7 -7
- package/docs/api/interfaces/AIChatMessageToolCall.md +4 -4
- package/docs/api/interfaces/AIChatSystemMessageParam.md +9 -9
- package/docs/api/interfaces/AIChatToolChoiceFuncObject.md +3 -3
- package/docs/api/interfaces/AIChatToolChoiceObject.md +2 -2
- package/docs/api/interfaces/AIChatToolFunc.md +5 -5
- package/docs/api/interfaces/AIChatToolFuncParam.md +3 -3
- package/docs/api/interfaces/AIChatToolMessageParam.md +10 -10
- package/docs/api/interfaces/AIChatToolParam.md +2 -2
- package/docs/api/interfaces/AIChatToolTypeObject.md +2 -2
- package/docs/api/interfaces/AIChatUserMessageParam.md +13 -13
- package/docs/api/interfaces/AIChoiceConfig.md +8 -8
- package/docs/api/interfaces/AIResult.md +12 -8
- package/docs/api/interfaces/AIStreamParser.md +8 -6
- package/docs/api/interfaces/AIStreamParserOptions.md +2 -2
- package/docs/api/interfaces/BaseFunc.md +17 -17
- package/docs/api/interfaces/BaseFuncItem.md +15 -15
- package/docs/api/interfaces/BinarySemaphoreAcquireOptions.md +2 -2
- package/docs/api/interfaces/BinarySemaphoreOptions.md +5 -5
- package/docs/api/interfaces/BinarySemaphoreReleaseOptions.md +2 -2
- package/docs/api/interfaces/BinarySemaphoreReleaserFunc.md +3 -3
- package/docs/api/interfaces/CancelableAbilityOptions.md +4 -4
- package/docs/api/interfaces/ClientFuncItem.md +21 -25
- package/docs/api/interfaces/EventClientFuncParams.md +5 -5
- package/docs/api/interfaces/EventServerFuncParams.md +14 -6
- package/docs/api/interfaces/FewShotPromptTemplateOptions.md +9 -7
- package/docs/api/interfaces/FuncItem.md +18 -18
- package/docs/api/interfaces/FuncParam.md +5 -5
- package/docs/api/interfaces/FuncParams.md +1 -1
- package/docs/api/interfaces/Funcs.md +1 -1
- package/docs/api/interfaces/HashAlgoParams.md +4 -4
- package/docs/api/interfaces/IClientToolTransport.md +9 -9
- package/docs/api/interfaces/IFileMetaInfo.md +8 -8
- package/docs/api/interfaces/IPubSubClientTransport.md +31 -7
- package/docs/api/interfaces/IPubSubServerTransport.md +92 -47
- package/docs/api/interfaces/IReadTextFileChunksOptions.md +13 -13
- package/docs/api/interfaces/IServerToolTransport.md +19 -14
- package/docs/api/interfaces/IToolTransport.md +6 -6
- package/docs/api/interfaces/ITruncateToTokenLimitOptions.md +11 -11
- package/docs/api/interfaces/JsonFilter.md +1 -1
- package/docs/api/interfaces/ParseObjectArgumentOptions.md +11 -11
- package/docs/api/interfaces/ProbabilityItem.md +4 -4
- package/docs/api/interfaces/PromptExampleSelectorOptions.md +3 -3
- package/docs/api/interfaces/PubSubClientStream.md +26 -14
- package/docs/api/interfaces/PubSubServerSession.md +8 -8
- package/docs/api/interfaces/RemoteFuncItem.md +21 -25
- package/docs/api/interfaces/ReplacePlacehoderOptions.md +5 -5
- package/docs/api/interfaces/ResClientFuncParams.md +3 -3
- package/docs/api/interfaces/ResServerFuncParams.md +6 -6
- package/docs/api/interfaces/RpcMethodsClientFuncParams.md +2 -2
- package/docs/api/interfaces/RpcMethodsServerFuncParams.md +4 -4
- package/docs/api/interfaces/SectionStringOptions.md +3 -3
- package/docs/api/interfaces/SemaphoreOptions.md +7 -7
- package/docs/api/interfaces/SemaphoreTaskItem.md +6 -6
- package/docs/api/interfaces/ServerFuncItem.md +22 -26
- package/docs/api/interfaces/ServerFuncParams.md +3 -3
- package/docs/api/interfaces/SplitSentenceOptions.md +5 -5
- package/docs/api/interfaces/StreamCallbacksAndOptions.md +11 -7
- package/docs/api/interfaces/TaskAbortControllers.md +1 -1
- package/docs/api/interfaces/TaskPromise.md +17 -9
- package/docs/api/interfaces/ToolFuncPackage.md +5 -5
- package/docs/api/type-aliases/AIChatContentPart.md +2 -2
- package/docs/api/type-aliases/AIChatMessageParam.md +2 -2
- package/docs/api/type-aliases/AIChatRole.md +2 -2
- package/docs/api/type-aliases/AIChatToolChoiceParam.md +2 -2
- package/docs/api/type-aliases/AIMessageType.md +2 -2
- package/docs/api/type-aliases/AIModelNameRule.md +2 -2
- package/docs/api/type-aliases/AIModelNameRuleFn.md +2 -2
- package/docs/api/type-aliases/AIModelNameRules.md +2 -2
- package/docs/api/type-aliases/AITextGenerationFinishReason.md +2 -2
- package/docs/api/type-aliases/ActionName.md +2 -2
- package/docs/api/type-aliases/ArrayMergeWay.md +2 -2
- package/docs/api/type-aliases/AsyncTaskId.md +2 -2
- package/docs/api/type-aliases/BeforeShutdownListener.md +2 -2
- package/docs/api/type-aliases/EventErrorListenerFn.md +2 -2
- package/docs/api/type-aliases/EventListenerFn.md +2 -2
- package/docs/api/type-aliases/FuncParamType.md +2 -2
- package/docs/api/type-aliases/PromptExamples.md +5 -3
- package/docs/api/type-aliases/PubSubClientId.md +2 -2
- package/docs/api/type-aliases/PubSubCtx.md +24 -4
- package/docs/api/type-aliases/RpcMethodHandler.md +2 -2
- package/docs/api/type-aliases/SSEClient.md +53 -0
- package/docs/api/type-aliases/SemaphoreIsReadyFuncType.md +2 -2
- package/docs/api/type-aliases/TFunc.md +2 -2
- package/docs/api/type-aliases/UUIDVersions.md +11 -0
- package/docs/api/variables/AIChatRoles.md +1 -1
- package/docs/api/variables/AIMessageTypes.md +1 -1
- package/docs/api/variables/AITextGenerationFinishReasons.md +1 -1
- package/docs/api/variables/ActionNames.md +1 -1
- package/docs/api/variables/ArrayMergeWay.md +2 -2
- package/docs/api/variables/ArrayMergeWaySymbol.md +2 -2
- package/docs/api/variables/ClientEventPrefix.md +11 -0
- package/docs/api/variables/ClientToolFuncSchema.md +4 -2
- package/docs/api/variables/DEFAULT_CONFIG_NAME.md +1 -1
- package/docs/api/variables/DefaultAsyncSemaphoreCapacity.md +1 -1
- package/docs/api/variables/EventBusName.md +1 -1
- package/docs/api/variables/EventName.md +1 -1
- package/docs/api/variables/FuncMetaSymbol.md +2 -2
- package/docs/api/variables/LLM_TOKENIZER_NAMES.md +4 -4
- package/docs/api/variables/LLM_TOKENIZER_NAMES_MAP.md +1 -1
- package/docs/api/variables/PASSING_SCORE.md +1 -1
- package/docs/api/variables/RStreamErrCode.md +1 -1
- package/docs/api/variables/RemoteToolFuncSchema.md +4 -2
- package/docs/api/variables/ResponseRStreamErrCode.md +1 -1
- package/docs/api/variables/RpcMethodsClientToolSchema.md +4 -2
- package/docs/api/variables/RpcMethodsServerToolSchema.md +2 -2
- package/docs/api/variables/SHUTDOWN_SIGNALS.md +1 -1
- package/docs/api/variables/SSEChannelAlreadyClosedErrCode.md +1 -1
- package/docs/api/variables/SecondaryCache.md +1 -1
- package/docs/api/variables/ServerToolFuncSchema.md +4 -2
- package/docs/api/variables/StrangeHumanName.md +1 -1
- package/docs/api/variables/ToolAsyncCancelableBit.md +1 -1
- package/docs/api/variables/ToolAsyncMultiTaskBit.md +1 -1
- package/docs/api/variables/ToolAsyncPriorityBit.md +1 -1
- package/docs/api/variables/ToolFuncSchema.md +4 -2
- package/docs/api/variables/backendEventable.md +11 -0
- package/docs/api/variables/base32768.md +1 -1
- package/docs/api/variables/event.md +1 -1
- package/docs/api/variables/eventClient.md +1 -1
- package/docs/api/variables/eventServer.md +1 -1
- package/docs/api/variables/lrucache.md +1 -1
- package/docs/api/variables/makeToolFuncCancelable.md +11 -0
- package/docs/api/{functions → variables}/wait.md +16 -14
- package/docs/pubsub.md +427 -105
- package/docs/server_client_tools.md +5 -3
- package/docs/toolFunc.md +3 -1
- package/package.json +8 -7
- package/dist/chunk-4XRPAC7C.mjs +0 -1
- package/docs/api/functions/backendEventable.md +0 -29
- package/docs/api/functions/makeToolFuncCancelable.md +0 -29
- package/docs/api/interfaces/PubSubClient.md +0 -27
- package/docs/api/namespaces/uuidv5/README.md +0 -12
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: ClientTools
|
|
8
8
|
|
|
9
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
9
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:10](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/client-tools.ts#L10)
|
|
10
10
|
|
|
11
11
|
Represents a client-side proxy for a remote tool function.
|
|
12
12
|
|
|
@@ -31,13 +31,13 @@ These tools are typically created dynamically by loading definitions from a serv
|
|
|
31
31
|
|
|
32
32
|
## Constructors
|
|
33
33
|
|
|
34
|
-
###
|
|
34
|
+
### Constructor
|
|
35
35
|
|
|
36
|
-
> **new ClientTools**(`name`, `options
|
|
36
|
+
> **new ClientTools**(`name`, `options?`): `ClientTools`
|
|
37
37
|
|
|
38
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:571](https://github.com/isdk/ai-tool.js/blob/
|
|
38
|
+
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)
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
Initializes a new `ToolFunc` instance.
|
|
41
41
|
|
|
42
42
|
#### Parameters
|
|
43
43
|
|
|
@@ -55,11 +55,11 @@ Configuration options if not provided in the first argument.
|
|
|
55
55
|
|
|
56
56
|
#### Returns
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
`ClientTools`
|
|
59
59
|
|
|
60
60
|
#### Inherited from
|
|
61
61
|
|
|
62
|
-
[`ToolFunc`](ToolFunc.md).[`constructor`](ToolFunc.md#
|
|
62
|
+
[`ToolFunc`](ToolFunc.md).[`constructor`](ToolFunc.md#constructor)
|
|
63
63
|
|
|
64
64
|
## Properties
|
|
65
65
|
|
|
@@ -71,7 +71,7 @@ Defined in: [property-manager.js/src/advance.d.ts:5](https://github.com/snowyu/p
|
|
|
71
71
|
|
|
72
72
|
#### Inherited from
|
|
73
73
|
|
|
74
|
-
[`ToolFunc`](ToolFunc.md).[`$attributes`](ToolFunc.md
|
|
74
|
+
[`ToolFunc`](ToolFunc.md).[`$attributes`](ToolFunc.md#attributes)
|
|
75
75
|
|
|
76
76
|
***
|
|
77
77
|
|
|
@@ -79,7 +79,7 @@ Defined in: [property-manager.js/src/advance.d.ts:5](https://github.com/snowyu/p
|
|
|
79
79
|
|
|
80
80
|
> `optional` **action**: `"get"` \| `"post"` \| `"put"` \| `"delete"` \| `"patch"` \| `"list"` \| `"res"`
|
|
81
81
|
|
|
82
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/consts.ts:95](https://github.com/isdk/ai-tool.js/blob/
|
|
82
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/consts.ts:95](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/consts.ts#L95)
|
|
83
83
|
|
|
84
84
|
The action to be used for the remote call. This typically represents an RPC method name.
|
|
85
85
|
Only for RESTful HTTP transports, it might be mapped to a standard HTTP method (e.g., GET, POST)
|
|
@@ -94,13 +94,13 @@ Only for RESTful HTTP transports, it might be mapped to a standard HTTP method (
|
|
|
94
94
|
|
|
95
95
|
> `optional` **alias**: `string` \| `string`[]
|
|
96
96
|
|
|
97
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:130](https://github.com/isdk/ai-tool.js/blob/
|
|
97
|
+
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)
|
|
98
98
|
|
|
99
99
|
Optional aliases for the function name.
|
|
100
100
|
|
|
101
101
|
#### Inherited from
|
|
102
102
|
|
|
103
|
-
[`
|
|
103
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`alias`](../interfaces/ClientFuncItem.md#alias)
|
|
104
104
|
|
|
105
105
|
***
|
|
106
106
|
|
|
@@ -108,7 +108,7 @@ Optional aliases for the function name.
|
|
|
108
108
|
|
|
109
109
|
> `optional` **asyncFeatures**: `number`
|
|
110
110
|
|
|
111
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:144](https://github.com/isdk/ai-tool.js/blob/
|
|
111
|
+
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)
|
|
112
112
|
|
|
113
113
|
A bitmask representing asynchronous features supported by the function, built from `AsyncFeatureBits`.
|
|
114
114
|
This allows the system to understand if a function supports capabilities like cancellation or multi-tasking.
|
|
@@ -130,7 +130,7 @@ const func = new ToolFunc({
|
|
|
130
130
|
|
|
131
131
|
#### Inherited from
|
|
132
132
|
|
|
133
|
-
[`
|
|
133
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`asyncFeatures`](../interfaces/ClientFuncItem.md#asyncfeatures)
|
|
134
134
|
|
|
135
135
|
***
|
|
136
136
|
|
|
@@ -170,7 +170,7 @@ The default options for export and assign
|
|
|
170
170
|
|
|
171
171
|
> `optional` **depends**: `object`
|
|
172
172
|
|
|
173
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:167](https://github.com/isdk/ai-tool.js/blob/
|
|
173
|
+
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)
|
|
174
174
|
|
|
175
175
|
A map of dependencies this function has on other tool functions.
|
|
176
176
|
Declaring dependencies ensures that they are automatically registered when this function is registered.
|
|
@@ -201,7 +201,7 @@ mainFunc.register();
|
|
|
201
201
|
|
|
202
202
|
#### Inherited from
|
|
203
203
|
|
|
204
|
-
[`
|
|
204
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`depends`](../interfaces/ClientFuncItem.md#depends)
|
|
205
205
|
|
|
206
206
|
***
|
|
207
207
|
|
|
@@ -209,27 +209,23 @@ mainFunc.register();
|
|
|
209
209
|
|
|
210
210
|
> `optional` **description**: `string`
|
|
211
211
|
|
|
212
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:172](https://github.com/isdk/ai-tool.js/blob/
|
|
212
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:172](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L172)
|
|
213
213
|
|
|
214
214
|
A detailed description of what the function does.
|
|
215
215
|
|
|
216
216
|
#### Inherited from
|
|
217
217
|
|
|
218
|
-
[`
|
|
218
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`description`](../interfaces/ClientFuncItem.md#description)
|
|
219
219
|
|
|
220
220
|
***
|
|
221
221
|
|
|
222
|
-
###
|
|
222
|
+
### fetchOptions?
|
|
223
223
|
|
|
224
224
|
> `optional` **fetchOptions**: `any`
|
|
225
225
|
|
|
226
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/consts.ts:
|
|
227
|
-
|
|
228
|
-
Options to be passed to the underlying `fetch` call in an HTTP transport.
|
|
226
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/consts.ts:100](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/utils/consts.ts#L100)
|
|
229
227
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
Use `transport` instead.
|
|
228
|
+
Addtional options to be passed to the underlying `fetch` call in a transport.
|
|
233
229
|
|
|
234
230
|
#### Inherited from
|
|
235
231
|
|
|
@@ -241,13 +237,13 @@ Use `transport` instead.
|
|
|
241
237
|
|
|
242
238
|
> `optional` **isApi**: `boolean`
|
|
243
239
|
|
|
244
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:119](https://github.com/isdk/ai-tool.js/blob/
|
|
240
|
+
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)
|
|
245
241
|
|
|
246
242
|
If true, indicates that this function should be treated as a server-side API.
|
|
247
243
|
|
|
248
244
|
#### Inherited from
|
|
249
245
|
|
|
250
|
-
[`
|
|
246
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`isApi`](../interfaces/ClientFuncItem.md#isapi)
|
|
251
247
|
|
|
252
248
|
***
|
|
253
249
|
|
|
@@ -255,13 +251,13 @@ If true, indicates that this function should be treated as a server-side API.
|
|
|
255
251
|
|
|
256
252
|
> `optional` **name**: `string`
|
|
257
253
|
|
|
258
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:76](https://github.com/isdk/ai-tool.js/blob/
|
|
254
|
+
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)
|
|
259
255
|
|
|
260
256
|
The unique name of the function.
|
|
261
257
|
|
|
262
258
|
#### Inherited from
|
|
263
259
|
|
|
264
|
-
[`
|
|
260
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`name`](../interfaces/ClientFuncItem.md#name)
|
|
265
261
|
|
|
266
262
|
***
|
|
267
263
|
|
|
@@ -283,13 +279,13 @@ the property with the default prefix '$' will not be exported.
|
|
|
283
279
|
|
|
284
280
|
> `optional` **params**: [`FuncParams`](../interfaces/FuncParams.md) \| [`FuncParam`](../interfaces/FuncParam.md)[]
|
|
285
281
|
|
|
286
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:81](https://github.com/isdk/ai-tool.js/blob/
|
|
282
|
+
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)
|
|
287
283
|
|
|
288
284
|
Parameter definitions, which can be an object mapping names to definitions or an array for positional parameters.
|
|
289
285
|
|
|
290
286
|
#### Inherited from
|
|
291
287
|
|
|
292
|
-
[`
|
|
288
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`params`](../interfaces/ClientFuncItem.md#params)
|
|
293
289
|
|
|
294
290
|
***
|
|
295
291
|
|
|
@@ -297,13 +293,13 @@ Parameter definitions, which can be an object mapping names to definitions or an
|
|
|
297
293
|
|
|
298
294
|
> `optional` **result**: `string` \| `Record`\<`string`, `any`\>
|
|
299
295
|
|
|
300
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:86](https://github.com/isdk/ai-tool.js/blob/
|
|
296
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:86](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/tool-func.ts#L86)
|
|
301
297
|
|
|
302
298
|
The expected return type of the function, described as a string or a JSON schema object.
|
|
303
299
|
|
|
304
300
|
#### Inherited from
|
|
305
301
|
|
|
306
|
-
[`
|
|
302
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`result`](../interfaces/ClientFuncItem.md#result)
|
|
307
303
|
|
|
308
304
|
***
|
|
309
305
|
|
|
@@ -311,21 +307,21 @@ The expected return type of the function, described as a string or a JSON schema
|
|
|
311
307
|
|
|
312
308
|
> `optional` **scope**: `any`
|
|
313
309
|
|
|
314
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:91](https://github.com/isdk/ai-tool.js/blob/
|
|
310
|
+
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)
|
|
315
311
|
|
|
316
312
|
The execution scope or context (`this`) for the function.
|
|
317
313
|
|
|
318
314
|
#### Inherited from
|
|
319
315
|
|
|
320
|
-
[`
|
|
316
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`scope`](../interfaces/ClientFuncItem.md#scope)
|
|
321
317
|
|
|
322
318
|
***
|
|
323
319
|
|
|
324
320
|
### setup()?
|
|
325
321
|
|
|
326
|
-
> `optional` **setup**: (`this`, `options
|
|
322
|
+
> `optional` **setup**: (`this`, `options?`) => `void`
|
|
327
323
|
|
|
328
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:114](https://github.com/isdk/ai-tool.js/blob/
|
|
324
|
+
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)
|
|
329
325
|
|
|
330
326
|
A lifecycle hook called once during the `ToolFunc` instance's initialization.
|
|
331
327
|
It allows for initial setup, state configuration, or property modification on the instance
|
|
@@ -363,7 +359,7 @@ console.log(myFunc.customState); // Outputs: 'configured'
|
|
|
363
359
|
|
|
364
360
|
#### Inherited from
|
|
365
361
|
|
|
366
|
-
[`
|
|
362
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`setup`](../interfaces/ClientFuncItem.md#setup)
|
|
367
363
|
|
|
368
364
|
***
|
|
369
365
|
|
|
@@ -371,14 +367,14 @@ console.log(myFunc.customState); // Outputs: 'configured'
|
|
|
371
367
|
|
|
372
368
|
> `optional` **stream**: `boolean`
|
|
373
369
|
|
|
374
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:125](https://github.com/isdk/ai-tool.js/blob/
|
|
370
|
+
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)
|
|
375
371
|
|
|
376
372
|
If true, indicates that the function has the *capability* to stream its output.
|
|
377
373
|
Whether a specific call is streamed is determined by a `stream` property in the runtime parameters.
|
|
378
374
|
|
|
379
375
|
#### Inherited from
|
|
380
376
|
|
|
381
|
-
[`
|
|
377
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`stream`](../interfaces/ClientFuncItem.md#stream)
|
|
382
378
|
|
|
383
379
|
***
|
|
384
380
|
|
|
@@ -386,13 +382,13 @@ Whether a specific call is streamed is determined by a `stream` property in the
|
|
|
386
382
|
|
|
387
383
|
> `optional` **tags**: `string` \| `string`[]
|
|
388
384
|
|
|
389
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:96](https://github.com/isdk/ai-tool.js/blob/
|
|
385
|
+
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)
|
|
390
386
|
|
|
391
387
|
Tags for grouping or filtering functions.
|
|
392
388
|
|
|
393
389
|
#### Inherited from
|
|
394
390
|
|
|
395
|
-
[`
|
|
391
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`tags`](../interfaces/ClientFuncItem.md#tags)
|
|
396
392
|
|
|
397
393
|
***
|
|
398
394
|
|
|
@@ -400,13 +396,13 @@ Tags for grouping or filtering functions.
|
|
|
400
396
|
|
|
401
397
|
> `optional` **title**: `string`
|
|
402
398
|
|
|
403
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:177](https://github.com/isdk/ai-tool.js/blob/
|
|
399
|
+
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)
|
|
404
400
|
|
|
405
401
|
A concise, human-readable title for the function, often used in UI or by AI.
|
|
406
402
|
|
|
407
403
|
#### Inherited from
|
|
408
404
|
|
|
409
|
-
[`
|
|
405
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`title`](../interfaces/ClientFuncItem.md#title)
|
|
410
406
|
|
|
411
407
|
***
|
|
412
408
|
|
|
@@ -414,7 +410,7 @@ A concise, human-readable title for the function, often used in UI or by AI.
|
|
|
414
410
|
|
|
415
411
|
> `static` `optional` **action**: `string`
|
|
416
412
|
|
|
417
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
413
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:33](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/client-tools.ts#L33)
|
|
418
414
|
|
|
419
415
|
#### Inherited from
|
|
420
416
|
|
|
@@ -426,7 +422,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:32](https://git
|
|
|
426
422
|
|
|
427
423
|
> `static` **aliases**: `object` = `{}`
|
|
428
424
|
|
|
429
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:305](https://github.com/isdk/ai-tool.js/blob/
|
|
425
|
+
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)
|
|
430
426
|
|
|
431
427
|
A static map of aliases to their corresponding function names.
|
|
432
428
|
|
|
@@ -444,7 +440,7 @@ A static map of aliases to their corresponding function names.
|
|
|
444
440
|
|
|
445
441
|
> `static` **dataPath**: `string`
|
|
446
442
|
|
|
447
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:312](https://github.com/isdk/ai-tool.js/blob/
|
|
443
|
+
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)
|
|
448
444
|
|
|
449
445
|
A conventional property to designate a file path for saving the registered `ToolFunc` data.
|
|
450
446
|
Note: The `ToolFunc` class itself does not implement persistence logic. It is up to the
|
|
@@ -460,7 +456,7 @@ developer to use this path to save and load the `ToolFunc.items` registry if nee
|
|
|
460
456
|
|
|
461
457
|
> `static` **items**: [`Funcs`](../interfaces/Funcs.md) = `{}`
|
|
462
458
|
|
|
463
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:300](https://github.com/isdk/ai-tool.js/blob/
|
|
459
|
+
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)
|
|
464
460
|
|
|
465
461
|
A static registry of all `ToolFunc` instances, indexed by name.
|
|
466
462
|
|
|
@@ -476,12 +472,10 @@ A static registry of all `ToolFunc` instances, indexed by name.
|
|
|
476
472
|
|
|
477
473
|
> **get** **apiRoot**(): `string`
|
|
478
474
|
|
|
479
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
480
|
-
|
|
481
|
-
##### Deprecated
|
|
475
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:110](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/client-tools.ts#L110)
|
|
482
476
|
|
|
483
|
-
|
|
484
|
-
|
|
477
|
+
Gets the root URL for API endpoints from the configured transport.
|
|
478
|
+
This is used as the base for constructing request URLs.
|
|
485
479
|
|
|
486
480
|
##### Returns
|
|
487
481
|
|
|
@@ -505,12 +499,10 @@ Use `transport` instead.
|
|
|
505
499
|
|
|
506
500
|
> **get** `static` **apiRoot**(): `string`
|
|
507
501
|
|
|
508
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
509
|
-
|
|
510
|
-
##### Deprecated
|
|
502
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:41](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/client-tools.ts#L41)
|
|
511
503
|
|
|
512
|
-
|
|
513
|
-
|
|
504
|
+
Gets the root URL for API endpoints from the configured transport.
|
|
505
|
+
This is used as the base for constructing request URLs.
|
|
514
506
|
|
|
515
507
|
##### Returns
|
|
516
508
|
|
|
@@ -528,7 +520,7 @@ The actual endpoint is managed by the transport.
|
|
|
528
520
|
|
|
529
521
|
> **get** `static` **transport**(): [`IClientToolTransport`](../interfaces/IClientToolTransport.md)
|
|
530
522
|
|
|
531
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
523
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:61](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/client-tools.ts#L61)
|
|
532
524
|
|
|
533
525
|
##### Returns
|
|
534
526
|
|
|
@@ -540,7 +532,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:60](https://git
|
|
|
540
532
|
|
|
541
533
|
> **arr2ObjParams**(`params`): `any`[]
|
|
542
534
|
|
|
543
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:629](https://github.com/isdk/ai-tool.js/blob/
|
|
535
|
+
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)
|
|
544
536
|
|
|
545
537
|
Converts an array of positional arguments into a named parameters object.
|
|
546
538
|
This is used internally to support functions defined with named parameters.
|
|
@@ -567,7 +559,7 @@ An array containing a single parameters object.
|
|
|
567
559
|
|
|
568
560
|
### assign()
|
|
569
561
|
|
|
570
|
-
> **assign**(`src`, `options
|
|
562
|
+
> **assign**(`src`, `options?`): `this`
|
|
571
563
|
|
|
572
564
|
Defined in: [property-manager.js/src/abstract.d.ts:106](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L106)
|
|
573
565
|
|
|
@@ -599,7 +591,7 @@ this object
|
|
|
599
591
|
|
|
600
592
|
### assignProperty()
|
|
601
593
|
|
|
602
|
-
> **assignProperty**(`src`, `name`, `value`, `attrs
|
|
594
|
+
> **assignProperty**(`src`, `name`, `value`, `attrs?`, `options?`): `void`
|
|
603
595
|
|
|
604
596
|
Defined in: [property-manager.js/src/abstract.d.ts:117](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L117)
|
|
605
597
|
|
|
@@ -647,7 +639,7 @@ the attributes object
|
|
|
647
639
|
|
|
648
640
|
### assignPropertyTo()
|
|
649
641
|
|
|
650
|
-
> `abstract` **assignPropertyTo**(`dest`, `src`, `name`, `value`, `attrs
|
|
642
|
+
> `abstract` **assignPropertyTo**(`dest`, `src`, `name`, `value`, `attrs?`, `options?`): `void`
|
|
651
643
|
|
|
652
644
|
Defined in: [property-manager.js/src/abstract.d.ts:131](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L131)
|
|
653
645
|
|
|
@@ -701,7 +693,7 @@ The attributes object of the property
|
|
|
701
693
|
|
|
702
694
|
### assignTo()
|
|
703
695
|
|
|
704
|
-
> **assignTo**(`dest
|
|
696
|
+
> **assignTo**(`dest?`, `options?`): `any`
|
|
705
697
|
|
|
706
698
|
Defined in: [property-manager.js/src/abstract.d.ts:191](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L191)
|
|
707
699
|
|
|
@@ -733,7 +725,7 @@ the dest object
|
|
|
733
725
|
|
|
734
726
|
### clone()
|
|
735
727
|
|
|
736
|
-
> **clone**(`options
|
|
728
|
+
> **clone**(`options?`): `any`
|
|
737
729
|
|
|
738
730
|
Defined in: [property-manager.js/src/abstract.d.ts:155](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L155)
|
|
739
731
|
|
|
@@ -759,7 +751,7 @@ the new object
|
|
|
759
751
|
|
|
760
752
|
### cloneTo()
|
|
761
753
|
|
|
762
|
-
> **cloneTo**(`dest`, `options
|
|
754
|
+
> **cloneTo**(`dest`, `options?`): `any`
|
|
763
755
|
|
|
764
756
|
Defined in: [property-manager.js/src/abstract.d.ts:148](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L148)
|
|
765
757
|
|
|
@@ -817,7 +809,7 @@ the defined attributes of the object
|
|
|
817
809
|
|
|
818
810
|
### exportTo()
|
|
819
811
|
|
|
820
|
-
> **exportTo**(`dest`, `options
|
|
812
|
+
> **exportTo**(`dest`, `options?`): `any`
|
|
821
813
|
|
|
822
814
|
Defined in: [property-manager.js/src/abstract.d.ts:173](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L173)
|
|
823
815
|
|
|
@@ -849,9 +841,9 @@ the dest object.
|
|
|
849
841
|
|
|
850
842
|
### fetch()
|
|
851
843
|
|
|
852
|
-
> **fetch**(`objParam
|
|
844
|
+
> **fetch**(`objParam?`, `act?`, `subName?`, `fetchOptions?`): `Promise`\<`any`\>
|
|
853
845
|
|
|
854
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
846
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:115](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/client-tools.ts#L115)
|
|
855
847
|
|
|
856
848
|
#### Parameters
|
|
857
849
|
|
|
@@ -867,6 +859,10 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:114](https://gi
|
|
|
867
859
|
|
|
868
860
|
`any`
|
|
869
861
|
|
|
862
|
+
##### fetchOptions?
|
|
863
|
+
|
|
864
|
+
`any`
|
|
865
|
+
|
|
870
866
|
#### Returns
|
|
871
867
|
|
|
872
868
|
`Promise`\<`any`\>
|
|
@@ -877,7 +873,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:114](https://gi
|
|
|
877
873
|
|
|
878
874
|
> **func**(`objParam`): `Promise`\<`any`\>
|
|
879
875
|
|
|
880
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
876
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:134](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/client-tools.ts#L134)
|
|
881
877
|
|
|
882
878
|
The core implementation for a client-side tool. When a `ClientTools` instance
|
|
883
879
|
is "run", this `func` method is executed. It delegates the call to the
|
|
@@ -905,9 +901,9 @@ The result from the remote tool.
|
|
|
905
901
|
|
|
906
902
|
### getFunc()
|
|
907
903
|
|
|
908
|
-
> **getFunc**(`name
|
|
904
|
+
> **getFunc**(`name?`): `any`
|
|
909
905
|
|
|
910
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:720](https://github.com/isdk/ai-tool.js/blob/
|
|
906
|
+
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)
|
|
911
907
|
|
|
912
908
|
Gets a bound function reference for execution with named parameters.
|
|
913
909
|
If a name is provided, it retrieves a different function from the registry.
|
|
@@ -935,9 +931,9 @@ A function reference or `undefined` if not found.
|
|
|
935
931
|
|
|
936
932
|
### getFuncWithPos()
|
|
937
933
|
|
|
938
|
-
> **getFuncWithPos**(`name
|
|
934
|
+
> **getFuncWithPos**(`name?`): `any`
|
|
939
935
|
|
|
940
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:777](https://github.com/isdk/ai-tool.js/blob/
|
|
936
|
+
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)
|
|
941
937
|
|
|
942
938
|
Gets a bound function reference suitable for positional argument execution.
|
|
943
939
|
If a name is provided, it retrieves a different function from the registry.
|
|
@@ -987,7 +983,7 @@ the descriptors of properties object
|
|
|
987
983
|
|
|
988
984
|
> **hasAsyncFeature**(`feature`): `boolean`
|
|
989
985
|
|
|
990
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:787](https://github.com/isdk/ai-tool.js/blob/
|
|
986
|
+
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)
|
|
991
987
|
|
|
992
988
|
Checks if the current function instance supports a specific async feature.
|
|
993
989
|
|
|
@@ -1039,7 +1035,7 @@ A property name.
|
|
|
1039
1035
|
|
|
1040
1036
|
### initialize()
|
|
1041
1037
|
|
|
1042
|
-
> **initialize**(`src
|
|
1038
|
+
> **initialize**(`src?`): `this`
|
|
1043
1039
|
|
|
1044
1040
|
Defined in: [property-manager.js/src/abstract.d.ts:139](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L139)
|
|
1045
1041
|
|
|
@@ -1091,7 +1087,7 @@ Another object whose prototype chain is to be checked.
|
|
|
1091
1087
|
|
|
1092
1088
|
### isSame()
|
|
1093
1089
|
|
|
1094
|
-
> **isSame**(`src`, `options
|
|
1090
|
+
> **isSame**(`src`, `options?`): `boolean`
|
|
1095
1091
|
|
|
1096
1092
|
Defined in: [property-manager.js/src/abstract.d.ts:200](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L200)
|
|
1097
1093
|
|
|
@@ -1123,7 +1119,7 @@ The source object
|
|
|
1123
1119
|
|
|
1124
1120
|
> **isStream**(`params`): `undefined` \| `boolean`
|
|
1125
1121
|
|
|
1126
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:805](https://github.com/isdk/ai-tool.js/blob/
|
|
1122
|
+
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)
|
|
1127
1123
|
|
|
1128
1124
|
Determines if a function call should produce a stream.
|
|
1129
1125
|
|
|
@@ -1155,7 +1151,7 @@ The runtime parameters passed to the function call.
|
|
|
1155
1151
|
|
|
1156
1152
|
### mergeTo()
|
|
1157
1153
|
|
|
1158
|
-
> **mergeTo**(`dest`, `options
|
|
1154
|
+
> **mergeTo**(`dest`, `options?`): `any`
|
|
1159
1155
|
|
|
1160
1156
|
Defined in: [property-manager.js/src/abstract.d.ts:164](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L164)
|
|
1161
1157
|
|
|
@@ -1187,9 +1183,9 @@ the dest object.
|
|
|
1187
1183
|
|
|
1188
1184
|
### obj2ArrParams()
|
|
1189
1185
|
|
|
1190
|
-
> **obj2ArrParams**(`params
|
|
1186
|
+
> **obj2ArrParams**(`params?`): `any`[]
|
|
1191
1187
|
|
|
1192
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:648](https://github.com/isdk/ai-tool.js/blob/
|
|
1188
|
+
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)
|
|
1193
1189
|
|
|
1194
1190
|
Converts a named parameters object into an array of positional arguments.
|
|
1195
1191
|
This is used for functions defined with positional parameters.
|
|
@@ -1244,7 +1240,7 @@ A property name.
|
|
|
1244
1240
|
|
|
1245
1241
|
> **register**(): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
1246
1242
|
|
|
1247
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:602](https://github.com/isdk/ai-tool.js/blob/
|
|
1243
|
+
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)
|
|
1248
1244
|
|
|
1249
1245
|
Registers the current `ToolFunc` instance into the static registry.
|
|
1250
1246
|
Also registers any declared dependencies.
|
|
@@ -1263,9 +1259,9 @@ The instance itself upon successful registration, or `false` if it already exist
|
|
|
1263
1259
|
|
|
1264
1260
|
### run()
|
|
1265
1261
|
|
|
1266
|
-
> **run**(`params
|
|
1262
|
+
> **run**(`params?`): `Promise`\<`any`\>
|
|
1267
1263
|
|
|
1268
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:686](https://github.com/isdk/ai-tool.js/blob/
|
|
1264
|
+
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)
|
|
1269
1265
|
|
|
1270
1266
|
Executes the function asynchronously with a named parameters object.
|
|
1271
1267
|
|
|
@@ -1291,9 +1287,9 @@ A promise that resolves with the function's result.
|
|
|
1291
1287
|
|
|
1292
1288
|
### runAs()
|
|
1293
1289
|
|
|
1294
|
-
> **runAs**(`name`, `params
|
|
1290
|
+
> **runAs**(`name`, `params?`): `Promise`\<`any`\>
|
|
1295
1291
|
|
|
1296
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:697](https://github.com/isdk/ai-tool.js/blob/
|
|
1292
|
+
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)
|
|
1297
1293
|
|
|
1298
1294
|
Asynchronously executes another registered function by name.
|
|
1299
1295
|
This method delegates to `runAsSync()` internally.
|
|
@@ -1326,9 +1322,9 @@ A promise that resolves with the result of the function execution.
|
|
|
1326
1322
|
|
|
1327
1323
|
### runAsSync()
|
|
1328
1324
|
|
|
1329
|
-
> **runAsSync**(`name`, `params
|
|
1325
|
+
> **runAsSync**(`name`, `params?`): `any`
|
|
1330
1326
|
|
|
1331
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:708](https://github.com/isdk/ai-tool.js/blob/
|
|
1327
|
+
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)
|
|
1332
1328
|
|
|
1333
1329
|
Synchronously executes another registered function by name.
|
|
1334
1330
|
This is a convenience method that forwards the call to the static `runSync()` method.
|
|
@@ -1361,9 +1357,9 @@ The result of the function execution.
|
|
|
1361
1357
|
|
|
1362
1358
|
### runSync()
|
|
1363
1359
|
|
|
1364
|
-
> **runSync**(`params
|
|
1360
|
+
> **runSync**(`params?`): `any`
|
|
1365
1361
|
|
|
1366
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:667](https://github.com/isdk/ai-tool.js/blob/
|
|
1362
|
+
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)
|
|
1367
1363
|
|
|
1368
1364
|
Executes the function synchronously with a named parameters object.
|
|
1369
1365
|
|
|
@@ -1395,7 +1391,7 @@ Will throw an error if an array of parameters is passed to a function that expec
|
|
|
1395
1391
|
|
|
1396
1392
|
> **runWithPos**(...`params`): `Promise`\<`any`\>
|
|
1397
1393
|
|
|
1398
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:755](https://github.com/isdk/ai-tool.js/blob/
|
|
1394
|
+
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)
|
|
1399
1395
|
|
|
1400
1396
|
Executes the function asynchronously using positional arguments.
|
|
1401
1397
|
Delegates to `runWithPosSync()` internally.
|
|
@@ -1424,7 +1420,7 @@ A promise that resolves with the result of the function execution.
|
|
|
1424
1420
|
|
|
1425
1421
|
> **runWithPosAs**(`name`, ...`params`): `Promise`\<`any`\>
|
|
1426
1422
|
|
|
1427
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:766](https://github.com/isdk/ai-tool.js/blob/
|
|
1423
|
+
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)
|
|
1428
1424
|
|
|
1429
1425
|
Asynchronously executes another function by name using positional arguments.
|
|
1430
1426
|
Delegates to `runWithPosAsSync()` internally.
|
|
@@ -1459,7 +1455,7 @@ A promise that resolves with the result of the function execution.
|
|
|
1459
1455
|
|
|
1460
1456
|
> **runWithPosAsSync**(`name`, ...`params`): `any`
|
|
1461
1457
|
|
|
1462
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:745](https://github.com/isdk/ai-tool.js/blob/
|
|
1458
|
+
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)
|
|
1463
1459
|
|
|
1464
1460
|
Synchronously executes another function by name using positional arguments.
|
|
1465
1461
|
This is a convenience wrapper around the static `runWithPosSync()` method.
|
|
@@ -1494,7 +1490,7 @@ The result of the function execution.
|
|
|
1494
1490
|
|
|
1495
1491
|
> **runWithPosSync**(...`params`): `any`
|
|
1496
1492
|
|
|
1497
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:731](https://github.com/isdk/ai-tool.js/blob/
|
|
1493
|
+
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)
|
|
1498
1494
|
|
|
1499
1495
|
Executes the function synchronously using positional arguments.
|
|
1500
1496
|
If the function expects named parameters, it converts the arguments automatically.
|
|
@@ -1555,7 +1551,7 @@ Returns a date converted to a string using the current locale.
|
|
|
1555
1551
|
|
|
1556
1552
|
### toObject()
|
|
1557
1553
|
|
|
1558
|
-
> **toObject**(`options
|
|
1554
|
+
> **toObject**(`options?`): `any`
|
|
1559
1555
|
|
|
1560
1556
|
Defined in: [property-manager.js/src/abstract.d.ts:181](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L181)
|
|
1561
1557
|
|
|
@@ -1601,7 +1597,7 @@ Returns a string representation of an object.
|
|
|
1601
1597
|
|
|
1602
1598
|
> **unregister**(): `any`
|
|
1603
1599
|
|
|
1604
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:619](https://github.com/isdk/ai-tool.js/blob/
|
|
1600
|
+
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)
|
|
1605
1601
|
|
|
1606
1602
|
Removes the current `ToolFunc` instance from the static registry.
|
|
1607
1603
|
|
|
@@ -1648,9 +1644,13 @@ target object. Returns the target object.
|
|
|
1648
1644
|
|
|
1649
1645
|
##### Type Parameters
|
|
1650
1646
|
|
|
1651
|
-
|
|
1647
|
+
###### T
|
|
1648
|
+
|
|
1649
|
+
`T` *extends* `object`
|
|
1652
1650
|
|
|
1653
|
-
|
|
1651
|
+
###### U
|
|
1652
|
+
|
|
1653
|
+
`U`
|
|
1654
1654
|
|
|
1655
1655
|
##### Parameters
|
|
1656
1656
|
|
|
@@ -1685,11 +1685,17 @@ target object. Returns the target object.
|
|
|
1685
1685
|
|
|
1686
1686
|
##### Type Parameters
|
|
1687
1687
|
|
|
1688
|
-
|
|
1688
|
+
###### T
|
|
1689
|
+
|
|
1690
|
+
`T` *extends* `object`
|
|
1689
1691
|
|
|
1690
|
-
|
|
1692
|
+
###### U
|
|
1691
1693
|
|
|
1692
|
-
|
|
1694
|
+
`U`
|
|
1695
|
+
|
|
1696
|
+
###### V
|
|
1697
|
+
|
|
1698
|
+
`V`
|
|
1693
1699
|
|
|
1694
1700
|
##### Parameters
|
|
1695
1701
|
|
|
@@ -1730,13 +1736,21 @@ target object. Returns the target object.
|
|
|
1730
1736
|
|
|
1731
1737
|
##### Type Parameters
|
|
1732
1738
|
|
|
1733
|
-
|
|
1739
|
+
###### T
|
|
1740
|
+
|
|
1741
|
+
`T` *extends* `object`
|
|
1742
|
+
|
|
1743
|
+
###### U
|
|
1744
|
+
|
|
1745
|
+
`U`
|
|
1746
|
+
|
|
1747
|
+
###### V
|
|
1734
1748
|
|
|
1735
|
-
|
|
1749
|
+
`V`
|
|
1736
1750
|
|
|
1737
|
-
|
|
1751
|
+
###### W
|
|
1738
1752
|
|
|
1739
|
-
|
|
1753
|
+
`W`
|
|
1740
1754
|
|
|
1741
1755
|
##### Parameters
|
|
1742
1756
|
|
|
@@ -1865,7 +1879,7 @@ JavaScript object that contains one or more property descriptors.
|
|
|
1865
1879
|
|
|
1866
1880
|
### defineProperties()
|
|
1867
1881
|
|
|
1868
|
-
> `static` **defineProperties**(`aTarget`, `aProperties`, `recreate
|
|
1882
|
+
> `static` **defineProperties**(`aTarget`, `aProperties`, `recreate?`): `any`
|
|
1869
1883
|
|
|
1870
1884
|
Defined in: [property-manager.js/src/advance.d.ts:11](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/advance.d.ts#L11)
|
|
1871
1885
|
|
|
@@ -1905,7 +1919,9 @@ Adds a property to an object, or modifies attributes of an existing property.
|
|
|
1905
1919
|
|
|
1906
1920
|
#### Type Parameters
|
|
1907
1921
|
|
|
1908
|
-
|
|
1922
|
+
##### T
|
|
1923
|
+
|
|
1924
|
+
`T`
|
|
1909
1925
|
|
|
1910
1926
|
#### Parameters
|
|
1911
1927
|
|
|
@@ -1949,7 +1965,9 @@ Returns an array of key/values of the enumerable own properties of an object
|
|
|
1949
1965
|
|
|
1950
1966
|
##### Type Parameters
|
|
1951
1967
|
|
|
1952
|
-
|
|
1968
|
+
###### T
|
|
1969
|
+
|
|
1970
|
+
`T`
|
|
1953
1971
|
|
|
1954
1972
|
##### Parameters
|
|
1955
1973
|
|
|
@@ -1957,7 +1975,7 @@ Returns an array of key/values of the enumerable own properties of an object
|
|
|
1957
1975
|
|
|
1958
1976
|
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
1959
1977
|
|
|
1960
|
-
\{\} | `ArrayLike`\<`T`\>
|
|
1978
|
+
\{\[`s`: `string`\]: `T`; \} | `ArrayLike`\<`T`\>
|
|
1961
1979
|
|
|
1962
1980
|
##### Returns
|
|
1963
1981
|
|
|
@@ -1993,9 +2011,9 @@ Object that contains the properties and methods. This can be an object that you
|
|
|
1993
2011
|
|
|
1994
2012
|
### fetch()
|
|
1995
2013
|
|
|
1996
|
-
> `static` **fetch**(`name`, `objParam
|
|
2014
|
+
> `static` **fetch**(`name`, `objParam?`, ...`args?`): `Promise`\<`any`\>
|
|
1997
2015
|
|
|
1998
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
2016
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:99](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/client-tools.ts#L99)
|
|
1999
2017
|
|
|
2000
2018
|
#### Parameters
|
|
2001
2019
|
|
|
@@ -2029,7 +2047,9 @@ Prevents the modification of existing property attributes and values, and preven
|
|
|
2029
2047
|
|
|
2030
2048
|
##### Type Parameters
|
|
2031
2049
|
|
|
2032
|
-
|
|
2050
|
+
###### T
|
|
2051
|
+
|
|
2052
|
+
`T` *extends* `Function`
|
|
2033
2053
|
|
|
2034
2054
|
##### Parameters
|
|
2035
2055
|
|
|
@@ -2057,9 +2077,13 @@ Prevents the modification of existing property attributes and values, and preven
|
|
|
2057
2077
|
|
|
2058
2078
|
##### Type Parameters
|
|
2059
2079
|
|
|
2060
|
-
|
|
2080
|
+
###### T
|
|
2081
|
+
|
|
2082
|
+
`T` *extends* `object`
|
|
2083
|
+
|
|
2084
|
+
###### U
|
|
2061
2085
|
|
|
2062
|
-
|
|
2086
|
+
`U` *extends* `string` \| `number` \| `bigint` \| `boolean` \| `symbol`
|
|
2063
2087
|
|
|
2064
2088
|
##### Parameters
|
|
2065
2089
|
|
|
@@ -2087,7 +2111,9 @@ Prevents the modification of existing property attributes and values, and preven
|
|
|
2087
2111
|
|
|
2088
2112
|
##### Type Parameters
|
|
2089
2113
|
|
|
2090
|
-
|
|
2114
|
+
###### T
|
|
2115
|
+
|
|
2116
|
+
`T`
|
|
2091
2117
|
|
|
2092
2118
|
##### Parameters
|
|
2093
2119
|
|
|
@@ -2119,7 +2145,9 @@ Returns an object created by key-value entries for properties and methods
|
|
|
2119
2145
|
|
|
2120
2146
|
##### Type Parameters
|
|
2121
2147
|
|
|
2122
|
-
|
|
2148
|
+
###### T
|
|
2149
|
+
|
|
2150
|
+
`T` = `any`
|
|
2123
2151
|
|
|
2124
2152
|
##### Parameters
|
|
2125
2153
|
|
|
@@ -2167,7 +2195,7 @@ An iterable object that contains key-value entries for properties and methods.
|
|
|
2167
2195
|
|
|
2168
2196
|
> `static` **get**(`name`): [`ToolFunc`](ToolFunc.md)
|
|
2169
2197
|
|
|
2170
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:319](https://github.com/isdk/ai-tool.js/blob/
|
|
2198
|
+
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)
|
|
2171
2199
|
|
|
2172
2200
|
Retrieves a registered function by its name or alias.
|
|
2173
2201
|
|
|
@@ -2195,7 +2223,7 @@ The `ToolFunc` instance if found, otherwise `undefined`.
|
|
|
2195
2223
|
|
|
2196
2224
|
> `static` **getAllByTag**(`tagName`): [`ToolFunc`](ToolFunc.md)[]
|
|
2197
2225
|
|
|
2198
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:365](https://github.com/isdk/ai-tool.js/blob/
|
|
2226
|
+
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)
|
|
2199
2227
|
|
|
2200
2228
|
Retrieves all registered functions that have a specific tag.
|
|
2201
2229
|
|
|
@@ -2223,7 +2251,7 @@ An array of matching `ToolFunc` instances.
|
|
|
2223
2251
|
|
|
2224
2252
|
> `static` **getByTag**(`tagName`): `undefined` \| [`ToolFunc`](ToolFunc.md)
|
|
2225
2253
|
|
|
2226
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:340](https://github.com/isdk/ai-tool.js/blob/
|
|
2254
|
+
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)
|
|
2227
2255
|
|
|
2228
2256
|
Finds the first registered function that has a specific tag.
|
|
2229
2257
|
|
|
@@ -2251,7 +2279,7 @@ The first matching `ToolFunc` instance, or `undefined` if none is found.
|
|
|
2251
2279
|
|
|
2252
2280
|
> `static` **getFunc**(`name`): `any`
|
|
2253
2281
|
|
|
2254
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:431](https://github.com/isdk/ai-tool.js/blob/
|
|
2282
|
+
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)
|
|
2255
2283
|
|
|
2256
2284
|
Retrieves a bound, runnable function reference for a registered function.
|
|
2257
2285
|
This reference is suitable for execution with an object of named parameters.
|
|
@@ -2280,7 +2308,7 @@ A bound function reference, or `undefined` if not found.
|
|
|
2280
2308
|
|
|
2281
2309
|
> `static` **getFuncWithPos**(`name`): `any`
|
|
2282
2310
|
|
|
2283
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:472](https://github.com/isdk/ai-tool.js/blob/
|
|
2311
|
+
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)
|
|
2284
2312
|
|
|
2285
2313
|
Retrieves a bound, runnable function reference for a registered function.
|
|
2286
2314
|
This reference is suitable for execution with positional arguments.
|
|
@@ -2348,7 +2376,9 @@ Returns an object containing all own property descriptors of an object
|
|
|
2348
2376
|
|
|
2349
2377
|
#### Type Parameters
|
|
2350
2378
|
|
|
2351
|
-
|
|
2379
|
+
##### T
|
|
2380
|
+
|
|
2381
|
+
`T`
|
|
2352
2382
|
|
|
2353
2383
|
#### Parameters
|
|
2354
2384
|
|
|
@@ -2469,7 +2499,7 @@ The object that references the prototype.
|
|
|
2469
2499
|
|
|
2470
2500
|
> `static` **hasAsyncFeature**(`feature`): `boolean`
|
|
2471
2501
|
|
|
2472
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:388](https://github.com/isdk/ai-tool.js/blob/
|
|
2502
|
+
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)
|
|
2473
2503
|
|
|
2474
2504
|
Checks if any registered function has a specific asynchronous feature.
|
|
2475
2505
|
|
|
@@ -2689,7 +2719,7 @@ Object that contains the properties and methods. This can be an object that you
|
|
|
2689
2719
|
|
|
2690
2720
|
> `static` **list**(): [`Funcs`](../interfaces/Funcs.md)
|
|
2691
2721
|
|
|
2692
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:331](https://github.com/isdk/ai-tool.js/blob/
|
|
2722
|
+
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)
|
|
2693
2723
|
|
|
2694
2724
|
Returns the complete map of all registered functions.
|
|
2695
2725
|
|
|
@@ -2707,9 +2737,9 @@ The map of `ToolFunc` instances.
|
|
|
2707
2737
|
|
|
2708
2738
|
### loadFrom()
|
|
2709
2739
|
|
|
2710
|
-
> `static` **loadFrom**(`items
|
|
2740
|
+
> `static` **loadFrom**(`items?`): `Promise`\<[`Funcs`](../interfaces/Funcs.md)\>
|
|
2711
2741
|
|
|
2712
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
2742
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:69](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/client-tools.ts#L69)
|
|
2713
2743
|
|
|
2714
2744
|
Loads tool definitions from the remote server via the configured transport.
|
|
2715
2745
|
This method populates the local `ToolFunc` registry with `ClientTools` stubs.
|
|
@@ -2730,7 +2760,7 @@ This method populates the local `ToolFunc` registry with `ClientTools` stubs.
|
|
|
2730
2760
|
|
|
2731
2761
|
> `static` **loadFromSync**(`items`): `void`
|
|
2732
2762
|
|
|
2733
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
2763
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:85](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/client-tools.ts#L85)
|
|
2734
2764
|
|
|
2735
2765
|
Synchronously loads tool definitions from a provided object, registering
|
|
2736
2766
|
each one as a `ClientTools` instance.
|
|
@@ -2759,7 +2789,9 @@ Prevents the addition of new properties to an object.
|
|
|
2759
2789
|
|
|
2760
2790
|
#### Type Parameters
|
|
2761
2791
|
|
|
2762
|
-
|
|
2792
|
+
##### T
|
|
2793
|
+
|
|
2794
|
+
`T`
|
|
2763
2795
|
|
|
2764
2796
|
#### Parameters
|
|
2765
2797
|
|
|
@@ -2785,7 +2817,7 @@ Object to make non-extensible.
|
|
|
2785
2817
|
|
|
2786
2818
|
> `static` **register**(`name`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2787
2819
|
|
|
2788
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:495](https://github.com/isdk/ai-tool.js/blob/
|
|
2820
|
+
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)
|
|
2789
2821
|
|
|
2790
2822
|
Registers a new tool function.
|
|
2791
2823
|
|
|
@@ -2809,10 +2841,6 @@ The function's configuration.
|
|
|
2809
2841
|
|
|
2810
2842
|
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2811
2843
|
|
|
2812
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2813
|
-
|
|
2814
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2815
|
-
|
|
2816
2844
|
##### Inherited from
|
|
2817
2845
|
|
|
2818
2846
|
[`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register-2)
|
|
@@ -2821,7 +2849,7 @@ The new `ToolFunc` instance, or `false` if a function with that name already exi
|
|
|
2821
2849
|
|
|
2822
2850
|
> `static` **register**(`func`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2823
2851
|
|
|
2824
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:496](https://github.com/isdk/ai-tool.js/blob/
|
|
2852
|
+
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)
|
|
2825
2853
|
|
|
2826
2854
|
Registers a new tool function.
|
|
2827
2855
|
|
|
@@ -2845,19 +2873,15 @@ The function's configuration.
|
|
|
2845
2873
|
|
|
2846
2874
|
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2847
2875
|
|
|
2848
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2849
|
-
|
|
2850
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2851
|
-
|
|
2852
2876
|
##### Inherited from
|
|
2853
2877
|
|
|
2854
2878
|
[`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register-2)
|
|
2855
2879
|
|
|
2856
2880
|
#### Call Signature
|
|
2857
2881
|
|
|
2858
|
-
> `static` **register**(`name`, `options
|
|
2882
|
+
> `static` **register**(`name`, `options?`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2859
2883
|
|
|
2860
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:497](https://github.com/isdk/ai-tool.js/blob/
|
|
2884
|
+
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)
|
|
2861
2885
|
|
|
2862
2886
|
Registers a new tool function.
|
|
2863
2887
|
|
|
@@ -2881,10 +2905,6 @@ The function's configuration.
|
|
|
2881
2905
|
|
|
2882
2906
|
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2883
2907
|
|
|
2884
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2885
|
-
|
|
2886
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2887
|
-
|
|
2888
2908
|
##### Inherited from
|
|
2889
2909
|
|
|
2890
2910
|
[`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register-2)
|
|
@@ -2893,9 +2913,9 @@ The new `ToolFunc` instance, or `false` if a function with that name already exi
|
|
|
2893
2913
|
|
|
2894
2914
|
### run()
|
|
2895
2915
|
|
|
2896
|
-
> `static` **run**(`name`, `params
|
|
2916
|
+
> `static` **run**(`name`, `params?`): `Promise`\<`any`\>
|
|
2897
2917
|
|
|
2898
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:402](https://github.com/isdk/ai-tool.js/blob/
|
|
2918
|
+
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)
|
|
2899
2919
|
|
|
2900
2920
|
Asynchronously executes a registered function by name with named parameters.
|
|
2901
2921
|
|
|
@@ -2931,9 +2951,9 @@ If the function with the given name is not found.
|
|
|
2931
2951
|
|
|
2932
2952
|
### runSync()
|
|
2933
2953
|
|
|
2934
|
-
> `static` **runSync**(`name`, `params
|
|
2954
|
+
> `static` **runSync**(`name`, `params?`): `any`
|
|
2935
2955
|
|
|
2936
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:417](https://github.com/isdk/ai-tool.js/blob/
|
|
2956
|
+
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)
|
|
2937
2957
|
|
|
2938
2958
|
Synchronously executes a registered function by name with named parameters.
|
|
2939
2959
|
|
|
@@ -2971,7 +2991,7 @@ If the function with the given name is not found.
|
|
|
2971
2991
|
|
|
2972
2992
|
> `static` **runWithPos**(`name`, ...`params`): `Promise`\<`any`\>
|
|
2973
2993
|
|
|
2974
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:443](https://github.com/isdk/ai-tool.js/blob/
|
|
2994
|
+
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)
|
|
2975
2995
|
|
|
2976
2996
|
Asynchronously executes a function using positional arguments.
|
|
2977
2997
|
|
|
@@ -3009,7 +3029,7 @@ If the function with the given name is not found.
|
|
|
3009
3029
|
|
|
3010
3030
|
> `static` **runWithPosSync**(`name`, ...`params`): `any`
|
|
3011
3031
|
|
|
3012
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:458](https://github.com/isdk/ai-tool.js/blob/
|
|
3032
|
+
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)
|
|
3013
3033
|
|
|
3014
3034
|
Synchronously executes a function using positional arguments.
|
|
3015
3035
|
|
|
@@ -3053,7 +3073,9 @@ Prevents the modification of attributes of existing properties, and prevents the
|
|
|
3053
3073
|
|
|
3054
3074
|
#### Type Parameters
|
|
3055
3075
|
|
|
3056
|
-
|
|
3076
|
+
##### T
|
|
3077
|
+
|
|
3078
|
+
`T`
|
|
3057
3079
|
|
|
3058
3080
|
#### Parameters
|
|
3059
3081
|
|
|
@@ -3109,7 +3131,7 @@ The value of the new prototype or null.
|
|
|
3109
3131
|
|
|
3110
3132
|
> `static` **setTransport**(`transport`): `void`
|
|
3111
3133
|
|
|
3112
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
3134
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:51](https://github.com/isdk/ai-tool.js/blob/d0765f898f217d97c57c6949502b4a7bef5dce5e/src/client-tools.ts#L51)
|
|
3113
3135
|
|
|
3114
3136
|
Injects the client-side transport implementation. This is a crucial step
|
|
3115
3137
|
to enable communication with the server.
|
|
@@ -3132,7 +3154,7 @@ The transport instance to use for all client-server communication.
|
|
|
3132
3154
|
|
|
3133
3155
|
> `static` **unregister**(`name`): `undefined` \| [`ToolFunc`](ToolFunc.md)
|
|
3134
3156
|
|
|
3135
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:547](https://github.com/isdk/ai-tool.js/blob/
|
|
3157
|
+
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)
|
|
3136
3158
|
|
|
3137
3159
|
Unregisters a function by its name, also removing any associated aliases.
|
|
3138
3160
|
|
|
@@ -3168,7 +3190,9 @@ Returns an array of values of the enumerable own properties of an object
|
|
|
3168
3190
|
|
|
3169
3191
|
##### Type Parameters
|
|
3170
3192
|
|
|
3171
|
-
|
|
3193
|
+
###### T
|
|
3194
|
+
|
|
3195
|
+
`T`
|
|
3172
3196
|
|
|
3173
3197
|
##### Parameters
|
|
3174
3198
|
|
|
@@ -3176,7 +3200,7 @@ Returns an array of values of the enumerable own properties of an object
|
|
|
3176
3200
|
|
|
3177
3201
|
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
3178
3202
|
|
|
3179
|
-
\{\} | `ArrayLike`\<`T`\>
|
|
3203
|
+
\{\[`s`: `string`\]: `T`; \} | `ArrayLike`\<`T`\>
|
|
3180
3204
|
|
|
3181
3205
|
##### Returns
|
|
3182
3206
|
|