@isdk/ai-tool 0.7.0 → 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-BCco-g_I.d.mts → index-BLW3R7VS.d.mts} +114 -69
- package/dist/{index-BCco-g_I.d.ts → index-BLW3R7VS.d.ts} +114 -69
- package/dist/index.d.mts +101 -38
- package/dist/index.d.ts +101 -38
- 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 +182 -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 +258 -201
- package/docs/api/classes/EventEmitter.md +14 -14
- package/docs/api/classes/EventServer.md +220 -237
- 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 +40 -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 +658 -143
- package/docs/api/classes/ResServerTools.md +643 -133
- package/docs/api/classes/RpcMethodsClientTool.md +3303 -0
- package/docs/api/classes/RpcMethodsServerTool.md +3248 -0
- 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 +167 -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 +17 -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 +5 -5
- package/docs/api/interfaces/ResServerFuncParams.md +14 -10
- package/docs/api/interfaces/RpcMethodsClientFuncParams.md +25 -0
- package/docs/api/interfaces/RpcMethodsServerFuncParams.md +61 -0
- 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 +4 -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 +51 -0
- package/docs/api/variables/RpcMethodsServerToolSchema.md +21 -0
- 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-LNTIQQNN.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
|
|
|
@@ -21,19 +21,23 @@ These tools are typically created dynamically by loading definitions from a serv
|
|
|
21
21
|
|
|
22
22
|
- [`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`ToolFunc`](ToolFunc.md)
|
|
23
23
|
|
|
24
|
+
## Extended by
|
|
25
|
+
|
|
26
|
+
- [`RpcMethodsClientTool`](RpcMethodsClientTool.md)
|
|
27
|
+
|
|
24
28
|
## Indexable
|
|
25
29
|
|
|
26
30
|
\[`name`: `string`\]: `any`
|
|
27
31
|
|
|
28
32
|
## Constructors
|
|
29
33
|
|
|
30
|
-
###
|
|
34
|
+
### Constructor
|
|
31
35
|
|
|
32
|
-
> **new ClientTools**(`name`, `options
|
|
36
|
+
> **new ClientTools**(`name`, `options?`): `ClientTools`
|
|
33
37
|
|
|
34
|
-
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)
|
|
35
39
|
|
|
36
|
-
|
|
40
|
+
Initializes a new `ToolFunc` instance.
|
|
37
41
|
|
|
38
42
|
#### Parameters
|
|
39
43
|
|
|
@@ -51,11 +55,11 @@ Configuration options if not provided in the first argument.
|
|
|
51
55
|
|
|
52
56
|
#### Returns
|
|
53
57
|
|
|
54
|
-
|
|
58
|
+
`ClientTools`
|
|
55
59
|
|
|
56
60
|
#### Inherited from
|
|
57
61
|
|
|
58
|
-
[`ToolFunc`](ToolFunc.md).[`constructor`](ToolFunc.md#
|
|
62
|
+
[`ToolFunc`](ToolFunc.md).[`constructor`](ToolFunc.md#constructor)
|
|
59
63
|
|
|
60
64
|
## Properties
|
|
61
65
|
|
|
@@ -67,7 +71,7 @@ Defined in: [property-manager.js/src/advance.d.ts:5](https://github.com/snowyu/p
|
|
|
67
71
|
|
|
68
72
|
#### Inherited from
|
|
69
73
|
|
|
70
|
-
[`ToolFunc`](ToolFunc.md).[`$attributes`](ToolFunc.md
|
|
74
|
+
[`ToolFunc`](ToolFunc.md).[`$attributes`](ToolFunc.md#attributes)
|
|
71
75
|
|
|
72
76
|
***
|
|
73
77
|
|
|
@@ -75,7 +79,7 @@ Defined in: [property-manager.js/src/advance.d.ts:5](https://github.com/snowyu/p
|
|
|
75
79
|
|
|
76
80
|
> `optional` **action**: `"get"` \| `"post"` \| `"put"` \| `"delete"` \| `"patch"` \| `"list"` \| `"res"`
|
|
77
81
|
|
|
78
|
-
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)
|
|
79
83
|
|
|
80
84
|
The action to be used for the remote call. This typically represents an RPC method name.
|
|
81
85
|
Only for RESTful HTTP transports, it might be mapped to a standard HTTP method (e.g., GET, POST)
|
|
@@ -90,13 +94,13 @@ Only for RESTful HTTP transports, it might be mapped to a standard HTTP method (
|
|
|
90
94
|
|
|
91
95
|
> `optional` **alias**: `string` \| `string`[]
|
|
92
96
|
|
|
93
|
-
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)
|
|
94
98
|
|
|
95
99
|
Optional aliases for the function name.
|
|
96
100
|
|
|
97
101
|
#### Inherited from
|
|
98
102
|
|
|
99
|
-
[`
|
|
103
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`alias`](../interfaces/ClientFuncItem.md#alias)
|
|
100
104
|
|
|
101
105
|
***
|
|
102
106
|
|
|
@@ -104,7 +108,7 @@ Optional aliases for the function name.
|
|
|
104
108
|
|
|
105
109
|
> `optional` **asyncFeatures**: `number`
|
|
106
110
|
|
|
107
|
-
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)
|
|
108
112
|
|
|
109
113
|
A bitmask representing asynchronous features supported by the function, built from `AsyncFeatureBits`.
|
|
110
114
|
This allows the system to understand if a function supports capabilities like cancellation or multi-tasking.
|
|
@@ -126,7 +130,7 @@ const func = new ToolFunc({
|
|
|
126
130
|
|
|
127
131
|
#### Inherited from
|
|
128
132
|
|
|
129
|
-
[`
|
|
133
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`asyncFeatures`](../interfaces/ClientFuncItem.md#asyncfeatures)
|
|
130
134
|
|
|
131
135
|
***
|
|
132
136
|
|
|
@@ -166,7 +170,7 @@ The default options for export and assign
|
|
|
166
170
|
|
|
167
171
|
> `optional` **depends**: `object`
|
|
168
172
|
|
|
169
|
-
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)
|
|
170
174
|
|
|
171
175
|
A map of dependencies this function has on other tool functions.
|
|
172
176
|
Declaring dependencies ensures that they are automatically registered when this function is registered.
|
|
@@ -197,7 +201,7 @@ mainFunc.register();
|
|
|
197
201
|
|
|
198
202
|
#### Inherited from
|
|
199
203
|
|
|
200
|
-
[`
|
|
204
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`depends`](../interfaces/ClientFuncItem.md#depends)
|
|
201
205
|
|
|
202
206
|
***
|
|
203
207
|
|
|
@@ -205,27 +209,23 @@ mainFunc.register();
|
|
|
205
209
|
|
|
206
210
|
> `optional` **description**: `string`
|
|
207
211
|
|
|
208
|
-
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)
|
|
209
213
|
|
|
210
214
|
A detailed description of what the function does.
|
|
211
215
|
|
|
212
216
|
#### Inherited from
|
|
213
217
|
|
|
214
|
-
[`
|
|
218
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`description`](../interfaces/ClientFuncItem.md#description)
|
|
215
219
|
|
|
216
220
|
***
|
|
217
221
|
|
|
218
|
-
###
|
|
222
|
+
### fetchOptions?
|
|
219
223
|
|
|
220
224
|
> `optional` **fetchOptions**: `any`
|
|
221
225
|
|
|
222
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/consts.ts:
|
|
223
|
-
|
|
224
|
-
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)
|
|
225
227
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
Use `transport` instead.
|
|
228
|
+
Addtional options to be passed to the underlying `fetch` call in a transport.
|
|
229
229
|
|
|
230
230
|
#### Inherited from
|
|
231
231
|
|
|
@@ -237,13 +237,13 @@ Use `transport` instead.
|
|
|
237
237
|
|
|
238
238
|
> `optional` **isApi**: `boolean`
|
|
239
239
|
|
|
240
|
-
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)
|
|
241
241
|
|
|
242
242
|
If true, indicates that this function should be treated as a server-side API.
|
|
243
243
|
|
|
244
244
|
#### Inherited from
|
|
245
245
|
|
|
246
|
-
[`
|
|
246
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`isApi`](../interfaces/ClientFuncItem.md#isapi)
|
|
247
247
|
|
|
248
248
|
***
|
|
249
249
|
|
|
@@ -251,13 +251,13 @@ If true, indicates that this function should be treated as a server-side API.
|
|
|
251
251
|
|
|
252
252
|
> `optional` **name**: `string`
|
|
253
253
|
|
|
254
|
-
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)
|
|
255
255
|
|
|
256
256
|
The unique name of the function.
|
|
257
257
|
|
|
258
258
|
#### Inherited from
|
|
259
259
|
|
|
260
|
-
[`
|
|
260
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`name`](../interfaces/ClientFuncItem.md#name)
|
|
261
261
|
|
|
262
262
|
***
|
|
263
263
|
|
|
@@ -279,13 +279,13 @@ the property with the default prefix '$' will not be exported.
|
|
|
279
279
|
|
|
280
280
|
> `optional` **params**: [`FuncParams`](../interfaces/FuncParams.md) \| [`FuncParam`](../interfaces/FuncParam.md)[]
|
|
281
281
|
|
|
282
|
-
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)
|
|
283
283
|
|
|
284
284
|
Parameter definitions, which can be an object mapping names to definitions or an array for positional parameters.
|
|
285
285
|
|
|
286
286
|
#### Inherited from
|
|
287
287
|
|
|
288
|
-
[`
|
|
288
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`params`](../interfaces/ClientFuncItem.md#params)
|
|
289
289
|
|
|
290
290
|
***
|
|
291
291
|
|
|
@@ -293,13 +293,13 @@ Parameter definitions, which can be an object mapping names to definitions or an
|
|
|
293
293
|
|
|
294
294
|
> `optional` **result**: `string` \| `Record`\<`string`, `any`\>
|
|
295
295
|
|
|
296
|
-
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)
|
|
297
297
|
|
|
298
298
|
The expected return type of the function, described as a string or a JSON schema object.
|
|
299
299
|
|
|
300
300
|
#### Inherited from
|
|
301
301
|
|
|
302
|
-
[`
|
|
302
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`result`](../interfaces/ClientFuncItem.md#result)
|
|
303
303
|
|
|
304
304
|
***
|
|
305
305
|
|
|
@@ -307,21 +307,21 @@ The expected return type of the function, described as a string or a JSON schema
|
|
|
307
307
|
|
|
308
308
|
> `optional` **scope**: `any`
|
|
309
309
|
|
|
310
|
-
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)
|
|
311
311
|
|
|
312
312
|
The execution scope or context (`this`) for the function.
|
|
313
313
|
|
|
314
314
|
#### Inherited from
|
|
315
315
|
|
|
316
|
-
[`
|
|
316
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`scope`](../interfaces/ClientFuncItem.md#scope)
|
|
317
317
|
|
|
318
318
|
***
|
|
319
319
|
|
|
320
320
|
### setup()?
|
|
321
321
|
|
|
322
|
-
> `optional` **setup**: (`this`, `options
|
|
322
|
+
> `optional` **setup**: (`this`, `options?`) => `void`
|
|
323
323
|
|
|
324
|
-
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)
|
|
325
325
|
|
|
326
326
|
A lifecycle hook called once during the `ToolFunc` instance's initialization.
|
|
327
327
|
It allows for initial setup, state configuration, or property modification on the instance
|
|
@@ -359,7 +359,7 @@ console.log(myFunc.customState); // Outputs: 'configured'
|
|
|
359
359
|
|
|
360
360
|
#### Inherited from
|
|
361
361
|
|
|
362
|
-
[`
|
|
362
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`setup`](../interfaces/ClientFuncItem.md#setup)
|
|
363
363
|
|
|
364
364
|
***
|
|
365
365
|
|
|
@@ -367,14 +367,14 @@ console.log(myFunc.customState); // Outputs: 'configured'
|
|
|
367
367
|
|
|
368
368
|
> `optional` **stream**: `boolean`
|
|
369
369
|
|
|
370
|
-
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)
|
|
371
371
|
|
|
372
372
|
If true, indicates that the function has the *capability* to stream its output.
|
|
373
373
|
Whether a specific call is streamed is determined by a `stream` property in the runtime parameters.
|
|
374
374
|
|
|
375
375
|
#### Inherited from
|
|
376
376
|
|
|
377
|
-
[`
|
|
377
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`stream`](../interfaces/ClientFuncItem.md#stream)
|
|
378
378
|
|
|
379
379
|
***
|
|
380
380
|
|
|
@@ -382,13 +382,13 @@ Whether a specific call is streamed is determined by a `stream` property in the
|
|
|
382
382
|
|
|
383
383
|
> `optional` **tags**: `string` \| `string`[]
|
|
384
384
|
|
|
385
|
-
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)
|
|
386
386
|
|
|
387
387
|
Tags for grouping or filtering functions.
|
|
388
388
|
|
|
389
389
|
#### Inherited from
|
|
390
390
|
|
|
391
|
-
[`
|
|
391
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`tags`](../interfaces/ClientFuncItem.md#tags)
|
|
392
392
|
|
|
393
393
|
***
|
|
394
394
|
|
|
@@ -396,13 +396,13 @@ Tags for grouping or filtering functions.
|
|
|
396
396
|
|
|
397
397
|
> `optional` **title**: `string`
|
|
398
398
|
|
|
399
|
-
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)
|
|
400
400
|
|
|
401
401
|
A concise, human-readable title for the function, often used in UI or by AI.
|
|
402
402
|
|
|
403
403
|
#### Inherited from
|
|
404
404
|
|
|
405
|
-
[`
|
|
405
|
+
[`ClientFuncItem`](../interfaces/ClientFuncItem.md).[`title`](../interfaces/ClientFuncItem.md#title)
|
|
406
406
|
|
|
407
407
|
***
|
|
408
408
|
|
|
@@ -410,7 +410,7 @@ A concise, human-readable title for the function, often used in UI or by AI.
|
|
|
410
410
|
|
|
411
411
|
> `static` `optional` **action**: `string`
|
|
412
412
|
|
|
413
|
-
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)
|
|
414
414
|
|
|
415
415
|
#### Inherited from
|
|
416
416
|
|
|
@@ -422,7 +422,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:32](https://git
|
|
|
422
422
|
|
|
423
423
|
> `static` **aliases**: `object` = `{}`
|
|
424
424
|
|
|
425
|
-
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)
|
|
426
426
|
|
|
427
427
|
A static map of aliases to their corresponding function names.
|
|
428
428
|
|
|
@@ -440,7 +440,7 @@ A static map of aliases to their corresponding function names.
|
|
|
440
440
|
|
|
441
441
|
> `static` **dataPath**: `string`
|
|
442
442
|
|
|
443
|
-
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)
|
|
444
444
|
|
|
445
445
|
A conventional property to designate a file path for saving the registered `ToolFunc` data.
|
|
446
446
|
Note: The `ToolFunc` class itself does not implement persistence logic. It is up to the
|
|
@@ -456,7 +456,7 @@ developer to use this path to save and load the `ToolFunc.items` registry if nee
|
|
|
456
456
|
|
|
457
457
|
> `static` **items**: [`Funcs`](../interfaces/Funcs.md) = `{}`
|
|
458
458
|
|
|
459
|
-
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)
|
|
460
460
|
|
|
461
461
|
A static registry of all `ToolFunc` instances, indexed by name.
|
|
462
462
|
|
|
@@ -472,12 +472,10 @@ A static registry of all `ToolFunc` instances, indexed by name.
|
|
|
472
472
|
|
|
473
473
|
> **get** **apiRoot**(): `string`
|
|
474
474
|
|
|
475
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
476
|
-
|
|
477
|
-
##### 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)
|
|
478
476
|
|
|
479
|
-
|
|
480
|
-
|
|
477
|
+
Gets the root URL for API endpoints from the configured transport.
|
|
478
|
+
This is used as the base for constructing request URLs.
|
|
481
479
|
|
|
482
480
|
##### Returns
|
|
483
481
|
|
|
@@ -501,12 +499,10 @@ Use `transport` instead.
|
|
|
501
499
|
|
|
502
500
|
> **get** `static` **apiRoot**(): `string`
|
|
503
501
|
|
|
504
|
-
Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:
|
|
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)
|
|
505
503
|
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
This property is now mainly for informational purposes.
|
|
509
|
-
The actual endpoint is managed by the transport.
|
|
504
|
+
Gets the root URL for API endpoints from the configured transport.
|
|
505
|
+
This is used as the base for constructing request URLs.
|
|
510
506
|
|
|
511
507
|
##### Returns
|
|
512
508
|
|
|
@@ -524,7 +520,7 @@ The actual endpoint is managed by the transport.
|
|
|
524
520
|
|
|
525
521
|
> **get** `static` **transport**(): [`IClientToolTransport`](../interfaces/IClientToolTransport.md)
|
|
526
522
|
|
|
527
|
-
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)
|
|
528
524
|
|
|
529
525
|
##### Returns
|
|
530
526
|
|
|
@@ -536,7 +532,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:60](https://git
|
|
|
536
532
|
|
|
537
533
|
> **arr2ObjParams**(`params`): `any`[]
|
|
538
534
|
|
|
539
|
-
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)
|
|
540
536
|
|
|
541
537
|
Converts an array of positional arguments into a named parameters object.
|
|
542
538
|
This is used internally to support functions defined with named parameters.
|
|
@@ -563,7 +559,7 @@ An array containing a single parameters object.
|
|
|
563
559
|
|
|
564
560
|
### assign()
|
|
565
561
|
|
|
566
|
-
> **assign**(`src`, `options
|
|
562
|
+
> **assign**(`src`, `options?`): `this`
|
|
567
563
|
|
|
568
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)
|
|
569
565
|
|
|
@@ -595,7 +591,7 @@ this object
|
|
|
595
591
|
|
|
596
592
|
### assignProperty()
|
|
597
593
|
|
|
598
|
-
> **assignProperty**(`src`, `name`, `value`, `attrs
|
|
594
|
+
> **assignProperty**(`src`, `name`, `value`, `attrs?`, `options?`): `void`
|
|
599
595
|
|
|
600
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)
|
|
601
597
|
|
|
@@ -643,7 +639,7 @@ the attributes object
|
|
|
643
639
|
|
|
644
640
|
### assignPropertyTo()
|
|
645
641
|
|
|
646
|
-
> `abstract` **assignPropertyTo**(`dest`, `src`, `name`, `value`, `attrs
|
|
642
|
+
> `abstract` **assignPropertyTo**(`dest`, `src`, `name`, `value`, `attrs?`, `options?`): `void`
|
|
647
643
|
|
|
648
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)
|
|
649
645
|
|
|
@@ -697,7 +693,7 @@ The attributes object of the property
|
|
|
697
693
|
|
|
698
694
|
### assignTo()
|
|
699
695
|
|
|
700
|
-
> **assignTo**(`dest
|
|
696
|
+
> **assignTo**(`dest?`, `options?`): `any`
|
|
701
697
|
|
|
702
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)
|
|
703
699
|
|
|
@@ -729,7 +725,7 @@ the dest object
|
|
|
729
725
|
|
|
730
726
|
### clone()
|
|
731
727
|
|
|
732
|
-
> **clone**(`options
|
|
728
|
+
> **clone**(`options?`): `any`
|
|
733
729
|
|
|
734
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)
|
|
735
731
|
|
|
@@ -755,7 +751,7 @@ the new object
|
|
|
755
751
|
|
|
756
752
|
### cloneTo()
|
|
757
753
|
|
|
758
|
-
> **cloneTo**(`dest`, `options
|
|
754
|
+
> **cloneTo**(`dest`, `options?`): `any`
|
|
759
755
|
|
|
760
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)
|
|
761
757
|
|
|
@@ -813,7 +809,7 @@ the defined attributes of the object
|
|
|
813
809
|
|
|
814
810
|
### exportTo()
|
|
815
811
|
|
|
816
|
-
> **exportTo**(`dest`, `options
|
|
812
|
+
> **exportTo**(`dest`, `options?`): `any`
|
|
817
813
|
|
|
818
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)
|
|
819
815
|
|
|
@@ -845,9 +841,9 @@ the dest object.
|
|
|
845
841
|
|
|
846
842
|
### fetch()
|
|
847
843
|
|
|
848
|
-
> **fetch**(`objParam
|
|
844
|
+
> **fetch**(`objParam?`, `act?`, `subName?`, `fetchOptions?`): `Promise`\<`any`\>
|
|
849
845
|
|
|
850
|
-
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)
|
|
851
847
|
|
|
852
848
|
#### Parameters
|
|
853
849
|
|
|
@@ -863,6 +859,10 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:114](https://gi
|
|
|
863
859
|
|
|
864
860
|
`any`
|
|
865
861
|
|
|
862
|
+
##### fetchOptions?
|
|
863
|
+
|
|
864
|
+
`any`
|
|
865
|
+
|
|
866
866
|
#### Returns
|
|
867
867
|
|
|
868
868
|
`Promise`\<`any`\>
|
|
@@ -873,7 +873,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/client-tools.ts:114](https://gi
|
|
|
873
873
|
|
|
874
874
|
> **func**(`objParam`): `Promise`\<`any`\>
|
|
875
875
|
|
|
876
|
-
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)
|
|
877
877
|
|
|
878
878
|
The core implementation for a client-side tool. When a `ClientTools` instance
|
|
879
879
|
is "run", this `func` method is executed. It delegates the call to the
|
|
@@ -901,9 +901,9 @@ The result from the remote tool.
|
|
|
901
901
|
|
|
902
902
|
### getFunc()
|
|
903
903
|
|
|
904
|
-
> **getFunc**(`name
|
|
904
|
+
> **getFunc**(`name?`): `any`
|
|
905
905
|
|
|
906
|
-
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)
|
|
907
907
|
|
|
908
908
|
Gets a bound function reference for execution with named parameters.
|
|
909
909
|
If a name is provided, it retrieves a different function from the registry.
|
|
@@ -931,9 +931,9 @@ A function reference or `undefined` if not found.
|
|
|
931
931
|
|
|
932
932
|
### getFuncWithPos()
|
|
933
933
|
|
|
934
|
-
> **getFuncWithPos**(`name
|
|
934
|
+
> **getFuncWithPos**(`name?`): `any`
|
|
935
935
|
|
|
936
|
-
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)
|
|
937
937
|
|
|
938
938
|
Gets a bound function reference suitable for positional argument execution.
|
|
939
939
|
If a name is provided, it retrieves a different function from the registry.
|
|
@@ -983,7 +983,7 @@ the descriptors of properties object
|
|
|
983
983
|
|
|
984
984
|
> **hasAsyncFeature**(`feature`): `boolean`
|
|
985
985
|
|
|
986
|
-
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)
|
|
987
987
|
|
|
988
988
|
Checks if the current function instance supports a specific async feature.
|
|
989
989
|
|
|
@@ -1035,7 +1035,7 @@ A property name.
|
|
|
1035
1035
|
|
|
1036
1036
|
### initialize()
|
|
1037
1037
|
|
|
1038
|
-
> **initialize**(`src
|
|
1038
|
+
> **initialize**(`src?`): `this`
|
|
1039
1039
|
|
|
1040
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)
|
|
1041
1041
|
|
|
@@ -1087,7 +1087,7 @@ Another object whose prototype chain is to be checked.
|
|
|
1087
1087
|
|
|
1088
1088
|
### isSame()
|
|
1089
1089
|
|
|
1090
|
-
> **isSame**(`src`, `options
|
|
1090
|
+
> **isSame**(`src`, `options?`): `boolean`
|
|
1091
1091
|
|
|
1092
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)
|
|
1093
1093
|
|
|
@@ -1119,7 +1119,7 @@ The source object
|
|
|
1119
1119
|
|
|
1120
1120
|
> **isStream**(`params`): `undefined` \| `boolean`
|
|
1121
1121
|
|
|
1122
|
-
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)
|
|
1123
1123
|
|
|
1124
1124
|
Determines if a function call should produce a stream.
|
|
1125
1125
|
|
|
@@ -1151,7 +1151,7 @@ The runtime parameters passed to the function call.
|
|
|
1151
1151
|
|
|
1152
1152
|
### mergeTo()
|
|
1153
1153
|
|
|
1154
|
-
> **mergeTo**(`dest`, `options
|
|
1154
|
+
> **mergeTo**(`dest`, `options?`): `any`
|
|
1155
1155
|
|
|
1156
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)
|
|
1157
1157
|
|
|
@@ -1183,9 +1183,9 @@ the dest object.
|
|
|
1183
1183
|
|
|
1184
1184
|
### obj2ArrParams()
|
|
1185
1185
|
|
|
1186
|
-
> **obj2ArrParams**(`params
|
|
1186
|
+
> **obj2ArrParams**(`params?`): `any`[]
|
|
1187
1187
|
|
|
1188
|
-
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)
|
|
1189
1189
|
|
|
1190
1190
|
Converts a named parameters object into an array of positional arguments.
|
|
1191
1191
|
This is used for functions defined with positional parameters.
|
|
@@ -1240,7 +1240,7 @@ A property name.
|
|
|
1240
1240
|
|
|
1241
1241
|
> **register**(): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
1242
1242
|
|
|
1243
|
-
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)
|
|
1244
1244
|
|
|
1245
1245
|
Registers the current `ToolFunc` instance into the static registry.
|
|
1246
1246
|
Also registers any declared dependencies.
|
|
@@ -1259,9 +1259,9 @@ The instance itself upon successful registration, or `false` if it already exist
|
|
|
1259
1259
|
|
|
1260
1260
|
### run()
|
|
1261
1261
|
|
|
1262
|
-
> **run**(`params
|
|
1262
|
+
> **run**(`params?`): `Promise`\<`any`\>
|
|
1263
1263
|
|
|
1264
|
-
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)
|
|
1265
1265
|
|
|
1266
1266
|
Executes the function asynchronously with a named parameters object.
|
|
1267
1267
|
|
|
@@ -1287,9 +1287,9 @@ A promise that resolves with the function's result.
|
|
|
1287
1287
|
|
|
1288
1288
|
### runAs()
|
|
1289
1289
|
|
|
1290
|
-
> **runAs**(`name`, `params
|
|
1290
|
+
> **runAs**(`name`, `params?`): `Promise`\<`any`\>
|
|
1291
1291
|
|
|
1292
|
-
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)
|
|
1293
1293
|
|
|
1294
1294
|
Asynchronously executes another registered function by name.
|
|
1295
1295
|
This method delegates to `runAsSync()` internally.
|
|
@@ -1322,9 +1322,9 @@ A promise that resolves with the result of the function execution.
|
|
|
1322
1322
|
|
|
1323
1323
|
### runAsSync()
|
|
1324
1324
|
|
|
1325
|
-
> **runAsSync**(`name`, `params
|
|
1325
|
+
> **runAsSync**(`name`, `params?`): `any`
|
|
1326
1326
|
|
|
1327
|
-
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)
|
|
1328
1328
|
|
|
1329
1329
|
Synchronously executes another registered function by name.
|
|
1330
1330
|
This is a convenience method that forwards the call to the static `runSync()` method.
|
|
@@ -1357,9 +1357,9 @@ The result of the function execution.
|
|
|
1357
1357
|
|
|
1358
1358
|
### runSync()
|
|
1359
1359
|
|
|
1360
|
-
> **runSync**(`params
|
|
1360
|
+
> **runSync**(`params?`): `any`
|
|
1361
1361
|
|
|
1362
|
-
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)
|
|
1363
1363
|
|
|
1364
1364
|
Executes the function synchronously with a named parameters object.
|
|
1365
1365
|
|
|
@@ -1391,7 +1391,7 @@ Will throw an error if an array of parameters is passed to a function that expec
|
|
|
1391
1391
|
|
|
1392
1392
|
> **runWithPos**(...`params`): `Promise`\<`any`\>
|
|
1393
1393
|
|
|
1394
|
-
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)
|
|
1395
1395
|
|
|
1396
1396
|
Executes the function asynchronously using positional arguments.
|
|
1397
1397
|
Delegates to `runWithPosSync()` internally.
|
|
@@ -1420,7 +1420,7 @@ A promise that resolves with the result of the function execution.
|
|
|
1420
1420
|
|
|
1421
1421
|
> **runWithPosAs**(`name`, ...`params`): `Promise`\<`any`\>
|
|
1422
1422
|
|
|
1423
|
-
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)
|
|
1424
1424
|
|
|
1425
1425
|
Asynchronously executes another function by name using positional arguments.
|
|
1426
1426
|
Delegates to `runWithPosAsSync()` internally.
|
|
@@ -1455,7 +1455,7 @@ A promise that resolves with the result of the function execution.
|
|
|
1455
1455
|
|
|
1456
1456
|
> **runWithPosAsSync**(`name`, ...`params`): `any`
|
|
1457
1457
|
|
|
1458
|
-
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)
|
|
1459
1459
|
|
|
1460
1460
|
Synchronously executes another function by name using positional arguments.
|
|
1461
1461
|
This is a convenience wrapper around the static `runWithPosSync()` method.
|
|
@@ -1490,7 +1490,7 @@ The result of the function execution.
|
|
|
1490
1490
|
|
|
1491
1491
|
> **runWithPosSync**(...`params`): `any`
|
|
1492
1492
|
|
|
1493
|
-
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)
|
|
1494
1494
|
|
|
1495
1495
|
Executes the function synchronously using positional arguments.
|
|
1496
1496
|
If the function expects named parameters, it converts the arguments automatically.
|
|
@@ -1551,7 +1551,7 @@ Returns a date converted to a string using the current locale.
|
|
|
1551
1551
|
|
|
1552
1552
|
### toObject()
|
|
1553
1553
|
|
|
1554
|
-
> **toObject**(`options
|
|
1554
|
+
> **toObject**(`options?`): `any`
|
|
1555
1555
|
|
|
1556
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)
|
|
1557
1557
|
|
|
@@ -1597,7 +1597,7 @@ Returns a string representation of an object.
|
|
|
1597
1597
|
|
|
1598
1598
|
> **unregister**(): `any`
|
|
1599
1599
|
|
|
1600
|
-
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)
|
|
1601
1601
|
|
|
1602
1602
|
Removes the current `ToolFunc` instance from the static registry.
|
|
1603
1603
|
|
|
@@ -1644,9 +1644,13 @@ target object. Returns the target object.
|
|
|
1644
1644
|
|
|
1645
1645
|
##### Type Parameters
|
|
1646
1646
|
|
|
1647
|
-
|
|
1647
|
+
###### T
|
|
1648
1648
|
|
|
1649
|
-
|
|
1649
|
+
`T` *extends* `object`
|
|
1650
|
+
|
|
1651
|
+
###### U
|
|
1652
|
+
|
|
1653
|
+
`U`
|
|
1650
1654
|
|
|
1651
1655
|
##### Parameters
|
|
1652
1656
|
|
|
@@ -1681,11 +1685,17 @@ target object. Returns the target object.
|
|
|
1681
1685
|
|
|
1682
1686
|
##### Type Parameters
|
|
1683
1687
|
|
|
1684
|
-
|
|
1688
|
+
###### T
|
|
1685
1689
|
|
|
1686
|
-
|
|
1690
|
+
`T` *extends* `object`
|
|
1687
1691
|
|
|
1688
|
-
|
|
1692
|
+
###### U
|
|
1693
|
+
|
|
1694
|
+
`U`
|
|
1695
|
+
|
|
1696
|
+
###### V
|
|
1697
|
+
|
|
1698
|
+
`V`
|
|
1689
1699
|
|
|
1690
1700
|
##### Parameters
|
|
1691
1701
|
|
|
@@ -1726,13 +1736,21 @@ target object. Returns the target object.
|
|
|
1726
1736
|
|
|
1727
1737
|
##### Type Parameters
|
|
1728
1738
|
|
|
1729
|
-
|
|
1739
|
+
###### T
|
|
1740
|
+
|
|
1741
|
+
`T` *extends* `object`
|
|
1742
|
+
|
|
1743
|
+
###### U
|
|
1730
1744
|
|
|
1731
|
-
|
|
1745
|
+
`U`
|
|
1746
|
+
|
|
1747
|
+
###### V
|
|
1732
1748
|
|
|
1733
|
-
|
|
1749
|
+
`V`
|
|
1734
1750
|
|
|
1735
|
-
|
|
1751
|
+
###### W
|
|
1752
|
+
|
|
1753
|
+
`W`
|
|
1736
1754
|
|
|
1737
1755
|
##### Parameters
|
|
1738
1756
|
|
|
@@ -1861,7 +1879,7 @@ JavaScript object that contains one or more property descriptors.
|
|
|
1861
1879
|
|
|
1862
1880
|
### defineProperties()
|
|
1863
1881
|
|
|
1864
|
-
> `static` **defineProperties**(`aTarget`, `aProperties`, `recreate
|
|
1882
|
+
> `static` **defineProperties**(`aTarget`, `aProperties`, `recreate?`): `any`
|
|
1865
1883
|
|
|
1866
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)
|
|
1867
1885
|
|
|
@@ -1901,7 +1919,9 @@ Adds a property to an object, or modifies attributes of an existing property.
|
|
|
1901
1919
|
|
|
1902
1920
|
#### Type Parameters
|
|
1903
1921
|
|
|
1904
|
-
|
|
1922
|
+
##### T
|
|
1923
|
+
|
|
1924
|
+
`T`
|
|
1905
1925
|
|
|
1906
1926
|
#### Parameters
|
|
1907
1927
|
|
|
@@ -1945,7 +1965,9 @@ Returns an array of key/values of the enumerable own properties of an object
|
|
|
1945
1965
|
|
|
1946
1966
|
##### Type Parameters
|
|
1947
1967
|
|
|
1948
|
-
|
|
1968
|
+
###### T
|
|
1969
|
+
|
|
1970
|
+
`T`
|
|
1949
1971
|
|
|
1950
1972
|
##### Parameters
|
|
1951
1973
|
|
|
@@ -1953,7 +1975,7 @@ Returns an array of key/values of the enumerable own properties of an object
|
|
|
1953
1975
|
|
|
1954
1976
|
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
1955
1977
|
|
|
1956
|
-
\{\} | `ArrayLike`\<`T`\>
|
|
1978
|
+
\{\[`s`: `string`\]: `T`; \} | `ArrayLike`\<`T`\>
|
|
1957
1979
|
|
|
1958
1980
|
##### Returns
|
|
1959
1981
|
|
|
@@ -1989,9 +2011,9 @@ Object that contains the properties and methods. This can be an object that you
|
|
|
1989
2011
|
|
|
1990
2012
|
### fetch()
|
|
1991
2013
|
|
|
1992
|
-
> `static` **fetch**(`name`, `objParam
|
|
2014
|
+
> `static` **fetch**(`name`, `objParam?`, ...`args?`): `Promise`\<`any`\>
|
|
1993
2015
|
|
|
1994
|
-
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)
|
|
1995
2017
|
|
|
1996
2018
|
#### Parameters
|
|
1997
2019
|
|
|
@@ -2025,7 +2047,9 @@ Prevents the modification of existing property attributes and values, and preven
|
|
|
2025
2047
|
|
|
2026
2048
|
##### Type Parameters
|
|
2027
2049
|
|
|
2028
|
-
|
|
2050
|
+
###### T
|
|
2051
|
+
|
|
2052
|
+
`T` *extends* `Function`
|
|
2029
2053
|
|
|
2030
2054
|
##### Parameters
|
|
2031
2055
|
|
|
@@ -2053,9 +2077,13 @@ Prevents the modification of existing property attributes and values, and preven
|
|
|
2053
2077
|
|
|
2054
2078
|
##### Type Parameters
|
|
2055
2079
|
|
|
2056
|
-
|
|
2080
|
+
###### T
|
|
2081
|
+
|
|
2082
|
+
`T` *extends* `object`
|
|
2057
2083
|
|
|
2058
|
-
|
|
2084
|
+
###### U
|
|
2085
|
+
|
|
2086
|
+
`U` *extends* `string` \| `number` \| `bigint` \| `boolean` \| `symbol`
|
|
2059
2087
|
|
|
2060
2088
|
##### Parameters
|
|
2061
2089
|
|
|
@@ -2083,7 +2111,9 @@ Prevents the modification of existing property attributes and values, and preven
|
|
|
2083
2111
|
|
|
2084
2112
|
##### Type Parameters
|
|
2085
2113
|
|
|
2086
|
-
|
|
2114
|
+
###### T
|
|
2115
|
+
|
|
2116
|
+
`T`
|
|
2087
2117
|
|
|
2088
2118
|
##### Parameters
|
|
2089
2119
|
|
|
@@ -2115,7 +2145,9 @@ Returns an object created by key-value entries for properties and methods
|
|
|
2115
2145
|
|
|
2116
2146
|
##### Type Parameters
|
|
2117
2147
|
|
|
2118
|
-
|
|
2148
|
+
###### T
|
|
2149
|
+
|
|
2150
|
+
`T` = `any`
|
|
2119
2151
|
|
|
2120
2152
|
##### Parameters
|
|
2121
2153
|
|
|
@@ -2163,7 +2195,7 @@ An iterable object that contains key-value entries for properties and methods.
|
|
|
2163
2195
|
|
|
2164
2196
|
> `static` **get**(`name`): [`ToolFunc`](ToolFunc.md)
|
|
2165
2197
|
|
|
2166
|
-
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)
|
|
2167
2199
|
|
|
2168
2200
|
Retrieves a registered function by its name or alias.
|
|
2169
2201
|
|
|
@@ -2191,7 +2223,7 @@ The `ToolFunc` instance if found, otherwise `undefined`.
|
|
|
2191
2223
|
|
|
2192
2224
|
> `static` **getAllByTag**(`tagName`): [`ToolFunc`](ToolFunc.md)[]
|
|
2193
2225
|
|
|
2194
|
-
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)
|
|
2195
2227
|
|
|
2196
2228
|
Retrieves all registered functions that have a specific tag.
|
|
2197
2229
|
|
|
@@ -2219,7 +2251,7 @@ An array of matching `ToolFunc` instances.
|
|
|
2219
2251
|
|
|
2220
2252
|
> `static` **getByTag**(`tagName`): `undefined` \| [`ToolFunc`](ToolFunc.md)
|
|
2221
2253
|
|
|
2222
|
-
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)
|
|
2223
2255
|
|
|
2224
2256
|
Finds the first registered function that has a specific tag.
|
|
2225
2257
|
|
|
@@ -2247,7 +2279,7 @@ The first matching `ToolFunc` instance, or `undefined` if none is found.
|
|
|
2247
2279
|
|
|
2248
2280
|
> `static` **getFunc**(`name`): `any`
|
|
2249
2281
|
|
|
2250
|
-
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)
|
|
2251
2283
|
|
|
2252
2284
|
Retrieves a bound, runnable function reference for a registered function.
|
|
2253
2285
|
This reference is suitable for execution with an object of named parameters.
|
|
@@ -2276,7 +2308,7 @@ A bound function reference, or `undefined` if not found.
|
|
|
2276
2308
|
|
|
2277
2309
|
> `static` **getFuncWithPos**(`name`): `any`
|
|
2278
2310
|
|
|
2279
|
-
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)
|
|
2280
2312
|
|
|
2281
2313
|
Retrieves a bound, runnable function reference for a registered function.
|
|
2282
2314
|
This reference is suitable for execution with positional arguments.
|
|
@@ -2344,7 +2376,9 @@ Returns an object containing all own property descriptors of an object
|
|
|
2344
2376
|
|
|
2345
2377
|
#### Type Parameters
|
|
2346
2378
|
|
|
2347
|
-
|
|
2379
|
+
##### T
|
|
2380
|
+
|
|
2381
|
+
`T`
|
|
2348
2382
|
|
|
2349
2383
|
#### Parameters
|
|
2350
2384
|
|
|
@@ -2465,7 +2499,7 @@ The object that references the prototype.
|
|
|
2465
2499
|
|
|
2466
2500
|
> `static` **hasAsyncFeature**(`feature`): `boolean`
|
|
2467
2501
|
|
|
2468
|
-
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)
|
|
2469
2503
|
|
|
2470
2504
|
Checks if any registered function has a specific asynchronous feature.
|
|
2471
2505
|
|
|
@@ -2685,7 +2719,7 @@ Object that contains the properties and methods. This can be an object that you
|
|
|
2685
2719
|
|
|
2686
2720
|
> `static` **list**(): [`Funcs`](../interfaces/Funcs.md)
|
|
2687
2721
|
|
|
2688
|
-
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)
|
|
2689
2723
|
|
|
2690
2724
|
Returns the complete map of all registered functions.
|
|
2691
2725
|
|
|
@@ -2703,9 +2737,9 @@ The map of `ToolFunc` instances.
|
|
|
2703
2737
|
|
|
2704
2738
|
### loadFrom()
|
|
2705
2739
|
|
|
2706
|
-
> `static` **loadFrom**(`items
|
|
2740
|
+
> `static` **loadFrom**(`items?`): `Promise`\<[`Funcs`](../interfaces/Funcs.md)\>
|
|
2707
2741
|
|
|
2708
|
-
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)
|
|
2709
2743
|
|
|
2710
2744
|
Loads tool definitions from the remote server via the configured transport.
|
|
2711
2745
|
This method populates the local `ToolFunc` registry with `ClientTools` stubs.
|
|
@@ -2726,7 +2760,7 @@ This method populates the local `ToolFunc` registry with `ClientTools` stubs.
|
|
|
2726
2760
|
|
|
2727
2761
|
> `static` **loadFromSync**(`items`): `void`
|
|
2728
2762
|
|
|
2729
|
-
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)
|
|
2730
2764
|
|
|
2731
2765
|
Synchronously loads tool definitions from a provided object, registering
|
|
2732
2766
|
each one as a `ClientTools` instance.
|
|
@@ -2755,7 +2789,9 @@ Prevents the addition of new properties to an object.
|
|
|
2755
2789
|
|
|
2756
2790
|
#### Type Parameters
|
|
2757
2791
|
|
|
2758
|
-
|
|
2792
|
+
##### T
|
|
2793
|
+
|
|
2794
|
+
`T`
|
|
2759
2795
|
|
|
2760
2796
|
#### Parameters
|
|
2761
2797
|
|
|
@@ -2781,7 +2817,7 @@ Object to make non-extensible.
|
|
|
2781
2817
|
|
|
2782
2818
|
> `static` **register**(`name`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2783
2819
|
|
|
2784
|
-
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)
|
|
2785
2821
|
|
|
2786
2822
|
Registers a new tool function.
|
|
2787
2823
|
|
|
@@ -2805,10 +2841,6 @@ The function's configuration.
|
|
|
2805
2841
|
|
|
2806
2842
|
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2807
2843
|
|
|
2808
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2809
|
-
|
|
2810
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2811
|
-
|
|
2812
2844
|
##### Inherited from
|
|
2813
2845
|
|
|
2814
2846
|
[`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register-2)
|
|
@@ -2817,7 +2849,7 @@ The new `ToolFunc` instance, or `false` if a function with that name already exi
|
|
|
2817
2849
|
|
|
2818
2850
|
> `static` **register**(`func`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2819
2851
|
|
|
2820
|
-
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)
|
|
2821
2853
|
|
|
2822
2854
|
Registers a new tool function.
|
|
2823
2855
|
|
|
@@ -2841,19 +2873,15 @@ The function's configuration.
|
|
|
2841
2873
|
|
|
2842
2874
|
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2843
2875
|
|
|
2844
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2845
|
-
|
|
2846
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2847
|
-
|
|
2848
2876
|
##### Inherited from
|
|
2849
2877
|
|
|
2850
2878
|
[`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register-2)
|
|
2851
2879
|
|
|
2852
2880
|
#### Call Signature
|
|
2853
2881
|
|
|
2854
|
-
> `static` **register**(`name`, `options
|
|
2882
|
+
> `static` **register**(`name`, `options?`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
2855
2883
|
|
|
2856
|
-
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)
|
|
2857
2885
|
|
|
2858
2886
|
Registers a new tool function.
|
|
2859
2887
|
|
|
@@ -2877,10 +2905,6 @@ The function's configuration.
|
|
|
2877
2905
|
|
|
2878
2906
|
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2879
2907
|
|
|
2880
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2881
|
-
|
|
2882
|
-
The new `ToolFunc` instance, or `false` if a function with that name already exists.
|
|
2883
|
-
|
|
2884
2908
|
##### Inherited from
|
|
2885
2909
|
|
|
2886
2910
|
[`ToolFunc`](ToolFunc.md).[`register`](ToolFunc.md#register-2)
|
|
@@ -2889,9 +2913,9 @@ The new `ToolFunc` instance, or `false` if a function with that name already exi
|
|
|
2889
2913
|
|
|
2890
2914
|
### run()
|
|
2891
2915
|
|
|
2892
|
-
> `static` **run**(`name`, `params
|
|
2916
|
+
> `static` **run**(`name`, `params?`): `Promise`\<`any`\>
|
|
2893
2917
|
|
|
2894
|
-
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)
|
|
2895
2919
|
|
|
2896
2920
|
Asynchronously executes a registered function by name with named parameters.
|
|
2897
2921
|
|
|
@@ -2927,9 +2951,9 @@ If the function with the given name is not found.
|
|
|
2927
2951
|
|
|
2928
2952
|
### runSync()
|
|
2929
2953
|
|
|
2930
|
-
> `static` **runSync**(`name`, `params
|
|
2954
|
+
> `static` **runSync**(`name`, `params?`): `any`
|
|
2931
2955
|
|
|
2932
|
-
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)
|
|
2933
2957
|
|
|
2934
2958
|
Synchronously executes a registered function by name with named parameters.
|
|
2935
2959
|
|
|
@@ -2967,7 +2991,7 @@ If the function with the given name is not found.
|
|
|
2967
2991
|
|
|
2968
2992
|
> `static` **runWithPos**(`name`, ...`params`): `Promise`\<`any`\>
|
|
2969
2993
|
|
|
2970
|
-
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)
|
|
2971
2995
|
|
|
2972
2996
|
Asynchronously executes a function using positional arguments.
|
|
2973
2997
|
|
|
@@ -3005,7 +3029,7 @@ If the function with the given name is not found.
|
|
|
3005
3029
|
|
|
3006
3030
|
> `static` **runWithPosSync**(`name`, ...`params`): `any`
|
|
3007
3031
|
|
|
3008
|
-
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)
|
|
3009
3033
|
|
|
3010
3034
|
Synchronously executes a function using positional arguments.
|
|
3011
3035
|
|
|
@@ -3049,7 +3073,9 @@ Prevents the modification of attributes of existing properties, and prevents the
|
|
|
3049
3073
|
|
|
3050
3074
|
#### Type Parameters
|
|
3051
3075
|
|
|
3052
|
-
|
|
3076
|
+
##### T
|
|
3077
|
+
|
|
3078
|
+
`T`
|
|
3053
3079
|
|
|
3054
3080
|
#### Parameters
|
|
3055
3081
|
|
|
@@ -3105,7 +3131,7 @@ The value of the new prototype or null.
|
|
|
3105
3131
|
|
|
3106
3132
|
> `static` **setTransport**(`transport`): `void`
|
|
3107
3133
|
|
|
3108
|
-
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)
|
|
3109
3135
|
|
|
3110
3136
|
Injects the client-side transport implementation. This is a crucial step
|
|
3111
3137
|
to enable communication with the server.
|
|
@@ -3128,7 +3154,7 @@ The transport instance to use for all client-server communication.
|
|
|
3128
3154
|
|
|
3129
3155
|
> `static` **unregister**(`name`): `undefined` \| [`ToolFunc`](ToolFunc.md)
|
|
3130
3156
|
|
|
3131
|
-
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)
|
|
3132
3158
|
|
|
3133
3159
|
Unregisters a function by its name, also removing any associated aliases.
|
|
3134
3160
|
|
|
@@ -3164,7 +3190,9 @@ Returns an array of values of the enumerable own properties of an object
|
|
|
3164
3190
|
|
|
3165
3191
|
##### Type Parameters
|
|
3166
3192
|
|
|
3167
|
-
|
|
3193
|
+
###### T
|
|
3194
|
+
|
|
3195
|
+
`T`
|
|
3168
3196
|
|
|
3169
3197
|
##### Parameters
|
|
3170
3198
|
|
|
@@ -3172,7 +3200,7 @@ Returns an array of values of the enumerable own properties of an object
|
|
|
3172
3200
|
|
|
3173
3201
|
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
3174
3202
|
|
|
3175
|
-
\{\} | `ArrayLike`\<`T`\>
|
|
3203
|
+
\{\[`s`: `string`\]: `T`; \} | `ArrayLike`\<`T`\>
|
|
3176
3204
|
|
|
3177
3205
|
##### Returns
|
|
3178
3206
|
|