@isdk/ai-tool 0.8.2 → 0.9.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-BIJ2JH4U.mjs +1 -0
- package/dist/chunk-OYMVHUDZ.mjs +1 -0
- package/dist/funcs.d.mts +16 -5
- package/dist/funcs.d.ts +16 -5
- package/dist/funcs.js +1 -1
- package/dist/funcs.mjs +1 -1
- package/dist/index.d.mts +839 -563
- package/dist/index.d.ts +839 -563
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/test/util.d.mts +1 -1
- package/dist/test/util.d.ts +1 -1
- package/dist/test/util.js +1 -1
- package/dist/test/util.mjs +1 -1
- package/docs/api/@isdk/namespaces/ClientTools/README.md +11 -0
- package/docs/api/@isdk/namespaces/ClientTools/functions/get.md +27 -0
- package/docs/api/@isdk/namespaces/EventStates/variables/ABORT.md +1 -1
- package/docs/api/@isdk/namespaces/EventStates/variables/CONTINUE.md +1 -1
- package/docs/api/@isdk/namespaces/EventStates/variables/DONE.md +1 -1
- package/docs/api/@isdk/namespaces/EventStates/variables/STOPPED.md +1 -1
- package/docs/api/classes/BinarySemaphore.md +148 -67
- package/docs/api/classes/CancelableAbility.md +95 -43
- package/docs/api/classes/ClientToolTransport.md +31 -16
- package/docs/api/classes/ClientTools.md +868 -158
- package/docs/api/classes/CmdArgLexer.md +82 -0
- package/docs/api/classes/CmdArgParser.md +56 -0
- package/docs/api/classes/ConfigFile.md +6 -6
- package/docs/api/classes/EnvPromptTemplate.md +224 -52
- package/docs/api/classes/EventClient.md +902 -192
- package/docs/api/classes/EventEmitter.md +62 -12
- package/docs/api/classes/EventServer.md +895 -182
- package/docs/api/classes/EventToolFunc.md +801 -123
- package/docs/api/classes/FStringPromptTemplate.md +224 -52
- package/docs/api/classes/FewShotPromptTemplate.md +231 -59
- package/docs/api/classes/GolangPromptTemplate.md +224 -52
- package/docs/api/classes/HttpClientToolTransport.md +33 -19
- package/docs/api/classes/HttpServerToolTransport.md +15 -15
- package/docs/api/classes/IntSet.md +21 -21
- package/docs/api/classes/MailboxClientTransport.md +398 -0
- package/docs/api/classes/MailboxServerTransport.md +433 -0
- package/docs/api/classes/PromptExampleSelector.md +11 -11
- package/docs/api/classes/PromptTemplate.md +199 -51
- package/docs/api/classes/ReadableStreamError.md +2 -2
- package/docs/api/classes/ResClientTools.md +875 -165
- package/docs/api/classes/ResServerTools.md +869 -156
- package/docs/api/classes/RpcMethodsClientTool.md +870 -160
- package/docs/api/classes/RpcMethodsServerTool.md +865 -152
- package/docs/api/classes/SSEChannel.md +23 -23
- package/docs/api/classes/Semaphore.md +148 -76
- package/docs/api/classes/ServerToolTransport.md +14 -13
- package/docs/api/classes/ServerTools.md +854 -138
- package/docs/api/classes/SignalGate.md +12 -12
- package/docs/api/classes/SseClientPubSubTransport.md +4 -4
- package/docs/api/classes/SseServerPubSubTransport.md +13 -13
- package/docs/api/classes/TaskAbortController.md +33 -11
- package/docs/api/classes/ToolFunc.md +725 -119
- package/docs/api/classes/ToolTransport.md +7 -7
- package/docs/api/classes/YamlTypeBaseObject.md +2 -2
- package/docs/api/enumerations/AsyncFeatureBits.md +4 -4
- package/docs/api/enumerations/AsyncFeatures.md +4 -4
- package/docs/api/enumerations/CmdArgTokenType.md +129 -0
- package/docs/api/enumerations/HashAlgorithm.md +38 -12
- package/docs/api/functions/AIArgProcessor.md +8 -17
- package/docs/api/functions/AIStream.md +1 -1
- package/docs/api/functions/ChoiceArgProcessor.md +13 -15
- package/docs/api/functions/DefaultDateFormat.md +1 -1
- package/docs/api/functions/ObjectArgsToArgsInfo.md +11 -9
- package/docs/api/functions/RateLimit.md +33 -6
- package/docs/api/functions/TemplateArgProcessor.md +13 -15
- package/docs/api/functions/assignDirs.md +1 -1
- package/docs/api/functions/beforeShutdown.md +3 -3
- package/docs/api/functions/calcPerplexity.md +3 -3
- package/docs/api/functions/calcPerplexitySimple.md +3 -3
- package/docs/api/functions/cmdArgEvaluate.md +28 -0
- package/docs/api/functions/cmdArgsToMergedObject.md +34 -0
- 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/createCallbacksTransformer.md +23 -19
- package/docs/api/functions/createEmptyReadableStream.md +1 -1
- package/docs/api/functions/createEndWithRepetitionDetector.md +4 -4
- package/docs/api/functions/createEventStreamTransformer.md +1 -1
- package/docs/api/functions/createHfValueFunc.md +1 -1
- package/docs/api/functions/createLRUCache.md +1 -1
- package/docs/api/functions/createYamlObjectTag.md +1 -1
- package/docs/api/functions/dateToText.md +1 -1
- package/docs/api/functions/decodeCharset.md +1 -1
- package/docs/api/functions/defaultsWithConcat.md +1 -1
- package/docs/api/functions/detectCharset.md +1 -1
- package/docs/api/functions/encodeLLMTokens.md +1 -1
- package/docs/api/functions/ensureQuoted.md +3 -1
- package/docs/api/functions/evaluateExpression.md +40 -0
- package/docs/api/functions/eventable.md +1 -1
- package/docs/api/functions/expandConfig.md +1 -1
- package/docs/api/functions/expandEnv.md +1 -1
- package/docs/api/functions/expandObjEnv.md +1 -1
- package/docs/api/functions/expandPath.md +1 -1
- package/docs/api/functions/expandPathInObject.md +1 -1
- package/docs/api/functions/expandPaths.md +1 -1
- package/docs/api/functions/extNameLevel.md +1 -1
- package/docs/api/functions/extractCodeBlock.md +51 -0
- package/docs/api/functions/fileIsExists.md +3 -3
- package/docs/api/functions/filterValidFnScope.md +3 -3
- package/docs/api/functions/findIndexNonEmptyFrom.md +1 -1
- package/docs/api/functions/findPort.md +13 -5
- package/docs/api/functions/formatTextWithSpace.md +1 -1
- package/docs/api/functions/funcGetMeta.md +1 -1
- package/docs/api/functions/funcWithMeta.md +4 -4
- package/docs/api/functions/genUrlParamsStr.md +1 -1
- package/docs/api/functions/getAllEnumKeys.md +1 -1
- package/docs/api/functions/getConfigFileNames.md +1 -1
- package/docs/api/functions/getConfigs.md +1 -1
- package/docs/api/functions/getEnvVairables.md +1 -1
- package/docs/api/functions/getFileMetaInfo.md +1 -1
- package/docs/api/functions/getHashAlgoBySize.md +1 -1
- package/docs/api/functions/getKeysPath.md +1 -1
- 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 +3 -3
- package/docs/api/functions/hash.md +25 -4
- package/docs/api/functions/hashFile.md +1 -1
- package/docs/api/functions/hashObject.md +23 -1
- package/docs/api/functions/hashStream.md +25 -4
- package/docs/api/functions/initShutdown.md +1 -1
- package/docs/api/functions/isIdentifier.md +30 -0
- package/docs/api/functions/isLangUsingSpaces.md +1 -1
- package/docs/api/functions/isListItemString.md +3 -3
- package/docs/api/functions/isModelNameMatched.md +3 -3
- package/docs/api/functions/isPathIdentifier.md +23 -0
- package/docs/api/functions/isPunctuationChar.md +1 -1
- package/docs/api/functions/isQuoted.md +4 -1
- package/docs/api/functions/isRegExp.md +20 -1
- package/docs/api/functions/isSameString.md +1 -1
- package/docs/api/functions/isSectionString.md +3 -3
- package/docs/api/functions/isSentenceEnding.md +1 -1
- package/docs/api/functions/isSepLineString.md +3 -3
- package/docs/api/functions/isStrWrapped.md +3 -1
- package/docs/api/functions/isSubdirectory.md +1 -1
- package/docs/api/functions/isTitleString.md +3 -3
- package/docs/api/functions/isValidFilename.md +1 -1
- package/docs/api/functions/isValidFilepath.md +1 -1
- package/docs/api/functions/isWebStream.md +1 -1
- package/docs/api/functions/joinSplitWords.md +1 -1
- package/docs/api/functions/jsonFilterToWhere.md +1 -1
- package/docs/api/functions/jsonToMarkdownStr.md +1 -1
- 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 +1 -1
- package/docs/api/functions/loadTextFromPaths.md +1 -1
- package/docs/api/functions/lrucache.md +1 -1
- package/docs/api/functions/matchUrlProtocol.md +3 -3
- package/docs/api/functions/memoize.md +1 -1
- package/docs/api/functions/mergeArray.md +1 -1
- package/docs/api/functions/messagesToText.md +1 -1
- package/docs/api/functions/normalizePath.md +1 -1
- package/docs/api/functions/paramsSizeToScaleStr.md +1 -1
- package/docs/api/functions/parseCommand.md +21 -4
- package/docs/api/functions/parseJsJson.md +1 -1
- package/docs/api/functions/parseJsJsonSimpleSync.md +1 -1
- package/docs/api/functions/parseObjectArguments.md +17 -33
- package/docs/api/functions/parseYaml.md +1 -1
- package/docs/api/functions/prependNewlineIfMultiline.md +39 -0
- package/docs/api/functions/pruneSubdirectories.md +1 -1
- package/docs/api/functions/pruneSubdirectoriesInPlace.md +1 -1
- package/docs/api/functions/quoteStr.md +4 -1
- package/docs/api/functions/readFilenamesRecursiveSync.md +1 -1
- package/docs/api/functions/readTextFileChunks.md +1 -1
- package/docs/api/functions/readTextFileChunksEx.md +1 -1
- package/docs/api/functions/readableFromAsyncIterable.md +1 -1
- package/docs/api/functions/registerCoreTools.md +1 -1
- package/docs/api/functions/registerYamlTag.md +2 -2
- package/docs/api/functions/removeMarkdownBold.md +1 -1
- package/docs/api/functions/removeMarkdownBoldAndItalic.md +1 -1
- package/docs/api/functions/removeMarkdownItalic.md +1 -1
- package/docs/api/functions/replaceWithPlaceholder.md +3 -18
- package/docs/api/functions/restoreFromPlacehoders.md +2 -20
- 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 +2 -2
- package/docs/api/functions/simplifyObjectArguments.md +4 -1
- package/docs/api/functions/simplifyResult.md +34 -0
- package/docs/api/functions/sleep.md +1 -1
- package/docs/api/functions/sortedValues.md +1 -1
- package/docs/api/functions/splitChunks.md +1 -1
- package/docs/api/functions/splitParagraph.md +1 -1
- 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/textify.md +43 -0
- package/docs/api/functions/toDateTime.md +3 -3
- package/docs/api/functions/toRegExp.md +1 -1
- package/docs/api/functions/trimStartOfStreamHelper.md +1 -1
- package/docs/api/functions/truncTo.md +1 -1
- package/docs/api/functions/truncateByToken.md +1 -1
- package/docs/api/functions/truncateToTokenLimit.md +1 -1
- package/docs/api/functions/truncateToTokenLimitEx.md +1 -1
- package/docs/api/functions/uuid.md +1 -1
- package/docs/api/functions/wrapEventEmitter.md +1 -1
- package/docs/api/functions/wrapFlagValue.md +29 -0
- package/docs/api/functions/xxhash.md +27 -6
- package/docs/api/functions/xxhash32.md +22 -4
- package/docs/api/functions/xxhash64.md +22 -4
- package/docs/api/functions/xxhashAsStr.md +27 -6
- package/docs/api/functions/yieldExec.md +1 -1
- package/docs/api/globals.md +51 -18
- package/docs/api/interfaces/AIChatAssistantMessageParam.md +14 -14
- package/docs/api/interfaces/AIChatContentPartBase.md +26 -0
- package/docs/api/interfaces/AIChatContentPartImage.md +15 -3
- package/docs/api/interfaces/AIChatContentPartText.md +15 -3
- package/docs/api/interfaces/AIChatMessageParamBase.md +9 -9
- package/docs/api/interfaces/AIChatMessageToolCall.md +12 -8
- package/docs/api/interfaces/AIChatSystemMessageParam.md +10 -10
- package/docs/api/interfaces/AIChatToolChoiceFuncObject.md +3 -3
- package/docs/api/interfaces/AIChatToolChoiceObject.md +2 -2
- package/docs/api/interfaces/AIChatToolDefinition.md +45 -0
- package/docs/api/interfaces/AIChatToolFunc.md +5 -5
- package/docs/api/interfaces/AIChatToolFuncParam.md +3 -3
- package/docs/api/interfaces/AIChatToolMessageParam.md +13 -13
- package/docs/api/interfaces/AIChatToolParam.md +2 -2
- package/docs/api/interfaces/AIChatToolTypeObject.md +2 -2
- package/docs/api/interfaces/AIChatUserMessageParam.md +14 -14
- package/docs/api/interfaces/AIResult.md +7 -7
- package/docs/api/interfaces/AIStreamParser.md +2 -2
- package/docs/api/interfaces/AIStreamParserOptions.md +2 -2
- package/docs/api/interfaces/BaseFunc.md +15 -15
- package/docs/api/interfaces/BaseFuncItem.md +16 -16
- package/docs/api/interfaces/BinarySemaphoreAcquireOptions.md +9 -2
- package/docs/api/interfaces/BinarySemaphoreOptions.md +22 -5
- package/docs/api/interfaces/BinarySemaphoreReleaseOptions.md +7 -5
- package/docs/api/interfaces/CancelableAbilityOptions.md +4 -4
- package/docs/api/interfaces/ClientFuncItem.md +70 -19
- package/docs/api/interfaces/CmdArgAIChoiceConfig.md +97 -0
- package/docs/api/interfaces/CmdArgArgsInfo.md +31 -0
- package/docs/api/interfaces/CmdArgContext.md +103 -0
- package/docs/api/interfaces/CmdArgFlagMetadata.md +21 -0
- package/docs/api/interfaces/CmdArgMapResult.md +41 -0
- package/docs/api/interfaces/CmdArgParseResult.md +51 -0
- package/docs/api/interfaces/CmdArgParsedCommand.md +41 -0
- package/docs/api/interfaces/CmdArgParserOptions.md +225 -0
- package/docs/api/interfaces/CmdArgProcessorResultOptions.md +22 -0
- package/docs/api/interfaces/CmdArgSimplifyOptions.md +101 -0
- package/docs/api/interfaces/CmdArgToken.md +51 -0
- package/docs/api/interfaces/EventClientFuncParams.md +5 -5
- package/docs/api/interfaces/EventServerFuncParams.md +21 -7
- package/docs/api/interfaces/FewShotPromptTemplateOptions.md +18 -6
- package/docs/api/interfaces/FuncItem.md +19 -15
- 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 +36 -5
- package/docs/api/interfaces/IClientToolTransport.md +24 -10
- package/docs/api/interfaces/IFileMetaInfo.md +8 -8
- package/docs/api/interfaces/IPubSubClientTransport.md +4 -4
- package/docs/api/interfaces/IPubSubServerTransport.md +14 -14
- package/docs/api/interfaces/IReadTextFileChunksOptions.md +11 -11
- package/docs/api/interfaces/IServerToolTransport.md +8 -8
- package/docs/api/interfaces/IToolTransport.md +5 -5
- package/docs/api/interfaces/ITruncateToTokenLimitOptions.md +10 -10
- package/docs/api/interfaces/JsonFilter.md +1 -1
- package/docs/api/interfaces/MailboxClientOptions.md +74 -0
- package/docs/api/interfaces/MailboxServerOptions.md +69 -0
- package/docs/api/interfaces/ProbabilityItem.md +4 -4
- package/docs/api/interfaces/PromptExampleSelectorOptions.md +3 -3
- package/docs/api/interfaces/PromptTemplateOptions.md +8 -0
- package/docs/api/interfaces/PubSubClientStream.md +11 -11
- package/docs/api/interfaces/PubSubServerSession.md +8 -8
- package/docs/api/interfaces/RegisterOptions.md +298 -0
- package/docs/api/interfaces/RemoteFuncItem.md +63 -20
- package/docs/api/interfaces/ReplacePlacehoderOptions.md +5 -5
- package/docs/api/interfaces/ResClientFuncParams.md +3 -3
- package/docs/api/interfaces/ResServerFuncParams.md +20 -6
- package/docs/api/interfaces/RpcMethodsClientFuncParams.md +2 -2
- package/docs/api/interfaces/RpcMethodsServerFuncParams.md +18 -4
- package/docs/api/interfaces/SanitizeFilenameOptions.md +3 -3
- package/docs/api/interfaces/SectionStringOptions.md +3 -3
- package/docs/api/interfaces/SemaphoreOptions.md +30 -7
- package/docs/api/interfaces/SemaphoreTaskItem.md +18 -5
- package/docs/api/interfaces/ServerFuncItem.md +71 -20
- package/docs/api/interfaces/ServerFuncParams.md +14 -4
- package/docs/api/interfaces/SplitSentenceOptions.md +5 -5
- package/docs/api/interfaces/StreamCallbacksAndOptions.md +80 -7
- package/docs/api/interfaces/TaskAbortControllers.md +2 -2
- package/docs/api/interfaces/TaskPromise.md +6 -6
- package/docs/api/interfaces/TextifyInlineOptions.md +51 -0
- package/docs/api/interfaces/TextifyOptions.md +108 -0
- package/docs/api/interfaces/ToolFuncContext.md +73 -0
- package/docs/api/interfaces/ToolFuncPackage.md +4 -4
- package/docs/api/interfaces/ToolFuncRegistryIsolateOptions.md +41 -0
- package/docs/api/interfaces/UnregisterOptions.md +56 -0
- package/docs/api/type-aliases/AIChatContentPart.md +2 -2
- package/docs/api/type-aliases/AIChatMessageParam.md +1 -1
- package/docs/api/type-aliases/AIChatRole.md +2 -2
- package/docs/api/type-aliases/AIChatTemplateCaps.md +239 -0
- package/docs/api/type-aliases/AIChatToolChoiceParam.md +1 -1
- package/docs/api/type-aliases/AIMessageType.md +1 -1
- package/docs/api/type-aliases/AIModelNameRule.md +1 -1
- package/docs/api/type-aliases/AIModelNameRuleFn.md +1 -1
- package/docs/api/type-aliases/AIModelNameRules.md +1 -1
- package/docs/api/type-aliases/AITextGenerationFinishReason.md +1 -1
- package/docs/api/type-aliases/ActionName.md +1 -1
- package/docs/api/type-aliases/ArgProcessor.md +24 -0
- package/docs/api/type-aliases/ArrayMergeWay.md +1 -1
- package/docs/api/type-aliases/AsyncTaskId.md +1 -1
- package/docs/api/type-aliases/BeforeShutdownListener.md +1 -1
- package/docs/api/type-aliases/CmdArgFlagValue.md +14 -0
- package/docs/api/type-aliases/CmdArgFlagsRecord.md +13 -0
- package/docs/api/type-aliases/EventErrorListenerFn.md +1 -1
- package/docs/api/type-aliases/EventListenerFn.md +1 -1
- package/docs/api/type-aliases/FuncParamType.md +1 -1
- package/docs/api/type-aliases/PromptExamples.md +1 -1
- package/docs/api/type-aliases/PubSubClientId.md +1 -1
- package/docs/api/type-aliases/PubSubCtx.md +6 -6
- package/docs/api/type-aliases/RpcMethodHandler.md +1 -1
- package/docs/api/type-aliases/SSEClient.md +5 -5
- package/docs/api/type-aliases/SemaphoreIsReadyFuncType.md +4 -1
- package/docs/api/type-aliases/SimplifiedResultType.md +14 -0
- package/docs/api/type-aliases/StreamCloseStatus.md +16 -0
- package/docs/api/type-aliases/TFunc.md +1 -1
- package/docs/api/type-aliases/TextifyInlineStyleMode.md +16 -0
- package/docs/api/type-aliases/TextifyStringQuoting.md +16 -0
- package/docs/api/type-aliases/UUIDVersions.md +3 -1
- package/docs/api/variables/AIChatRoles.md +2 -2
- 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 +1 -1
- package/docs/api/variables/ArrayMergeWaySymbol.md +1 -1
- package/docs/api/variables/CMD_ARG_FLAG_SYMBOL.md +21 -0
- package/docs/api/variables/CMD_ARG_PROCESSOR_RESULT.md +22 -0
- package/docs/api/variables/CMD_ARG_UNRESOLVED_SYMBOL.md +16 -0
- package/docs/api/variables/ClientEventPrefix.md +2 -2
- package/docs/api/variables/ClientToolFuncSchema.md +27 -17
- package/docs/api/variables/DEFAULT_CONFIG_NAME.md +1 -1
- package/docs/api/variables/DefaultAsyncSemaphoreCapacity.md +4 -1
- package/docs/api/variables/EventBusName.md +2 -2
- package/docs/api/variables/EventName.md +2 -2
- package/docs/api/variables/FilenameReservedRegex.md +1 -1
- package/docs/api/variables/FuncMetaSymbol.md +2 -2
- package/docs/api/variables/IDENTIFIER_REGEX.md +14 -0
- package/docs/api/variables/LLM_TOKENIZER_NAMES.md +1 -1
- package/docs/api/variables/LLM_TOKENIZER_NAMES_MAP.md +1 -1
- package/docs/api/variables/PASSING_SCORE.md +1 -1
- package/docs/api/variables/PATH_IDENTIFIER_REGEX.md +13 -0
- package/docs/api/variables/RESERVED_WORDS.md +13 -0
- package/docs/api/variables/RStreamErrCode.md +1 -1
- package/docs/api/variables/RemoteToolFuncSchema.md +36 -4
- package/docs/api/variables/ResponseRStreamErrCode.md +1 -1
- package/docs/api/variables/RpcMethodsClientToolSchema.md +2 -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 +27 -17
- 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 +13 -13
- package/docs/api/variables/WindowsReservedNameRegex.md +1 -1
- package/docs/api/variables/backendEventable.md +23 -3
- package/docs/api/variables/base32768.md +2 -2
- 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 +23 -3
- package/docs/api/variables/wait.md +1 -1
- package/docs/transport.dev.md +206 -0
- package/package.json +12 -10
- package/dist/chunk-4FKBOPZI.mjs +0 -1
- package/dist/chunk-TGTHY57V.mjs +0 -1
- package/dist/find-port-qS1CZ9c-.d.mts +0 -3
- package/dist/find-port-qS1CZ9c-.d.ts +0 -3
- package/dist/index-BLW3R7VS.d.mts +0 -1826
- package/dist/index-BLW3R7VS.d.ts +0 -1826
- package/docs/api/@isdk/namespaces/uuidv5/README.md +0 -12
- package/docs/api/@isdk/namespaces/uuidv5/variables/DNS.md +0 -11
- package/docs/api/@isdk/namespaces/uuidv5/variables/URL.md +0 -11
- package/docs/api/functions/nanoid.md +0 -45
- package/docs/api/functions/parseObjectArgInfo.md +0 -33
- package/docs/api/functions/parseObjectArgumentInfos.md +0 -29
- package/docs/api/functions/parseObjectArgumentsAsArgInfos.md +0 -46
- package/docs/api/functions/uuidParse.md +0 -21
- package/docs/api/functions/uuidStringify.md +0 -25
- package/docs/api/functions/uuidValidate.md +0 -21
- package/docs/api/functions/uuidVersion.md +0 -21
- package/docs/api/functions/uuidv1.md +0 -61
- package/docs/api/functions/uuidv4.md +0 -61
- package/docs/api/functions/uuidv5.md +0 -69
- package/docs/api/functions/uuidv6.md +0 -61
- package/docs/api/functions/uuidv7.md +0 -61
- package/docs/api/interfaces/AIChoiceConfig.md +0 -65
- package/docs/api/interfaces/BinarySemaphoreReleaserFunc.md +0 -37
- package/docs/api/interfaces/ParseObjectArgumentOptions.md +0 -89
- package/docs/api/variables/uuidNIL.md +0 -11
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: CancelableAbility
|
|
8
8
|
|
|
9
|
-
Defined in:
|
|
9
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1028
|
|
10
10
|
|
|
11
11
|
## Indexable
|
|
12
12
|
|
|
@@ -26,17 +26,17 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:74]
|
|
|
26
26
|
|
|
27
27
|
### \_\_task\_aborter
|
|
28
28
|
|
|
29
|
-
> **\_\_task\_aborter**: `
|
|
29
|
+
> **\_\_task\_aborter**: [`TaskAbortControllers`](../interfaces/TaskAbortControllers.md) \| [`TaskAbortController`](TaskAbortController.md) \| `undefined`
|
|
30
30
|
|
|
31
|
-
Defined in:
|
|
31
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1037
|
|
32
32
|
|
|
33
33
|
***
|
|
34
34
|
|
|
35
35
|
### \_\_task\_semaphore
|
|
36
36
|
|
|
37
|
-
> **\_\_task\_semaphore**:
|
|
37
|
+
> **\_\_task\_semaphore**: [`Semaphore`](Semaphore.md) \| `undefined`
|
|
38
38
|
|
|
39
|
-
Defined in:
|
|
39
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1038
|
|
40
40
|
|
|
41
41
|
***
|
|
42
42
|
|
|
@@ -44,7 +44,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:87]
|
|
|
44
44
|
|
|
45
45
|
> `optional` **\_asyncFeatures**: `number`
|
|
46
46
|
|
|
47
|
-
Defined in:
|
|
47
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1029
|
|
48
48
|
|
|
49
49
|
***
|
|
50
50
|
|
|
@@ -52,15 +52,15 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:75]
|
|
|
52
52
|
|
|
53
53
|
> `optional` **\_isReadyFn**: [`SemaphoreIsReadyFuncType`](../type-aliases/SemaphoreIsReadyFuncType.md)
|
|
54
54
|
|
|
55
|
-
Defined in:
|
|
55
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1031
|
|
56
56
|
|
|
57
57
|
***
|
|
58
58
|
|
|
59
59
|
### \_maxTaskConcurrency
|
|
60
60
|
|
|
61
|
-
> **\_maxTaskConcurrency**: `
|
|
61
|
+
> **\_maxTaskConcurrency**: `number` \| `undefined`
|
|
62
62
|
|
|
63
|
-
Defined in:
|
|
63
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1030
|
|
64
64
|
|
|
65
65
|
***
|
|
66
66
|
|
|
@@ -68,7 +68,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:76]
|
|
|
68
68
|
|
|
69
69
|
> **cleanMultiTaskAborter**: (`id`, `aborters`) => `void`
|
|
70
70
|
|
|
71
|
-
Defined in:
|
|
71
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1036
|
|
72
72
|
|
|
73
73
|
#### Parameters
|
|
74
74
|
|
|
@@ -90,7 +90,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:84]
|
|
|
90
90
|
|
|
91
91
|
> **generateAsyncTaskId**: (`taskId?`, `aborters?`) => [`AsyncTaskId`](../type-aliases/AsyncTaskId.md)
|
|
92
92
|
|
|
93
|
-
Defined in:
|
|
93
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1035
|
|
94
94
|
|
|
95
95
|
#### Parameters
|
|
96
96
|
|
|
@@ -112,13 +112,13 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:83]
|
|
|
112
112
|
|
|
113
113
|
#### Get Signature
|
|
114
114
|
|
|
115
|
-
> **get** **maxTaskConcurrency**(): `
|
|
115
|
+
> **get** **maxTaskConcurrency**(): `number` \| `undefined`
|
|
116
116
|
|
|
117
|
-
Defined in:
|
|
117
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1039
|
|
118
118
|
|
|
119
119
|
##### Returns
|
|
120
120
|
|
|
121
|
-
`
|
|
121
|
+
`number` \| `undefined`
|
|
122
122
|
|
|
123
123
|
***
|
|
124
124
|
|
|
@@ -126,13 +126,13 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:89]
|
|
|
126
126
|
|
|
127
127
|
#### Get Signature
|
|
128
128
|
|
|
129
|
-
> **get** **semaphore**(): `
|
|
129
|
+
> **get** **semaphore**(): `any`
|
|
130
130
|
|
|
131
|
-
Defined in:
|
|
131
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1040
|
|
132
132
|
|
|
133
133
|
##### Returns
|
|
134
134
|
|
|
135
|
-
`
|
|
135
|
+
`any`
|
|
136
136
|
|
|
137
137
|
## Methods
|
|
138
138
|
|
|
@@ -140,7 +140,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:93]
|
|
|
140
140
|
|
|
141
141
|
> **\_cleanMultiTaskAborter**(`id`, `aborters`): `void`
|
|
142
142
|
|
|
143
|
-
Defined in:
|
|
143
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1052
|
|
144
144
|
|
|
145
145
|
#### Parameters
|
|
146
146
|
|
|
@@ -162,7 +162,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:281
|
|
|
162
162
|
|
|
163
163
|
> **\_generateAsyncTaskId**(`taskId?`, `aborters?`): [`AsyncTaskId`](../type-aliases/AsyncTaskId.md)
|
|
164
164
|
|
|
165
|
-
Defined in:
|
|
165
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1047
|
|
166
166
|
|
|
167
167
|
#### Parameters
|
|
168
168
|
|
|
@@ -180,11 +180,59 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:173
|
|
|
180
180
|
|
|
181
181
|
***
|
|
182
182
|
|
|
183
|
+
### $\_prepareContext()
|
|
184
|
+
|
|
185
|
+
> **$\_prepareContext**(`params?`, `ctx?`): [`ToolFuncContext`](../interfaces/ToolFuncContext.md)
|
|
186
|
+
|
|
187
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1070
|
|
188
|
+
|
|
189
|
+
Method overloading for ToolFunc._prepareContext
|
|
190
|
+
|
|
191
|
+
#### Parameters
|
|
192
|
+
|
|
193
|
+
##### params?
|
|
194
|
+
|
|
195
|
+
`any`
|
|
196
|
+
|
|
197
|
+
##### ctx?
|
|
198
|
+
|
|
199
|
+
[`ToolFuncContext`](../interfaces/ToolFuncContext.md)
|
|
200
|
+
|
|
201
|
+
#### Returns
|
|
202
|
+
|
|
203
|
+
[`ToolFuncContext`](../interfaces/ToolFuncContext.md)
|
|
204
|
+
|
|
205
|
+
***
|
|
206
|
+
|
|
207
|
+
### $\_shouldIsolate()
|
|
208
|
+
|
|
209
|
+
> **$\_shouldIsolate**(`params?`, `ctx?`): `boolean`
|
|
210
|
+
|
|
211
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1066
|
|
212
|
+
|
|
213
|
+
Method overloading for ToolFunc._shouldIsolate
|
|
214
|
+
|
|
215
|
+
#### Parameters
|
|
216
|
+
|
|
217
|
+
##### params?
|
|
218
|
+
|
|
219
|
+
`any`
|
|
220
|
+
|
|
221
|
+
##### ctx?
|
|
222
|
+
|
|
223
|
+
[`ToolFuncContext`](../interfaces/ToolFuncContext.md)
|
|
224
|
+
|
|
225
|
+
#### Returns
|
|
226
|
+
|
|
227
|
+
`boolean`
|
|
228
|
+
|
|
229
|
+
***
|
|
230
|
+
|
|
183
231
|
### $cleanMultiTaskAborter()
|
|
184
232
|
|
|
185
233
|
> **$cleanMultiTaskAborter**(`id`, `aborters`): `void`
|
|
186
234
|
|
|
187
|
-
Defined in:
|
|
235
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1050
|
|
188
236
|
|
|
189
237
|
#### Parameters
|
|
190
238
|
|
|
@@ -204,9 +252,9 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:261
|
|
|
204
252
|
|
|
205
253
|
### $generateAsyncTaskId()
|
|
206
254
|
|
|
207
|
-
> **$generateAsyncTaskId**(`taskId?`, `aborters?`):
|
|
255
|
+
> **$generateAsyncTaskId**(`taskId?`, `aborters?`): [`AsyncTaskId`](../type-aliases/AsyncTaskId.md) \| `undefined`
|
|
208
256
|
|
|
209
|
-
Defined in:
|
|
257
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1048
|
|
210
258
|
|
|
211
259
|
#### Parameters
|
|
212
260
|
|
|
@@ -220,7 +268,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:186
|
|
|
220
268
|
|
|
221
269
|
#### Returns
|
|
222
270
|
|
|
223
|
-
|
|
271
|
+
[`AsyncTaskId`](../type-aliases/AsyncTaskId.md) \| `undefined`
|
|
224
272
|
|
|
225
273
|
***
|
|
226
274
|
|
|
@@ -228,7 +276,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:186
|
|
|
228
276
|
|
|
229
277
|
> **abort**(`reason?`, `data?`): `void`
|
|
230
278
|
|
|
231
|
-
Defined in:
|
|
279
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1062
|
|
232
280
|
|
|
233
281
|
#### Parameters
|
|
234
282
|
|
|
@@ -250,7 +298,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:338
|
|
|
250
298
|
|
|
251
299
|
> **cleanTaskAborter**(`aborter`): `void`
|
|
252
300
|
|
|
253
|
-
Defined in:
|
|
301
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1051
|
|
254
302
|
|
|
255
303
|
#### Parameters
|
|
256
304
|
|
|
@@ -266,9 +314,9 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:271
|
|
|
266
314
|
|
|
267
315
|
### createAborter()
|
|
268
316
|
|
|
269
|
-
> **createAborter**(`params?`, `taskId?`, `raiseError?`): [`TaskAbortController`](TaskAbortController.md)
|
|
317
|
+
> **createAborter**(`params?`, `taskId?`, `raiseError?`, `ctx?`): [`TaskAbortController`](TaskAbortController.md)
|
|
270
318
|
|
|
271
|
-
Defined in:
|
|
319
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1049
|
|
272
320
|
|
|
273
321
|
#### Parameters
|
|
274
322
|
|
|
@@ -282,7 +330,11 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:197
|
|
|
282
330
|
|
|
283
331
|
##### raiseError?
|
|
284
332
|
|
|
285
|
-
`boolean`
|
|
333
|
+
`boolean`
|
|
334
|
+
|
|
335
|
+
##### ctx?
|
|
336
|
+
|
|
337
|
+
[`ToolFuncContext`](../interfaces/ToolFuncContext.md)
|
|
286
338
|
|
|
287
339
|
#### Returns
|
|
288
340
|
|
|
@@ -294,7 +346,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:197
|
|
|
294
346
|
|
|
295
347
|
> **createTaskPromise**\<`Output`\>(`runTask`, `params`, `options?`): [`TaskPromise`](../interfaces/TaskPromise.md)\<`Output`\>
|
|
296
348
|
|
|
297
|
-
Defined in:
|
|
349
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1053
|
|
298
350
|
|
|
299
351
|
#### Type Parameters
|
|
300
352
|
|
|
@@ -330,9 +382,9 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:285
|
|
|
330
382
|
|
|
331
383
|
### getRunningTask()
|
|
332
384
|
|
|
333
|
-
> **getRunningTask**(`taskId?`):
|
|
385
|
+
> **getRunningTask**(`taskId?`): [`TaskAbortController`](TaskAbortController.md) \| `undefined`
|
|
334
386
|
|
|
335
|
-
Defined in:
|
|
387
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1045
|
|
336
388
|
|
|
337
389
|
#### Parameters
|
|
338
390
|
|
|
@@ -342,7 +394,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:135
|
|
|
342
394
|
|
|
343
395
|
#### Returns
|
|
344
396
|
|
|
345
|
-
|
|
397
|
+
[`TaskAbortController`](TaskAbortController.md) \| `undefined`
|
|
346
398
|
|
|
347
399
|
***
|
|
348
400
|
|
|
@@ -350,7 +402,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:135
|
|
|
350
402
|
|
|
351
403
|
> **getRunningTaskCount**(): `number`
|
|
352
404
|
|
|
353
|
-
Defined in:
|
|
405
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1046
|
|
354
406
|
|
|
355
407
|
#### Returns
|
|
356
408
|
|
|
@@ -360,19 +412,19 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:158
|
|
|
360
412
|
|
|
361
413
|
### getSemaphore()
|
|
362
414
|
|
|
363
|
-
> **getSemaphore**(`isReadyFn
|
|
415
|
+
> **getSemaphore**(`isReadyFn?`): `any`
|
|
364
416
|
|
|
365
|
-
Defined in:
|
|
417
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1041
|
|
366
418
|
|
|
367
419
|
#### Parameters
|
|
368
420
|
|
|
369
|
-
##### isReadyFn
|
|
421
|
+
##### isReadyFn?
|
|
370
422
|
|
|
371
|
-
|
|
423
|
+
[`SemaphoreIsReadyFuncType`](../type-aliases/SemaphoreIsReadyFuncType.md)
|
|
372
424
|
|
|
373
425
|
#### Returns
|
|
374
426
|
|
|
375
|
-
`
|
|
427
|
+
`any`
|
|
376
428
|
|
|
377
429
|
***
|
|
378
430
|
|
|
@@ -380,7 +432,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:97]
|
|
|
380
432
|
|
|
381
433
|
> **hasAsyncFeature**(`feature`): `boolean`
|
|
382
434
|
|
|
383
|
-
Defined in:
|
|
435
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1043
|
|
384
436
|
|
|
385
437
|
#### Parameters
|
|
386
438
|
|
|
@@ -398,7 +450,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:114
|
|
|
398
450
|
|
|
399
451
|
> **isAborted**(`taskId?`): `boolean`
|
|
400
452
|
|
|
401
|
-
Defined in:
|
|
453
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1044
|
|
402
454
|
|
|
403
455
|
#### Parameters
|
|
404
456
|
|
|
@@ -416,7 +468,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:120
|
|
|
416
468
|
|
|
417
469
|
> **runAsyncCancelableTask**\<`Output`\>(`params`, `runTask`, `options?`): [`TaskPromise`](../interfaces/TaskPromise.md)\<`Output`\>
|
|
418
470
|
|
|
419
|
-
Defined in:
|
|
471
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1057
|
|
420
472
|
|
|
421
473
|
#### Type Parameters
|
|
422
474
|
|
|
@@ -428,7 +480,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:323
|
|
|
428
480
|
|
|
429
481
|
##### params
|
|
430
482
|
|
|
431
|
-
`Record`\<`string`, `any`\>
|
|
483
|
+
`Record`\<`string`, `any`\> | `undefined`
|
|
432
484
|
|
|
433
485
|
##### runTask
|
|
434
486
|
|
|
@@ -458,7 +510,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/utils/cancelable-ability.ts:323
|
|
|
458
510
|
|
|
459
511
|
> `static` **hasAsyncFeature**(`feature`): `boolean`
|
|
460
512
|
|
|
461
|
-
Defined in:
|
|
513
|
+
Defined in: @isdk/ai-tools/packages/tool-func/dist/index.d.ts:1042
|
|
462
514
|
|
|
463
515
|
#### Parameters
|
|
464
516
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Abstract Class: ClientToolTransport
|
|
8
8
|
|
|
9
|
-
Defined in:
|
|
9
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:172
|
|
10
10
|
|
|
11
11
|
A concrete client transport implementation that uses the browser/node `fetch` API.
|
|
12
12
|
|
|
@@ -17,6 +17,7 @@ A concrete client transport implementation that uses the browser/node `fetch` AP
|
|
|
17
17
|
## Extended by
|
|
18
18
|
|
|
19
19
|
- [`HttpClientToolTransport`](HttpClientToolTransport.md)
|
|
20
|
+
- [`MailboxClientTransport`](MailboxClientTransport.md)
|
|
20
21
|
|
|
21
22
|
## Implements
|
|
22
23
|
|
|
@@ -28,7 +29,7 @@ A concrete client transport implementation that uses the browser/node `fetch` AP
|
|
|
28
29
|
|
|
29
30
|
> **new ClientToolTransport**(`apiRoot`): `ClientToolTransport`
|
|
30
31
|
|
|
31
|
-
Defined in:
|
|
32
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:175
|
|
32
33
|
|
|
33
34
|
#### Parameters
|
|
34
35
|
|
|
@@ -50,7 +51,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/transports/client.ts:41](https:
|
|
|
50
51
|
|
|
51
52
|
> **apiRoot**: `string`
|
|
52
53
|
|
|
53
|
-
Defined in:
|
|
54
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:173
|
|
54
55
|
|
|
55
56
|
The root endpoint for the remote service.
|
|
56
57
|
For HTTP, this is a URL. For IPC, it could be a channel name.
|
|
@@ -69,7 +70,7 @@ For HTTP, this is a URL. For IPC, it could be a channel name.
|
|
|
69
70
|
|
|
70
71
|
> `optional` **options**: `any`
|
|
71
72
|
|
|
72
|
-
Defined in:
|
|
73
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:138
|
|
73
74
|
|
|
74
75
|
Additional options for the transport start or fetch, passed by mount.
|
|
75
76
|
|
|
@@ -85,9 +86,9 @@ Additional options for the transport start or fetch, passed by mount.
|
|
|
85
86
|
|
|
86
87
|
### Tools
|
|
87
88
|
|
|
88
|
-
> **Tools**: *typeof* [`ClientTools`](ClientTools.md)
|
|
89
|
+
> **Tools**: *typeof* [`ClientTools`](../@isdk/namespaces/ClientTools/README.md)
|
|
89
90
|
|
|
90
|
-
Defined in:
|
|
91
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:174
|
|
91
92
|
|
|
92
93
|
#### Implementation of
|
|
93
94
|
|
|
@@ -103,7 +104,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/transports/client.ts:38](https:
|
|
|
103
104
|
|
|
104
105
|
> `abstract` **\_fetch**(`name`, `args?`, `act?`, `subName?`, `fetchOptions?`): `any`
|
|
105
106
|
|
|
106
|
-
Defined in:
|
|
107
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:184
|
|
107
108
|
|
|
108
109
|
#### Parameters
|
|
109
110
|
|
|
@@ -137,13 +138,13 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/transports/client.ts:75](https:
|
|
|
137
138
|
|
|
138
139
|
> **\_mount**(`clientTools`, `apiPrefix`, `options?`): `Promise`\<[`Funcs`](../interfaces/Funcs.md)\>
|
|
139
140
|
|
|
140
|
-
Defined in:
|
|
141
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:176
|
|
141
142
|
|
|
142
143
|
#### Parameters
|
|
143
144
|
|
|
144
145
|
##### clientTools
|
|
145
146
|
|
|
146
|
-
*typeof* [`ClientTools`](ClientTools.md)
|
|
147
|
+
*typeof* [`ClientTools`](../@isdk/namespaces/ClientTools/README.md)
|
|
147
148
|
|
|
148
149
|
##### apiPrefix
|
|
149
150
|
|
|
@@ -165,9 +166,9 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/transports/client.ts:49](https:
|
|
|
165
166
|
|
|
166
167
|
### fetch()
|
|
167
168
|
|
|
168
|
-
> **fetch**(`name`, `args?`, `act?`, `subName?`, `fetchOptions?`): `Promise`\<`any`\>
|
|
169
|
+
> **fetch**(`name`, `args?`, `act?`, `subName?`, `fetchOptions?`, `toolTimeout?`): `Promise`\<`any`\>
|
|
169
170
|
|
|
170
|
-
Defined in:
|
|
171
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:183
|
|
171
172
|
|
|
172
173
|
Fetches data from the server.
|
|
173
174
|
|
|
@@ -201,6 +202,12 @@ The name of the sub-resource to fetch.
|
|
|
201
202
|
|
|
202
203
|
`any`
|
|
203
204
|
|
|
205
|
+
##### toolTimeout?
|
|
206
|
+
|
|
207
|
+
`any`
|
|
208
|
+
|
|
209
|
+
Optional timeout from tool metadata.
|
|
210
|
+
|
|
204
211
|
#### Returns
|
|
205
212
|
|
|
206
213
|
`Promise`\<`any`\>
|
|
@@ -215,12 +222,20 @@ A promise that resolves with the fetched data.
|
|
|
215
222
|
|
|
216
223
|
### loadApis()
|
|
217
224
|
|
|
218
|
-
> **loadApis**(): `Promise`\<[`Funcs`](../interfaces/Funcs.md)\>
|
|
225
|
+
> **loadApis**(`options?`): `Promise`\<[`Funcs`](../interfaces/Funcs.md)\>
|
|
219
226
|
|
|
220
|
-
Defined in:
|
|
227
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:182
|
|
221
228
|
|
|
222
229
|
Connects to the server's discovery endpoint to get the list of available tools.
|
|
223
230
|
|
|
231
|
+
#### Parameters
|
|
232
|
+
|
|
233
|
+
##### options?
|
|
234
|
+
|
|
235
|
+
`any`
|
|
236
|
+
|
|
237
|
+
Additional options for the discovery call.
|
|
238
|
+
|
|
224
239
|
#### Returns
|
|
225
240
|
|
|
226
241
|
`Promise`\<[`Funcs`](../interfaces/Funcs.md)\>
|
|
@@ -237,7 +252,7 @@ A promise that resolves to a map of tool function metadata.
|
|
|
237
252
|
|
|
238
253
|
> **mount**(`Tools`, `apiRoot?`, `options?`): `any`
|
|
239
254
|
|
|
240
|
-
Defined in:
|
|
255
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:140
|
|
241
256
|
|
|
242
257
|
#### Parameters
|
|
243
258
|
|
|
@@ -271,7 +286,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/transports/base.ts:42](https://
|
|
|
271
286
|
|
|
272
287
|
> **setApiRoot**(`apiRoot`): `void`
|
|
273
288
|
|
|
274
|
-
Defined in:
|
|
289
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:139
|
|
275
290
|
|
|
276
291
|
#### Parameters
|
|
277
292
|
|
|
@@ -293,7 +308,7 @@ Defined in: [@isdk/ai-tools/packages/ai-tool/src/transports/base.ts:38](https://
|
|
|
293
308
|
|
|
294
309
|
> `abstract` **toObject**(`res`, `args?`): `any`
|
|
295
310
|
|
|
296
|
-
Defined in:
|
|
311
|
+
Defined in: @isdk/ai-tools/packages/tool-rpc/dist/index-359784IS.d.ts:185
|
|
297
312
|
|
|
298
313
|
#### Parameters
|
|
299
314
|
|