@isdk/ai-tool 0.7.1 → 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.
- 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 +10 -9
- 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: RpcMethodsClientTool
|
|
8
8
|
|
|
9
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:9](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:9](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/rpc-methods-client-tool.ts#L9)
|
|
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 RpcMethodsClientTool**(`name`, `options
|
|
36
|
+
> **new RpcMethodsClientTool**(`name`, `options?`): `RpcMethodsClientTool`
|
|
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/fb1809b53cc75a30928176c26910792b6b8a96e1/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
|
+
`RpcMethodsClientTool`
|
|
59
59
|
|
|
60
60
|
#### Inherited from
|
|
61
61
|
|
|
62
|
-
[`ClientTools`](ClientTools.md).[`constructor`](ClientTools.md#
|
|
62
|
+
[`ClientTools`](ClientTools.md).[`constructor`](ClientTools.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
|
-
[`ClientTools`](ClientTools.md).[`$attributes`](ClientTools.md
|
|
74
|
+
[`ClientTools`](ClientTools.md).[`$attributes`](ClientTools.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/fb1809b53cc75a30928176c26910792b6b8a96e1/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,7 +94,7 @@ 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/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L130)
|
|
98
98
|
|
|
99
99
|
Optional aliases for the function name.
|
|
100
100
|
|
|
@@ -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/fb1809b53cc75a30928176c26910792b6b8a96e1/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.
|
|
@@ -174,7 +174,7 @@ The default options for export and assign
|
|
|
174
174
|
|
|
175
175
|
> `optional` **depends**: `object`
|
|
176
176
|
|
|
177
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:167](https://github.com/isdk/ai-tool.js/blob/
|
|
177
|
+
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)
|
|
178
178
|
|
|
179
179
|
A map of dependencies this function has on other tool functions.
|
|
180
180
|
Declaring dependencies ensures that they are automatically registered when this function is registered.
|
|
@@ -213,7 +213,7 @@ mainFunc.register();
|
|
|
213
213
|
|
|
214
214
|
> `optional` **description**: `string`
|
|
215
215
|
|
|
216
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:172](https://github.com/isdk/ai-tool.js/blob/
|
|
216
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:172](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L172)
|
|
217
217
|
|
|
218
218
|
A detailed description of what the function does.
|
|
219
219
|
|
|
@@ -223,17 +223,13 @@ A detailed description of what the function does.
|
|
|
223
223
|
|
|
224
224
|
***
|
|
225
225
|
|
|
226
|
-
###
|
|
226
|
+
### fetchOptions?
|
|
227
227
|
|
|
228
228
|
> `optional` **fetchOptions**: `any`
|
|
229
229
|
|
|
230
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/consts.ts:
|
|
231
|
-
|
|
232
|
-
Options to be passed to the underlying `fetch` call in an HTTP transport.
|
|
233
|
-
|
|
234
|
-
#### Deprecated
|
|
230
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/consts.ts:100](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/utils/consts.ts#L100)
|
|
235
231
|
|
|
236
|
-
|
|
232
|
+
Addtional options to be passed to the underlying `fetch` call in a transport.
|
|
237
233
|
|
|
238
234
|
#### Inherited from
|
|
239
235
|
|
|
@@ -245,7 +241,7 @@ Use `transport` instead.
|
|
|
245
241
|
|
|
246
242
|
> `optional` **isApi**: `boolean`
|
|
247
243
|
|
|
248
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:119](https://github.com/isdk/ai-tool.js/blob/
|
|
244
|
+
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)
|
|
249
245
|
|
|
250
246
|
If true, indicates that this function should be treated as a server-side API.
|
|
251
247
|
|
|
@@ -259,13 +255,13 @@ If true, indicates that this function should be treated as a server-side API.
|
|
|
259
255
|
|
|
260
256
|
> `optional` **name**: `string`
|
|
261
257
|
|
|
262
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:76](https://github.com/isdk/ai-tool.js/blob/
|
|
258
|
+
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)
|
|
263
259
|
|
|
264
260
|
The unique name of the function.
|
|
265
261
|
|
|
266
262
|
#### Inherited from
|
|
267
263
|
|
|
268
|
-
[`ClientTools`](ClientTools.md).[`name`](ClientTools.md#name
|
|
264
|
+
[`ClientTools`](ClientTools.md).[`name`](ClientTools.md#name)
|
|
269
265
|
|
|
270
266
|
***
|
|
271
267
|
|
|
@@ -287,7 +283,7 @@ the property with the default prefix '$' will not be exported.
|
|
|
287
283
|
|
|
288
284
|
> `optional` **params**: [`FuncParams`](../interfaces/FuncParams.md) \| [`FuncParam`](../interfaces/FuncParam.md)[]
|
|
289
285
|
|
|
290
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:81](https://github.com/isdk/ai-tool.js/blob/
|
|
286
|
+
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)
|
|
291
287
|
|
|
292
288
|
Parameter definitions, which can be an object mapping names to definitions or an array for positional parameters.
|
|
293
289
|
|
|
@@ -301,7 +297,7 @@ Parameter definitions, which can be an object mapping names to definitions or an
|
|
|
301
297
|
|
|
302
298
|
> `optional` **result**: `string` \| `Record`\<`string`, `any`\>
|
|
303
299
|
|
|
304
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:86](https://github.com/isdk/ai-tool.js/blob/
|
|
300
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:86](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/tool-func.ts#L86)
|
|
305
301
|
|
|
306
302
|
The expected return type of the function, described as a string or a JSON schema object.
|
|
307
303
|
|
|
@@ -315,7 +311,7 @@ The expected return type of the function, described as a string or a JSON schema
|
|
|
315
311
|
|
|
316
312
|
> `optional` **scope**: `any`
|
|
317
313
|
|
|
318
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:91](https://github.com/isdk/ai-tool.js/blob/
|
|
314
|
+
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)
|
|
319
315
|
|
|
320
316
|
The execution scope or context (`this`) for the function.
|
|
321
317
|
|
|
@@ -327,9 +323,9 @@ The execution scope or context (`this`) for the function.
|
|
|
327
323
|
|
|
328
324
|
### setup()?
|
|
329
325
|
|
|
330
|
-
> `optional` **setup**: (`this`, `options
|
|
326
|
+
> `optional` **setup**: (`this`, `options?`) => `void`
|
|
331
327
|
|
|
332
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:114](https://github.com/isdk/ai-tool.js/blob/
|
|
328
|
+
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)
|
|
333
329
|
|
|
334
330
|
A lifecycle hook called once during the `ToolFunc` instance's initialization.
|
|
335
331
|
It allows for initial setup, state configuration, or property modification on the instance
|
|
@@ -375,7 +371,7 @@ console.log(myFunc.customState); // Outputs: 'configured'
|
|
|
375
371
|
|
|
376
372
|
> `optional` **stream**: `boolean`
|
|
377
373
|
|
|
378
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:125](https://github.com/isdk/ai-tool.js/blob/
|
|
374
|
+
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)
|
|
379
375
|
|
|
380
376
|
If true, indicates that the function has the *capability* to stream its output.
|
|
381
377
|
Whether a specific call is streamed is determined by a `stream` property in the runtime parameters.
|
|
@@ -390,7 +386,7 @@ Whether a specific call is streamed is determined by a `stream` property in the
|
|
|
390
386
|
|
|
391
387
|
> `optional` **tags**: `string` \| `string`[]
|
|
392
388
|
|
|
393
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:96](https://github.com/isdk/ai-tool.js/blob/
|
|
389
|
+
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)
|
|
394
390
|
|
|
395
391
|
Tags for grouping or filtering functions.
|
|
396
392
|
|
|
@@ -404,7 +400,7 @@ Tags for grouping or filtering functions.
|
|
|
404
400
|
|
|
405
401
|
> `optional` **title**: `string`
|
|
406
402
|
|
|
407
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:177](https://github.com/isdk/ai-tool.js/blob/
|
|
403
|
+
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)
|
|
408
404
|
|
|
409
405
|
A concise, human-readable title for the function, often used in UI or by AI.
|
|
410
406
|
|
|
@@ -418,7 +414,7 @@ A concise, human-readable title for the function, often used in UI or by AI.
|
|
|
418
414
|
|
|
419
415
|
> `static` `optional` **action**: `string`
|
|
420
416
|
|
|
421
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
417
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:33](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/client-tools.ts#L33)
|
|
422
418
|
|
|
423
419
|
#### Inherited from
|
|
424
420
|
|
|
@@ -430,7 +426,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:32](https://git
|
|
|
430
426
|
|
|
431
427
|
> `static` **aliases**: `object` = `{}`
|
|
432
428
|
|
|
433
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:305](https://github.com/isdk/ai-tool.js/blob/
|
|
429
|
+
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)
|
|
434
430
|
|
|
435
431
|
A static map of aliases to their corresponding function names.
|
|
436
432
|
|
|
@@ -448,7 +444,7 @@ A static map of aliases to their corresponding function names.
|
|
|
448
444
|
|
|
449
445
|
> `static` **dataPath**: `string`
|
|
450
446
|
|
|
451
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:312](https://github.com/isdk/ai-tool.js/blob/
|
|
447
|
+
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)
|
|
452
448
|
|
|
453
449
|
A conventional property to designate a file path for saving the registered `ToolFunc` data.
|
|
454
450
|
Note: The `ToolFunc` class itself does not implement persistence logic. It is up to the
|
|
@@ -464,7 +460,7 @@ developer to use this path to save and load the `ToolFunc.items` registry if nee
|
|
|
464
460
|
|
|
465
461
|
> `static` **items**: [`Funcs`](../interfaces/Funcs.md) = `{}`
|
|
466
462
|
|
|
467
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:300](https://github.com/isdk/ai-tool.js/blob/
|
|
463
|
+
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)
|
|
468
464
|
|
|
469
465
|
A static registry of all `ToolFunc` instances, indexed by name.
|
|
470
466
|
|
|
@@ -480,12 +476,10 @@ A static registry of all `ToolFunc` instances, indexed by name.
|
|
|
480
476
|
|
|
481
477
|
> **get** **apiRoot**(): `string`
|
|
482
478
|
|
|
483
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
484
|
-
|
|
485
|
-
##### Deprecated
|
|
479
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:110](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/client-tools.ts#L110)
|
|
486
480
|
|
|
487
|
-
|
|
488
|
-
|
|
481
|
+
Gets the root URL for API endpoints from the configured transport.
|
|
482
|
+
This is used as the base for constructing request URLs.
|
|
489
483
|
|
|
490
484
|
##### Returns
|
|
491
485
|
|
|
@@ -509,12 +503,10 @@ Use `transport` instead.
|
|
|
509
503
|
|
|
510
504
|
> **get** `static` **apiRoot**(): `string`
|
|
511
505
|
|
|
512
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
506
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:41](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/client-tools.ts#L41)
|
|
513
507
|
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
This property is now mainly for informational purposes.
|
|
517
|
-
The actual endpoint is managed by the transport.
|
|
508
|
+
Gets the root URL for API endpoints from the configured transport.
|
|
509
|
+
This is used as the base for constructing request URLs.
|
|
518
510
|
|
|
519
511
|
##### Returns
|
|
520
512
|
|
|
@@ -522,7 +514,7 @@ The actual endpoint is managed by the transport.
|
|
|
522
514
|
|
|
523
515
|
#### Inherited from
|
|
524
516
|
|
|
525
|
-
[`ClientTools`](ClientTools.md).[`apiRoot`](ClientTools.md#apiroot-
|
|
517
|
+
[`ClientTools`](ClientTools.md).[`apiRoot`](ClientTools.md#apiroot-1)
|
|
526
518
|
|
|
527
519
|
***
|
|
528
520
|
|
|
@@ -532,7 +524,7 @@ The actual endpoint is managed by the transport.
|
|
|
532
524
|
|
|
533
525
|
> **get** `static` **transport**(): [`IClientToolTransport`](../interfaces/IClientToolTransport.md)
|
|
534
526
|
|
|
535
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
527
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:61](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/client-tools.ts#L61)
|
|
536
528
|
|
|
537
529
|
##### Returns
|
|
538
530
|
|
|
@@ -546,9 +538,9 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:60](https://git
|
|
|
546
538
|
|
|
547
539
|
### \_func()
|
|
548
540
|
|
|
549
|
-
> **\_func**(`action`, `options`): `Promise`\<`any`\>
|
|
541
|
+
> **\_func**(`action`, `options`, `fetchOptions?`): `Promise`\<`any`\>
|
|
550
542
|
|
|
551
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:19](https://github.com/isdk/ai-tool.js/blob/
|
|
543
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:19](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/rpc-methods-client-tool.ts#L19)
|
|
552
544
|
|
|
553
545
|
#### Parameters
|
|
554
546
|
|
|
@@ -560,6 +552,10 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:19](
|
|
|
560
552
|
|
|
561
553
|
[`RpcMethodsClientFuncParams`](../interfaces/RpcMethodsClientFuncParams.md)
|
|
562
554
|
|
|
555
|
+
##### fetchOptions?
|
|
556
|
+
|
|
557
|
+
`any`
|
|
558
|
+
|
|
563
559
|
#### Returns
|
|
564
560
|
|
|
565
561
|
`Promise`\<`any`\>
|
|
@@ -570,7 +566,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:19](
|
|
|
570
566
|
|
|
571
567
|
> **arr2ObjParams**(`params`): `any`[]
|
|
572
568
|
|
|
573
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:629](https://github.com/isdk/ai-tool.js/blob/
|
|
569
|
+
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)
|
|
574
570
|
|
|
575
571
|
Converts an array of positional arguments into a named parameters object.
|
|
576
572
|
This is used internally to support functions defined with named parameters.
|
|
@@ -597,7 +593,7 @@ An array containing a single parameters object.
|
|
|
597
593
|
|
|
598
594
|
### assign()
|
|
599
595
|
|
|
600
|
-
> **assign**(`src`, `options
|
|
596
|
+
> **assign**(`src`, `options?`): `this`
|
|
601
597
|
|
|
602
598
|
Defined in: [property-manager.js/src/abstract.d.ts:106](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L106)
|
|
603
599
|
|
|
@@ -631,7 +627,7 @@ this object
|
|
|
631
627
|
|
|
632
628
|
> **assignMethods**(`methods`): `void`
|
|
633
629
|
|
|
634
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:32](https://github.com/isdk/ai-tool.js/blob/
|
|
630
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:32](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/rpc-methods-client-tool.ts#L32)
|
|
635
631
|
|
|
636
632
|
#### Parameters
|
|
637
633
|
|
|
@@ -647,7 +643,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:32](
|
|
|
647
643
|
|
|
648
644
|
### assignProperty()
|
|
649
645
|
|
|
650
|
-
> **assignProperty**(`src`, `name`, `value`, `attrs
|
|
646
|
+
> **assignProperty**(`src`, `name`, `value`, `attrs?`, `options?`): `void`
|
|
651
647
|
|
|
652
648
|
Defined in: [property-manager.js/src/abstract.d.ts:117](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L117)
|
|
653
649
|
|
|
@@ -695,7 +691,7 @@ the attributes object
|
|
|
695
691
|
|
|
696
692
|
### assignPropertyTo()
|
|
697
693
|
|
|
698
|
-
> `abstract` **assignPropertyTo**(`dest`, `src`, `name`, `value`, `attrs
|
|
694
|
+
> `abstract` **assignPropertyTo**(`dest`, `src`, `name`, `value`, `attrs?`, `options?`): `void`
|
|
699
695
|
|
|
700
696
|
Defined in: [property-manager.js/src/abstract.d.ts:131](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L131)
|
|
701
697
|
|
|
@@ -749,7 +745,7 @@ The attributes object of the property
|
|
|
749
745
|
|
|
750
746
|
### assignTo()
|
|
751
747
|
|
|
752
|
-
> **assignTo**(`dest
|
|
748
|
+
> **assignTo**(`dest?`, `options?`): `any`
|
|
753
749
|
|
|
754
750
|
Defined in: [property-manager.js/src/abstract.d.ts:191](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L191)
|
|
755
751
|
|
|
@@ -781,7 +777,7 @@ the dest object
|
|
|
781
777
|
|
|
782
778
|
### clone()
|
|
783
779
|
|
|
784
|
-
> **clone**(`options
|
|
780
|
+
> **clone**(`options?`): `any`
|
|
785
781
|
|
|
786
782
|
Defined in: [property-manager.js/src/abstract.d.ts:155](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L155)
|
|
787
783
|
|
|
@@ -807,7 +803,7 @@ the new object
|
|
|
807
803
|
|
|
808
804
|
### cloneTo()
|
|
809
805
|
|
|
810
|
-
> **cloneTo**(`dest`, `options
|
|
806
|
+
> **cloneTo**(`dest`, `options?`): `any`
|
|
811
807
|
|
|
812
808
|
Defined in: [property-manager.js/src/abstract.d.ts:148](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L148)
|
|
813
809
|
|
|
@@ -865,7 +861,7 @@ the defined attributes of the object
|
|
|
865
861
|
|
|
866
862
|
### exportTo()
|
|
867
863
|
|
|
868
|
-
> **exportTo**(`dest`, `options
|
|
864
|
+
> **exportTo**(`dest`, `options?`): `any`
|
|
869
865
|
|
|
870
866
|
Defined in: [property-manager.js/src/abstract.d.ts:173](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L173)
|
|
871
867
|
|
|
@@ -897,9 +893,9 @@ the dest object.
|
|
|
897
893
|
|
|
898
894
|
### fetch()
|
|
899
895
|
|
|
900
|
-
> **fetch**(`options`, `action`, `subName
|
|
896
|
+
> **fetch**(`options`, `action`, `subName?`, `fetchOptions?`): `Promise`\<`any`\>
|
|
901
897
|
|
|
902
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:10](https://github.com/isdk/ai-tool.js/blob/
|
|
898
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:10](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/rpc-methods-client-tool.ts#L10)
|
|
903
899
|
|
|
904
900
|
#### Parameters
|
|
905
901
|
|
|
@@ -915,6 +911,10 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:10](
|
|
|
915
911
|
|
|
916
912
|
`any`
|
|
917
913
|
|
|
914
|
+
##### fetchOptions?
|
|
915
|
+
|
|
916
|
+
`any`
|
|
917
|
+
|
|
918
918
|
#### Returns
|
|
919
919
|
|
|
920
920
|
`Promise`\<`any`\>
|
|
@@ -929,7 +929,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:10](
|
|
|
929
929
|
|
|
930
930
|
> **func**(`options`): `Promise`\<`any`\>
|
|
931
931
|
|
|
932
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:24](https://github.com/isdk/ai-tool.js/blob/
|
|
932
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/rpc-methods-client-tool.ts:24](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/rpc-methods-client-tool.ts#L24)
|
|
933
933
|
|
|
934
934
|
The core implementation for a client-side tool. When a `ClientTools` instance
|
|
935
935
|
is "run", this `func` method is executed. It delegates the call to the
|
|
@@ -955,9 +955,9 @@ The result from the remote tool.
|
|
|
955
955
|
|
|
956
956
|
### getFunc()
|
|
957
957
|
|
|
958
|
-
> **getFunc**(`name
|
|
958
|
+
> **getFunc**(`name?`): `any`
|
|
959
959
|
|
|
960
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:720](https://github.com/isdk/ai-tool.js/blob/
|
|
960
|
+
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)
|
|
961
961
|
|
|
962
962
|
Gets a bound function reference for execution with named parameters.
|
|
963
963
|
If a name is provided, it retrieves a different function from the registry.
|
|
@@ -985,9 +985,9 @@ A function reference or `undefined` if not found.
|
|
|
985
985
|
|
|
986
986
|
### getFuncWithPos()
|
|
987
987
|
|
|
988
|
-
> **getFuncWithPos**(`name
|
|
988
|
+
> **getFuncWithPos**(`name?`): `any`
|
|
989
989
|
|
|
990
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:777](https://github.com/isdk/ai-tool.js/blob/
|
|
990
|
+
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)
|
|
991
991
|
|
|
992
992
|
Gets a bound function reference suitable for positional argument execution.
|
|
993
993
|
If a name is provided, it retrieves a different function from the registry.
|
|
@@ -1037,7 +1037,7 @@ the descriptors of properties object
|
|
|
1037
1037
|
|
|
1038
1038
|
> **hasAsyncFeature**(`feature`): `boolean`
|
|
1039
1039
|
|
|
1040
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:787](https://github.com/isdk/ai-tool.js/blob/
|
|
1040
|
+
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)
|
|
1041
1041
|
|
|
1042
1042
|
Checks if the current function instance supports a specific async feature.
|
|
1043
1043
|
|
|
@@ -1089,7 +1089,7 @@ A property name.
|
|
|
1089
1089
|
|
|
1090
1090
|
### initialize()
|
|
1091
1091
|
|
|
1092
|
-
> **initialize**(`src
|
|
1092
|
+
> **initialize**(`src?`): `this`
|
|
1093
1093
|
|
|
1094
1094
|
Defined in: [property-manager.js/src/abstract.d.ts:139](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L139)
|
|
1095
1095
|
|
|
@@ -1141,7 +1141,7 @@ Another object whose prototype chain is to be checked.
|
|
|
1141
1141
|
|
|
1142
1142
|
### isSame()
|
|
1143
1143
|
|
|
1144
|
-
> **isSame**(`src`, `options
|
|
1144
|
+
> **isSame**(`src`, `options?`): `boolean`
|
|
1145
1145
|
|
|
1146
1146
|
Defined in: [property-manager.js/src/abstract.d.ts:200](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L200)
|
|
1147
1147
|
|
|
@@ -1173,7 +1173,7 @@ The source object
|
|
|
1173
1173
|
|
|
1174
1174
|
> **isStream**(`params`): `undefined` \| `boolean`
|
|
1175
1175
|
|
|
1176
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:805](https://github.com/isdk/ai-tool.js/blob/
|
|
1176
|
+
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)
|
|
1177
1177
|
|
|
1178
1178
|
Determines if a function call should produce a stream.
|
|
1179
1179
|
|
|
@@ -1205,7 +1205,7 @@ The runtime parameters passed to the function call.
|
|
|
1205
1205
|
|
|
1206
1206
|
### mergeTo()
|
|
1207
1207
|
|
|
1208
|
-
> **mergeTo**(`dest`, `options
|
|
1208
|
+
> **mergeTo**(`dest`, `options?`): `any`
|
|
1209
1209
|
|
|
1210
1210
|
Defined in: [property-manager.js/src/abstract.d.ts:164](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L164)
|
|
1211
1211
|
|
|
@@ -1237,9 +1237,9 @@ the dest object.
|
|
|
1237
1237
|
|
|
1238
1238
|
### obj2ArrParams()
|
|
1239
1239
|
|
|
1240
|
-
> **obj2ArrParams**(`params
|
|
1240
|
+
> **obj2ArrParams**(`params?`): `any`[]
|
|
1241
1241
|
|
|
1242
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:648](https://github.com/isdk/ai-tool.js/blob/
|
|
1242
|
+
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)
|
|
1243
1243
|
|
|
1244
1244
|
Converts a named parameters object into an array of positional arguments.
|
|
1245
1245
|
This is used for functions defined with positional parameters.
|
|
@@ -1294,7 +1294,7 @@ A property name.
|
|
|
1294
1294
|
|
|
1295
1295
|
> **register**(): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
1296
1296
|
|
|
1297
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:602](https://github.com/isdk/ai-tool.js/blob/
|
|
1297
|
+
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)
|
|
1298
1298
|
|
|
1299
1299
|
Registers the current `ToolFunc` instance into the static registry.
|
|
1300
1300
|
Also registers any declared dependencies.
|
|
@@ -1313,9 +1313,9 @@ The instance itself upon successful registration, or `false` if it already exist
|
|
|
1313
1313
|
|
|
1314
1314
|
### run()
|
|
1315
1315
|
|
|
1316
|
-
> **run**(`params
|
|
1316
|
+
> **run**(`params?`): `Promise`\<`any`\>
|
|
1317
1317
|
|
|
1318
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:686](https://github.com/isdk/ai-tool.js/blob/
|
|
1318
|
+
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)
|
|
1319
1319
|
|
|
1320
1320
|
Executes the function asynchronously with a named parameters object.
|
|
1321
1321
|
|
|
@@ -1341,9 +1341,9 @@ A promise that resolves with the function's result.
|
|
|
1341
1341
|
|
|
1342
1342
|
### runAs()
|
|
1343
1343
|
|
|
1344
|
-
> **runAs**(`name`, `params
|
|
1344
|
+
> **runAs**(`name`, `params?`): `Promise`\<`any`\>
|
|
1345
1345
|
|
|
1346
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:697](https://github.com/isdk/ai-tool.js/blob/
|
|
1346
|
+
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)
|
|
1347
1347
|
|
|
1348
1348
|
Asynchronously executes another registered function by name.
|
|
1349
1349
|
This method delegates to `runAsSync()` internally.
|
|
@@ -1376,9 +1376,9 @@ A promise that resolves with the result of the function execution.
|
|
|
1376
1376
|
|
|
1377
1377
|
### runAsSync()
|
|
1378
1378
|
|
|
1379
|
-
> **runAsSync**(`name`, `params
|
|
1379
|
+
> **runAsSync**(`name`, `params?`): `any`
|
|
1380
1380
|
|
|
1381
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:708](https://github.com/isdk/ai-tool.js/blob/
|
|
1381
|
+
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)
|
|
1382
1382
|
|
|
1383
1383
|
Synchronously executes another registered function by name.
|
|
1384
1384
|
This is a convenience method that forwards the call to the static `runSync()` method.
|
|
@@ -1411,9 +1411,9 @@ The result of the function execution.
|
|
|
1411
1411
|
|
|
1412
1412
|
### runSync()
|
|
1413
1413
|
|
|
1414
|
-
> **runSync**(`params
|
|
1414
|
+
> **runSync**(`params?`): `any`
|
|
1415
1415
|
|
|
1416
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:667](https://github.com/isdk/ai-tool.js/blob/
|
|
1416
|
+
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)
|
|
1417
1417
|
|
|
1418
1418
|
Executes the function synchronously with a named parameters object.
|
|
1419
1419
|
|
|
@@ -1445,7 +1445,7 @@ Will throw an error if an array of parameters is passed to a function that expec
|
|
|
1445
1445
|
|
|
1446
1446
|
> **runWithPos**(...`params`): `Promise`\<`any`\>
|
|
1447
1447
|
|
|
1448
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:755](https://github.com/isdk/ai-tool.js/blob/
|
|
1448
|
+
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)
|
|
1449
1449
|
|
|
1450
1450
|
Executes the function asynchronously using positional arguments.
|
|
1451
1451
|
Delegates to `runWithPosSync()` internally.
|
|
@@ -1474,7 +1474,7 @@ A promise that resolves with the result of the function execution.
|
|
|
1474
1474
|
|
|
1475
1475
|
> **runWithPosAs**(`name`, ...`params`): `Promise`\<`any`\>
|
|
1476
1476
|
|
|
1477
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:766](https://github.com/isdk/ai-tool.js/blob/
|
|
1477
|
+
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)
|
|
1478
1478
|
|
|
1479
1479
|
Asynchronously executes another function by name using positional arguments.
|
|
1480
1480
|
Delegates to `runWithPosAsSync()` internally.
|
|
@@ -1509,7 +1509,7 @@ A promise that resolves with the result of the function execution.
|
|
|
1509
1509
|
|
|
1510
1510
|
> **runWithPosAsSync**(`name`, ...`params`): `any`
|
|
1511
1511
|
|
|
1512
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:745](https://github.com/isdk/ai-tool.js/blob/
|
|
1512
|
+
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)
|
|
1513
1513
|
|
|
1514
1514
|
Synchronously executes another function by name using positional arguments.
|
|
1515
1515
|
This is a convenience wrapper around the static `runWithPosSync()` method.
|
|
@@ -1544,7 +1544,7 @@ The result of the function execution.
|
|
|
1544
1544
|
|
|
1545
1545
|
> **runWithPosSync**(...`params`): `any`
|
|
1546
1546
|
|
|
1547
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:731](https://github.com/isdk/ai-tool.js/blob/
|
|
1547
|
+
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)
|
|
1548
1548
|
|
|
1549
1549
|
Executes the function synchronously using positional arguments.
|
|
1550
1550
|
If the function expects named parameters, it converts the arguments automatically.
|
|
@@ -1605,7 +1605,7 @@ Returns a date converted to a string using the current locale.
|
|
|
1605
1605
|
|
|
1606
1606
|
### toObject()
|
|
1607
1607
|
|
|
1608
|
-
> **toObject**(`options
|
|
1608
|
+
> **toObject**(`options?`): `any`
|
|
1609
1609
|
|
|
1610
1610
|
Defined in: [property-manager.js/src/abstract.d.ts:181](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/abstract.d.ts#L181)
|
|
1611
1611
|
|
|
@@ -1651,7 +1651,7 @@ Returns a string representation of an object.
|
|
|
1651
1651
|
|
|
1652
1652
|
> **unregister**(): `any`
|
|
1653
1653
|
|
|
1654
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:619](https://github.com/isdk/ai-tool.js/blob/
|
|
1654
|
+
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)
|
|
1655
1655
|
|
|
1656
1656
|
Removes the current `ToolFunc` instance from the static registry.
|
|
1657
1657
|
|
|
@@ -1698,9 +1698,13 @@ target object. Returns the target object.
|
|
|
1698
1698
|
|
|
1699
1699
|
##### Type Parameters
|
|
1700
1700
|
|
|
1701
|
-
|
|
1701
|
+
###### T
|
|
1702
|
+
|
|
1703
|
+
`T` *extends* `object`
|
|
1702
1704
|
|
|
1703
|
-
|
|
1705
|
+
###### U
|
|
1706
|
+
|
|
1707
|
+
`U`
|
|
1704
1708
|
|
|
1705
1709
|
##### Parameters
|
|
1706
1710
|
|
|
@@ -1735,11 +1739,17 @@ target object. Returns the target object.
|
|
|
1735
1739
|
|
|
1736
1740
|
##### Type Parameters
|
|
1737
1741
|
|
|
1738
|
-
|
|
1742
|
+
###### T
|
|
1743
|
+
|
|
1744
|
+
`T` *extends* `object`
|
|
1739
1745
|
|
|
1740
|
-
|
|
1746
|
+
###### U
|
|
1747
|
+
|
|
1748
|
+
`U`
|
|
1741
1749
|
|
|
1742
|
-
|
|
1750
|
+
###### V
|
|
1751
|
+
|
|
1752
|
+
`V`
|
|
1743
1753
|
|
|
1744
1754
|
##### Parameters
|
|
1745
1755
|
|
|
@@ -1780,13 +1790,21 @@ target object. Returns the target object.
|
|
|
1780
1790
|
|
|
1781
1791
|
##### Type Parameters
|
|
1782
1792
|
|
|
1783
|
-
|
|
1793
|
+
###### T
|
|
1794
|
+
|
|
1795
|
+
`T` *extends* `object`
|
|
1784
1796
|
|
|
1785
|
-
|
|
1797
|
+
###### U
|
|
1786
1798
|
|
|
1787
|
-
|
|
1799
|
+
`U`
|
|
1800
|
+
|
|
1801
|
+
###### V
|
|
1802
|
+
|
|
1803
|
+
`V`
|
|
1788
1804
|
|
|
1789
|
-
|
|
1805
|
+
###### W
|
|
1806
|
+
|
|
1807
|
+
`W`
|
|
1790
1808
|
|
|
1791
1809
|
##### Parameters
|
|
1792
1810
|
|
|
@@ -1915,7 +1933,7 @@ JavaScript object that contains one or more property descriptors.
|
|
|
1915
1933
|
|
|
1916
1934
|
### defineProperties()
|
|
1917
1935
|
|
|
1918
|
-
> `static` **defineProperties**(`aTarget`, `aProperties`, `recreate
|
|
1936
|
+
> `static` **defineProperties**(`aTarget`, `aProperties`, `recreate?`): `any`
|
|
1919
1937
|
|
|
1920
1938
|
Defined in: [property-manager.js/src/advance.d.ts:11](https://github.com/snowyu/property-manager.js/blob/e9ebf4c62be9b6d84e5868ed098df041a53bb90a/src/advance.d.ts#L11)
|
|
1921
1939
|
|
|
@@ -1955,7 +1973,9 @@ Adds a property to an object, or modifies attributes of an existing property.
|
|
|
1955
1973
|
|
|
1956
1974
|
#### Type Parameters
|
|
1957
1975
|
|
|
1958
|
-
|
|
1976
|
+
##### T
|
|
1977
|
+
|
|
1978
|
+
`T`
|
|
1959
1979
|
|
|
1960
1980
|
#### Parameters
|
|
1961
1981
|
|
|
@@ -1999,7 +2019,9 @@ Returns an array of key/values of the enumerable own properties of an object
|
|
|
1999
2019
|
|
|
2000
2020
|
##### Type Parameters
|
|
2001
2021
|
|
|
2002
|
-
|
|
2022
|
+
###### T
|
|
2023
|
+
|
|
2024
|
+
`T`
|
|
2003
2025
|
|
|
2004
2026
|
##### Parameters
|
|
2005
2027
|
|
|
@@ -2007,7 +2029,7 @@ Returns an array of key/values of the enumerable own properties of an object
|
|
|
2007
2029
|
|
|
2008
2030
|
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
2009
2031
|
|
|
2010
|
-
\{\} | `ArrayLike`\<`T`\>
|
|
2032
|
+
\{\[`s`: `string`\]: `T`; \} | `ArrayLike`\<`T`\>
|
|
2011
2033
|
|
|
2012
2034
|
##### Returns
|
|
2013
2035
|
|
|
@@ -2043,9 +2065,9 @@ Object that contains the properties and methods. This can be an object that you
|
|
|
2043
2065
|
|
|
2044
2066
|
### fetch()
|
|
2045
2067
|
|
|
2046
|
-
> `static` **fetch**(`name`, `objParam
|
|
2068
|
+
> `static` **fetch**(`name`, `objParam?`, ...`args?`): `Promise`\<`any`\>
|
|
2047
2069
|
|
|
2048
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
2070
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:99](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/client-tools.ts#L99)
|
|
2049
2071
|
|
|
2050
2072
|
#### Parameters
|
|
2051
2073
|
|
|
@@ -2083,7 +2105,9 @@ Prevents the modification of existing property attributes and values, and preven
|
|
|
2083
2105
|
|
|
2084
2106
|
##### Type Parameters
|
|
2085
2107
|
|
|
2086
|
-
|
|
2108
|
+
###### T
|
|
2109
|
+
|
|
2110
|
+
`T` *extends* `Function`
|
|
2087
2111
|
|
|
2088
2112
|
##### Parameters
|
|
2089
2113
|
|
|
@@ -2111,9 +2135,13 @@ Prevents the modification of existing property attributes and values, and preven
|
|
|
2111
2135
|
|
|
2112
2136
|
##### Type Parameters
|
|
2113
2137
|
|
|
2114
|
-
|
|
2138
|
+
###### T
|
|
2115
2139
|
|
|
2116
|
-
|
|
2140
|
+
`T` *extends* `object`
|
|
2141
|
+
|
|
2142
|
+
###### U
|
|
2143
|
+
|
|
2144
|
+
`U` *extends* `string` \| `number` \| `bigint` \| `boolean` \| `symbol`
|
|
2117
2145
|
|
|
2118
2146
|
##### Parameters
|
|
2119
2147
|
|
|
@@ -2141,7 +2169,9 @@ Prevents the modification of existing property attributes and values, and preven
|
|
|
2141
2169
|
|
|
2142
2170
|
##### Type Parameters
|
|
2143
2171
|
|
|
2144
|
-
|
|
2172
|
+
###### T
|
|
2173
|
+
|
|
2174
|
+
`T`
|
|
2145
2175
|
|
|
2146
2176
|
##### Parameters
|
|
2147
2177
|
|
|
@@ -2173,7 +2203,9 @@ Returns an object created by key-value entries for properties and methods
|
|
|
2173
2203
|
|
|
2174
2204
|
##### Type Parameters
|
|
2175
2205
|
|
|
2176
|
-
|
|
2206
|
+
###### T
|
|
2207
|
+
|
|
2208
|
+
`T` = `any`
|
|
2177
2209
|
|
|
2178
2210
|
##### Parameters
|
|
2179
2211
|
|
|
@@ -2221,7 +2253,7 @@ An iterable object that contains key-value entries for properties and methods.
|
|
|
2221
2253
|
|
|
2222
2254
|
> `static` **get**(`name`): [`ToolFunc`](ToolFunc.md)
|
|
2223
2255
|
|
|
2224
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:319](https://github.com/isdk/ai-tool.js/blob/
|
|
2256
|
+
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)
|
|
2225
2257
|
|
|
2226
2258
|
Retrieves a registered function by its name or alias.
|
|
2227
2259
|
|
|
@@ -2249,7 +2281,7 @@ The `ToolFunc` instance if found, otherwise `undefined`.
|
|
|
2249
2281
|
|
|
2250
2282
|
> `static` **getAllByTag**(`tagName`): [`ToolFunc`](ToolFunc.md)[]
|
|
2251
2283
|
|
|
2252
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:365](https://github.com/isdk/ai-tool.js/blob/
|
|
2284
|
+
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)
|
|
2253
2285
|
|
|
2254
2286
|
Retrieves all registered functions that have a specific tag.
|
|
2255
2287
|
|
|
@@ -2277,7 +2309,7 @@ An array of matching `ToolFunc` instances.
|
|
|
2277
2309
|
|
|
2278
2310
|
> `static` **getByTag**(`tagName`): `undefined` \| [`ToolFunc`](ToolFunc.md)
|
|
2279
2311
|
|
|
2280
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:340](https://github.com/isdk/ai-tool.js/blob/
|
|
2312
|
+
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)
|
|
2281
2313
|
|
|
2282
2314
|
Finds the first registered function that has a specific tag.
|
|
2283
2315
|
|
|
@@ -2305,7 +2337,7 @@ The first matching `ToolFunc` instance, or `undefined` if none is found.
|
|
|
2305
2337
|
|
|
2306
2338
|
> `static` **getFunc**(`name`): `any`
|
|
2307
2339
|
|
|
2308
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:431](https://github.com/isdk/ai-tool.js/blob/
|
|
2340
|
+
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)
|
|
2309
2341
|
|
|
2310
2342
|
Retrieves a bound, runnable function reference for a registered function.
|
|
2311
2343
|
This reference is suitable for execution with an object of named parameters.
|
|
@@ -2334,7 +2366,7 @@ A bound function reference, or `undefined` if not found.
|
|
|
2334
2366
|
|
|
2335
2367
|
> `static` **getFuncWithPos**(`name`): `any`
|
|
2336
2368
|
|
|
2337
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:472](https://github.com/isdk/ai-tool.js/blob/
|
|
2369
|
+
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)
|
|
2338
2370
|
|
|
2339
2371
|
Retrieves a bound, runnable function reference for a registered function.
|
|
2340
2372
|
This reference is suitable for execution with positional arguments.
|
|
@@ -2402,7 +2434,9 @@ Returns an object containing all own property descriptors of an object
|
|
|
2402
2434
|
|
|
2403
2435
|
#### Type Parameters
|
|
2404
2436
|
|
|
2405
|
-
|
|
2437
|
+
##### T
|
|
2438
|
+
|
|
2439
|
+
`T`
|
|
2406
2440
|
|
|
2407
2441
|
#### Parameters
|
|
2408
2442
|
|
|
@@ -2523,7 +2557,7 @@ The object that references the prototype.
|
|
|
2523
2557
|
|
|
2524
2558
|
> `static` **hasAsyncFeature**(`feature`): `boolean`
|
|
2525
2559
|
|
|
2526
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:388](https://github.com/isdk/ai-tool.js/blob/
|
|
2560
|
+
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)
|
|
2527
2561
|
|
|
2528
2562
|
Checks if any registered function has a specific asynchronous feature.
|
|
2529
2563
|
|
|
@@ -2743,7 +2777,7 @@ Object that contains the properties and methods. This can be an object that you
|
|
|
2743
2777
|
|
|
2744
2778
|
> `static` **list**(): [`Funcs`](../interfaces/Funcs.md)
|
|
2745
2779
|
|
|
2746
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:331](https://github.com/isdk/ai-tool.js/blob/
|
|
2780
|
+
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)
|
|
2747
2781
|
|
|
2748
2782
|
Returns the complete map of all registered functions.
|
|
2749
2783
|
|
|
@@ -2761,9 +2795,9 @@ The map of `ToolFunc` instances.
|
|
|
2761
2795
|
|
|
2762
2796
|
### loadFrom()
|
|
2763
2797
|
|
|
2764
|
-
> `static` **loadFrom**(`items
|
|
2798
|
+
> `static` **loadFrom**(`items?`): `Promise`\<[`Funcs`](../interfaces/Funcs.md)\>
|
|
2765
2799
|
|
|
2766
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
2800
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:69](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/client-tools.ts#L69)
|
|
2767
2801
|
|
|
2768
2802
|
Loads tool definitions from the remote server via the configured transport.
|
|
2769
2803
|
This method populates the local `ToolFunc` registry with `ClientTools` stubs.
|
|
@@ -2788,7 +2822,7 @@ This method populates the local `ToolFunc` registry with `ClientTools` stubs.
|
|
|
2788
2822
|
|
|
2789
2823
|
> `static` **loadFromSync**(`items`): `void`
|
|
2790
2824
|
|
|
2791
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
2825
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:85](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/client-tools.ts#L85)
|
|
2792
2826
|
|
|
2793
2827
|
Synchronously loads tool definitions from a provided object, registering
|
|
2794
2828
|
each one as a `ClientTools` instance.
|
|
@@ -2821,7 +2855,9 @@ Prevents the addition of new properties to an object.
|
|
|
2821
2855
|
|
|
2822
2856
|
#### Type Parameters
|
|
2823
2857
|
|
|
2824
|
-
|
|
2858
|
+
##### T
|
|
2859
|
+
|
|
2860
|
+
`T`
|
|
2825
2861
|
|
|
2826
2862
|
#### Parameters
|
|
2827
2863
|
|
|
@@ -2847,7 +2883,7 @@ Object to make non-extensible.
|
|
|
2847
2883
|
|
|
2848
2884
|
> `static` **register**(`name`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2849
2885
|
|
|
2850
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:495](https://github.com/isdk/ai-tool.js/blob/
|
|
2886
|
+
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)
|
|
2851
2887
|
|
|
2852
2888
|
Registers a new tool function.
|
|
2853
2889
|
|
|
@@ -2871,10 +2907,6 @@ The function's configuration.
|
|
|
2871
2907
|
|
|
2872
2908
|
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2873
2909
|
|
|
2874
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2875
|
-
|
|
2876
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2877
|
-
|
|
2878
2910
|
##### Inherited from
|
|
2879
2911
|
|
|
2880
2912
|
[`ClientTools`](ClientTools.md).[`register`](ClientTools.md#register-2)
|
|
@@ -2883,7 +2915,7 @@ The new `ToolFunc` instance, or `false` if a function with that name already exi
|
|
|
2883
2915
|
|
|
2884
2916
|
> `static` **register**(`func`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2885
2917
|
|
|
2886
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:496](https://github.com/isdk/ai-tool.js/blob/
|
|
2918
|
+
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)
|
|
2887
2919
|
|
|
2888
2920
|
Registers a new tool function.
|
|
2889
2921
|
|
|
@@ -2907,19 +2939,15 @@ The function's configuration.
|
|
|
2907
2939
|
|
|
2908
2940
|
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2909
2941
|
|
|
2910
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2911
|
-
|
|
2912
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2913
|
-
|
|
2914
2942
|
##### Inherited from
|
|
2915
2943
|
|
|
2916
2944
|
[`ClientTools`](ClientTools.md).[`register`](ClientTools.md#register-2)
|
|
2917
2945
|
|
|
2918
2946
|
#### Call Signature
|
|
2919
2947
|
|
|
2920
|
-
> `static` **register**(`name`, `options
|
|
2948
|
+
> `static` **register**(`name`, `options?`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2921
2949
|
|
|
2922
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:497](https://github.com/isdk/ai-tool.js/blob/
|
|
2950
|
+
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)
|
|
2923
2951
|
|
|
2924
2952
|
Registers a new tool function.
|
|
2925
2953
|
|
|
@@ -2943,10 +2971,6 @@ The function's configuration.
|
|
|
2943
2971
|
|
|
2944
2972
|
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2945
2973
|
|
|
2946
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2947
|
-
|
|
2948
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2949
|
-
|
|
2950
2974
|
##### Inherited from
|
|
2951
2975
|
|
|
2952
2976
|
[`ClientTools`](ClientTools.md).[`register`](ClientTools.md#register-2)
|
|
@@ -2955,9 +2979,9 @@ The new `ToolFunc` instance, or `false` if a function with that name already exi
|
|
|
2955
2979
|
|
|
2956
2980
|
### run()
|
|
2957
2981
|
|
|
2958
|
-
> `static` **run**(`name`, `params
|
|
2982
|
+
> `static` **run**(`name`, `params?`): `Promise`\<`any`\>
|
|
2959
2983
|
|
|
2960
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:402](https://github.com/isdk/ai-tool.js/blob/
|
|
2984
|
+
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)
|
|
2961
2985
|
|
|
2962
2986
|
Asynchronously executes a registered function by name with named parameters.
|
|
2963
2987
|
|
|
@@ -2993,9 +3017,9 @@ If the function with the given name is not found.
|
|
|
2993
3017
|
|
|
2994
3018
|
### runSync()
|
|
2995
3019
|
|
|
2996
|
-
> `static` **runSync**(`name`, `params
|
|
3020
|
+
> `static` **runSync**(`name`, `params?`): `any`
|
|
2997
3021
|
|
|
2998
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:417](https://github.com/isdk/ai-tool.js/blob/
|
|
3022
|
+
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)
|
|
2999
3023
|
|
|
3000
3024
|
Synchronously executes a registered function by name with named parameters.
|
|
3001
3025
|
|
|
@@ -3033,7 +3057,7 @@ If the function with the given name is not found.
|
|
|
3033
3057
|
|
|
3034
3058
|
> `static` **runWithPos**(`name`, ...`params`): `Promise`\<`any`\>
|
|
3035
3059
|
|
|
3036
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:443](https://github.com/isdk/ai-tool.js/blob/
|
|
3060
|
+
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)
|
|
3037
3061
|
|
|
3038
3062
|
Asynchronously executes a function using positional arguments.
|
|
3039
3063
|
|
|
@@ -3071,7 +3095,7 @@ If the function with the given name is not found.
|
|
|
3071
3095
|
|
|
3072
3096
|
> `static` **runWithPosSync**(`name`, ...`params`): `any`
|
|
3073
3097
|
|
|
3074
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:458](https://github.com/isdk/ai-tool.js/blob/
|
|
3098
|
+
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)
|
|
3075
3099
|
|
|
3076
3100
|
Synchronously executes a function using positional arguments.
|
|
3077
3101
|
|
|
@@ -3115,7 +3139,9 @@ Prevents the modification of attributes of existing properties, and prevents the
|
|
|
3115
3139
|
|
|
3116
3140
|
#### Type Parameters
|
|
3117
3141
|
|
|
3118
|
-
|
|
3142
|
+
##### T
|
|
3143
|
+
|
|
3144
|
+
`T`
|
|
3119
3145
|
|
|
3120
3146
|
#### Parameters
|
|
3121
3147
|
|
|
@@ -3171,7 +3197,7 @@ The value of the new prototype or null.
|
|
|
3171
3197
|
|
|
3172
3198
|
> `static` **setTransport**(`transport`): `void`
|
|
3173
3199
|
|
|
3174
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
3200
|
+
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:51](https://github.com/isdk/ai-tool.js/blob/fb1809b53cc75a30928176c26910792b6b8a96e1/src/client-tools.ts#L51)
|
|
3175
3201
|
|
|
3176
3202
|
Injects the client-side transport implementation. This is a crucial step
|
|
3177
3203
|
to enable communication with the server.
|
|
@@ -3198,7 +3224,7 @@ The transport instance to use for all client-server communication.
|
|
|
3198
3224
|
|
|
3199
3225
|
> `static` **unregister**(`name`): `undefined` \| [`ToolFunc`](ToolFunc.md)
|
|
3200
3226
|
|
|
3201
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/tool-func.ts:547](https://github.com/isdk/ai-tool.js/blob/
|
|
3227
|
+
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)
|
|
3202
3228
|
|
|
3203
3229
|
Unregisters a function by its name, also removing any associated aliases.
|
|
3204
3230
|
|
|
@@ -3234,7 +3260,9 @@ Returns an array of values of the enumerable own properties of an object
|
|
|
3234
3260
|
|
|
3235
3261
|
##### Type Parameters
|
|
3236
3262
|
|
|
3237
|
-
|
|
3263
|
+
###### T
|
|
3264
|
+
|
|
3265
|
+
`T`
|
|
3238
3266
|
|
|
3239
3267
|
##### Parameters
|
|
3240
3268
|
|
|
@@ -3242,7 +3270,7 @@ Returns an array of values of the enumerable own properties of an object
|
|
|
3242
3270
|
|
|
3243
3271
|
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
3244
3272
|
|
|
3245
|
-
\{\} | `ArrayLike`\<`T`\>
|
|
3273
|
+
\{\[`s`: `string`\]: `T`; \} | `ArrayLike`\<`T`\>
|
|
3246
3274
|
|
|
3247
3275
|
##### Returns
|
|
3248
3276
|
|