@isdk/ai-tool 0.5.8 → 0.7.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/README.cn.md +103 -237
- package/README.md +101 -186
- package/dist/chunk-LNTIQQNN.mjs +1 -0
- package/dist/chunk-VIG2GB47.mjs +1 -1
- package/dist/funcs.d.mts +1 -1
- package/dist/funcs.d.ts +1 -1
- package/dist/funcs.js +1 -1
- package/dist/funcs.mjs +1 -1
- package/dist/index-BCco-g_I.d.mts +1781 -0
- package/dist/index-BCco-g_I.d.ts +1781 -0
- package/dist/index.d.mts +1083 -650
- package/dist/index.d.ts +1083 -650
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/test/util.js +1 -1
- package/docs/api/README.md +165 -0
- package/docs/{_media → api/_media}/CONTRIBUTING.md +3 -3
- package/docs/api/_media/pubsub.md +326 -0
- package/docs/api/_media/server_client_tools.md +88 -0
- package/docs/api/_media/toolFunc.md +183 -0
- package/docs/api/_media/transport.md +137 -0
- package/docs/{classes → api/classes}/AbortError.md +139 -54
- package/docs/api/classes/AlreadyExistsError.md +431 -0
- package/docs/api/classes/BaseError.md +440 -0
- package/docs/{classes → api/classes}/BinarySemaphore.md +25 -25
- package/docs/{classes → api/classes}/CancelableAbility.md +25 -25
- package/docs/api/classes/ClientToolTransport.md +310 -0
- package/docs/{classes → api/classes}/ClientTools.md +642 -180
- package/docs/{classes → api/classes}/CommonError.md +139 -54
- package/docs/api/classes/ConfigFile.md +218 -0
- package/docs/{classes → api/classes}/EnvPromptTemplate.md +308 -65
- package/docs/{classes → api/classes}/EventClient.md +725 -232
- package/docs/{classes → api/classes}/EventEmitter.md +12 -12
- package/docs/{classes → api/classes}/EventServer.md +658 -205
- package/docs/{classes → api/classes}/EventToolFunc.md +561 -109
- package/docs/{classes → api/classes}/FStringPromptTemplate.md +309 -66
- package/docs/{classes → api/classes}/FewShotPromptTemplate.md +290 -63
- package/docs/{classes → api/classes}/GolangPromptTemplate.md +308 -65
- package/docs/api/classes/HttpClientToolTransport.md +324 -0
- package/docs/api/classes/HttpServerToolTransport.md +324 -0
- package/docs/{classes → api/classes}/IntSet.md +12 -12
- package/docs/{classes → api/classes}/LRUCache.md +26 -26
- package/docs/api/classes/NotFoundError.md +431 -0
- package/docs/api/classes/NotImplementationError.md +431 -0
- package/docs/{classes → api/classes}/PromptExampleSelector.md +9 -9
- package/docs/{classes → api/classes}/PromptTemplate.md +303 -63
- package/docs/api/classes/ReadableStreamError.md +451 -0
- package/docs/api/classes/ResClientTools.md +2878 -0
- package/docs/api/classes/ResServerTools.md +2856 -0
- package/docs/api/classes/SSEChannel.md +272 -0
- package/docs/{classes → api/classes}/Semaphore.md +26 -26
- package/docs/api/classes/ServerToolTransport.md +323 -0
- package/docs/{classes → api/classes}/ServerTools.md +579 -120
- package/docs/{classes → api/classes}/SignalGate.md +9 -9
- package/docs/api/classes/SseClientPubSubTransport.md +92 -0
- package/docs/api/classes/SseServerPubSubTransport.md +234 -0
- package/docs/{classes → api/classes}/TaskAbortController.md +9 -9
- package/docs/api/classes/ToolFunc.md +2665 -0
- package/docs/api/classes/ToolTransport.md +143 -0
- package/docs/api/classes/YamlTypeBaseObject.md +31 -0
- package/docs/api/enumerations/AsyncFeatureBits.md +33 -0
- package/docs/api/enumerations/AsyncFeatures.md +33 -0
- package/docs/api/enumerations/ErrorCode.md +177 -0
- package/docs/api/enumerations/HashAlgorithm.md +97 -0
- package/docs/{functions → api/functions}/AIArgProcessor.md +1 -1
- package/docs/{functions → api/functions}/AIStream.md +1 -1
- package/docs/{functions → api/functions}/ChoiceArgProcessor.md +1 -1
- package/docs/api/functions/DefaultDateFormat.md +21 -0
- package/docs/{functions → api/functions}/ObjectArgsToArgsInfo.md +1 -1
- package/docs/{functions → api/functions}/RateLimit.md +1 -1
- package/docs/{functions → api/functions}/TemplateArgProcessor.md +1 -1
- package/docs/api/functions/addDate.md +71 -0
- package/docs/{functions → api/functions}/assignDirs.md +1 -1
- package/docs/{functions → api/functions}/backendEventable.md +1 -1
- package/docs/{functions → api/functions}/beforeShutdown.md +1 -1
- package/docs/api/functions/calcPerplexity.md +60 -0
- package/docs/api/functions/calcPerplexitySimple.md +42 -0
- package/docs/api/functions/canonicalize.md +33 -0
- package/docs/{functions → api/functions}/completeSentences.md +1 -1
- package/docs/{functions → api/functions}/concatText.md +1 -1
- package/docs/{functions → api/functions}/countLLMTokens.md +1 -1
- package/docs/{functions → api/functions}/countRegexMatches.md +1 -1
- package/docs/{functions → api/functions}/createAbilityInjector.md +4 -4
- package/docs/{functions → api/functions}/createCallbacksTransformer.md +1 -1
- package/docs/{functions → api/functions}/createEmptyReadableStream.md +1 -1
- package/docs/{functions → api/functions}/createEndWithRepetitionDetector.md +1 -1
- package/docs/{functions → api/functions}/createError.md +1 -1
- package/docs/{functions → api/functions}/createEventStreamTransformer.md +1 -1
- package/docs/{functions → api/functions}/createHfValueFunc.md +1 -1
- package/docs/{functions → api/functions}/createLRUCache.md +1 -1
- package/docs/{functions → api/functions}/createYamlObjectTag.md +1 -1
- package/docs/{functions → api/functions}/dateToText.md +1 -1
- package/docs/{functions → api/functions}/decodeCharset.md +1 -1
- package/docs/api/functions/defaultsWithConcat.md +74 -0
- package/docs/{functions → api/functions}/detectCharset.md +1 -1
- package/docs/{functions → api/functions}/encodeLLMTokens.md +1 -1
- package/docs/{functions → api/functions}/ensureQuoted.md +1 -1
- package/docs/{functions → api/functions}/eventable.md +1 -1
- package/docs/api/functions/expandConfig.md +25 -0
- package/docs/{functions → api/functions}/expandEnv.md +4 -4
- package/docs/{functions → api/functions}/expandObjEnv.md +4 -4
- package/docs/{functions → api/functions}/expandPath.md +1 -1
- package/docs/api/functions/expandPathInObject.md +29 -0
- package/docs/api/functions/expandPaths.md +25 -0
- package/docs/{functions → api/functions}/extNameLevel.md +1 -1
- package/docs/{functions → api/functions}/fileIsExists.md +1 -1
- package/docs/{functions → api/functions}/filterValidFnScope.md +1 -1
- package/docs/{functions → api/functions}/findIndexNonEmptyFrom.md +1 -1
- package/docs/{functions → api/functions}/findPort.md +1 -1
- package/docs/{functions → api/functions}/formatISO.md +1 -1
- package/docs/{functions → api/functions}/formatTextWithSpace.md +1 -1
- package/docs/api/functions/funcGetMeta.md +27 -0
- package/docs/api/functions/funcWithMeta.md +41 -0
- package/docs/api/functions/genUrlParamsStr.md +27 -0
- package/docs/{functions → api/functions}/getAllEnumKeys.md +1 -1
- package/docs/{functions → api/functions}/getConfigFileNames.md +1 -1
- package/docs/{functions → api/functions}/getConfigs.md +1 -1
- package/docs/{functions → api/functions}/getEnvVairables.md +1 -1
- package/docs/{functions → api/functions}/getFileMetaInfo.md +1 -1
- package/docs/{functions → api/functions}/getHashAlgoBySize.md +1 -1
- package/docs/{functions → api/functions}/getKeysPath.md +1 -1
- package/docs/{functions → api/functions}/getLLMTokenizer.md +1 -1
- package/docs/{functions → api/functions}/getMultiLevelExtname.md +4 -4
- package/docs/{functions → api/functions}/getPackageDir.md +1 -1
- package/docs/{functions → api/functions}/getRealFilepath.md +1 -1
- package/docs/{functions → api/functions}/getResponseErrorReadableStream.md +1 -1
- package/docs/{functions → api/functions}/getXDGConfigs.md +1 -1
- package/docs/{functions → api/functions}/hasDirectoryIn.md +1 -1
- package/docs/{functions → api/functions}/hash.md +1 -1
- package/docs/{functions → api/functions}/hashFile.md +1 -1
- package/docs/api/functions/hashObject.md +25 -0
- package/docs/{functions → api/functions}/hashStream.md +1 -1
- package/docs/api/functions/initShutdown.md +15 -0
- package/docs/{functions → api/functions}/isLangUsingSpaces.md +1 -1
- package/docs/{functions → api/functions}/isListItemString.md +1 -1
- package/docs/{functions → api/functions}/isModelNameMatched.md +1 -1
- package/docs/{functions → api/functions}/isPunctuationChar.md +1 -1
- package/docs/{functions → api/functions}/isQuoted.md +1 -1
- package/docs/{functions → api/functions}/isRegExp.md +1 -1
- package/docs/{functions → api/functions}/isSameString.md +1 -1
- package/docs/{functions → api/functions}/isSectionString.md +1 -1
- package/docs/{functions → api/functions}/isSentenceEnding.md +1 -1
- package/docs/{functions → api/functions}/isSepLineString.md +1 -1
- package/docs/{functions → api/functions}/isStrWrapped.md +1 -1
- package/docs/{functions → api/functions}/isSubdirectory.md +2 -2
- package/docs/{functions → api/functions}/isTitleString.md +1 -1
- package/docs/{functions → api/functions}/isValidFilename.md +1 -1
- package/docs/{functions → api/functions}/isValidFilepath.md +1 -1
- package/docs/{functions → api/functions}/isWebStream.md +1 -1
- package/docs/api/functions/joinSplitWords.md +46 -0
- package/docs/{functions → api/functions}/jsonFilterToWhere.md +1 -1
- package/docs/{functions → api/functions}/jsonToMarkdownStr.md +9 -1
- package/docs/{functions → api/functions}/loadAIConfig.md +1 -1
- package/docs/{functions → api/functions}/loadConfig.md +1 -1
- package/docs/{functions → api/functions}/loadConfigFile.md +1 -1
- package/docs/{functions → api/functions}/loadFileFromPaths.md +1 -1
- package/docs/{functions → api/functions}/loadTextFromPaths.md +1 -1
- package/docs/{functions → api/functions}/lrucache.md +1 -1
- package/docs/{functions → api/functions}/makeToolFuncCancelable.md +1 -1
- package/docs/{functions → api/functions}/matchUrlProtocol.md +1 -1
- package/docs/{functions → api/functions}/memoize.md +1 -1
- package/docs/api/functions/mergeArray.md +57 -0
- package/docs/{functions → api/functions}/messagesToText.md +1 -1
- package/docs/api/functions/normalizePath.md +21 -0
- package/docs/{functions → api/functions}/paramsSizeToScaleStr.md +1 -1
- package/docs/{functions → api/functions}/parseCommand.md +1 -1
- package/docs/{functions → api/functions}/parseDateFormat.md +1 -1
- package/docs/{functions → api/functions}/parseISO.md +1 -1
- package/docs/{functions → api/functions}/parseJsJson.md +1 -1
- package/docs/{functions → api/functions}/parseJsJsonSimpleSync.md +1 -1
- package/docs/{functions → api/functions}/parseObjectArgInfo.md +1 -1
- package/docs/{functions → api/functions}/parseObjectArgumentInfos.md +1 -1
- package/docs/{functions → api/functions}/parseObjectArguments.md +1 -1
- package/docs/{functions → api/functions}/parseObjectArgumentsAsArgInfos.md +1 -1
- package/docs/api/functions/parseYaml.md +45 -0
- package/docs/api/functions/pruneSubdirectories.md +35 -0
- package/docs/api/functions/pruneSubdirectoriesInPlace.md +38 -0
- package/docs/{functions → api/functions}/quoteStr.md +1 -1
- package/docs/{functions → api/functions}/readFilenamesRecursiveSync.md +7 -1
- package/docs/{functions → api/functions}/readTextFileChunks.md +1 -1
- package/docs/{functions → api/functions}/readTextFileChunksEx.md +1 -1
- package/docs/{functions → api/functions}/readableFromAsyncIterable.md +1 -1
- package/docs/{functions → api/functions}/registerCoreTools.md +1 -1
- package/docs/api/functions/registerYamlTag.md +37 -0
- package/docs/{functions → api/functions}/removeMarkdownBold.md +1 -1
- package/docs/{functions → api/functions}/removeMarkdownBoldAndItalic.md +1 -1
- package/docs/{functions → api/functions}/removeMarkdownItalic.md +1 -1
- package/docs/{functions → api/functions}/replaceWithPlaceholder.md +1 -1
- package/docs/{functions → api/functions}/restoreFromPlacehoders.md +1 -1
- package/docs/{functions → api/functions}/sanitizeFilename.md +4 -4
- package/docs/{functions → api/functions}/sanitizeFilepath.md +4 -4
- package/docs/{functions → api/functions}/saveConfigFile.md +1 -1
- package/docs/{functions → api/functions}/scaleStrToParamsSize.md +1 -1
- package/docs/{functions → api/functions}/shutdown.md +1 -1
- package/docs/{functions → api/functions}/simplifyObjectArguments.md +1 -1
- package/docs/api/functions/sleep.md +36 -0
- package/docs/{functions → api/functions}/sortedValues.md +1 -1
- package/docs/{functions → api/functions}/splitChunks.md +1 -1
- package/docs/{functions → api/functions}/splitParagraph.md +1 -1
- package/docs/{functions → api/functions}/splitSentence.md +1 -1
- package/docs/api/functions/splitWords.md +42 -0
- package/docs/api/functions/stringifyYaml.md +45 -0
- package/docs/{functions → api/functions}/stripConsoleColor.md +1 -1
- package/docs/{functions → api/functions}/textToDate.md +1 -1
- package/docs/{functions → api/functions}/throwError.md +3 -3
- package/docs/{functions → api/functions}/toDate.md +1 -1
- package/docs/{functions → api/functions}/toDateTime.md +1 -1
- package/docs/{functions → api/functions}/toRegExp.md +1 -1
- package/docs/{functions → api/functions}/trimStartOfStreamHelper.md +1 -1
- package/docs/{functions → api/functions}/truncTo.md +1 -1
- package/docs/{functions → api/functions}/truncateByToken.md +1 -1
- package/docs/{functions → api/functions}/truncateToTokenLimit.md +1 -1
- package/docs/{functions → api/functions}/truncateToTokenLimitEx.md +1 -1
- package/docs/{functions → api/functions}/uuid.md +1 -1
- package/docs/{functions → api/functions}/uuidParse.md +1 -1
- package/docs/{functions → api/functions}/uuidStringify.md +1 -1
- package/docs/{functions → api/functions}/uuidValidate.md +1 -1
- package/docs/{functions → api/functions}/uuidVersion.md +1 -1
- package/docs/{functions → api/functions}/uuidv1.md +9 -5
- package/docs/{functions → api/functions}/uuidv4.md +9 -5
- package/docs/{functions → api/functions}/uuidv5.md +9 -5
- package/docs/api/functions/wait.md +45 -0
- package/docs/{functions → api/functions}/wrapEventEmitter.md +1 -1
- package/docs/{functions → api/functions}/xxhash.md +1 -1
- package/docs/{functions → api/functions}/xxhash32.md +1 -1
- package/docs/{functions → api/functions}/xxhash64.md +1 -1
- package/docs/{functions → api/functions}/xxhashAsStr.md +1 -1
- package/docs/api/functions/yieldExec.md +27 -0
- package/docs/{globals.md → api/globals.md} +44 -24
- package/docs/api/interfaces/AIChatAssistantMessageParam.md +129 -0
- package/docs/api/interfaces/AIChatContentPartImage.md +29 -0
- package/docs/api/interfaces/AIChatContentPartText.md +25 -0
- package/docs/api/interfaces/AIChatMessageParamBase.md +68 -0
- package/docs/api/interfaces/AIChatMessageToolCall.md +41 -0
- package/docs/{interfaces → api/interfaces}/AIChatSystemMessageParam.md +9 -9
- package/docs/api/interfaces/AIChatToolChoiceFuncObject.md +37 -0
- package/docs/api/interfaces/AIChatToolChoiceObject.md +25 -0
- package/docs/api/interfaces/AIChatToolFunc.md +41 -0
- package/docs/api/interfaces/AIChatToolFuncParam.md +37 -0
- package/docs/api/interfaces/AIChatToolMessageParam.md +113 -0
- package/docs/api/interfaces/AIChatToolParam.md +25 -0
- package/docs/api/interfaces/AIChatToolTypeObject.md +17 -0
- package/docs/api/interfaces/AIChatUserMessageParam.md +137 -0
- package/docs/api/interfaces/AIChoiceConfig.md +65 -0
- package/docs/api/interfaces/AIResult.md +65 -0
- package/docs/{interfaces → api/interfaces}/AIStreamParser.md +2 -2
- package/docs/api/interfaces/AIStreamParserOptions.md +21 -0
- package/docs/api/interfaces/BaseFunc.md +299 -0
- package/docs/api/interfaces/BaseFuncItem.md +221 -0
- package/docs/api/interfaces/BinarySemaphoreAcquireOptions.md +25 -0
- package/docs/api/interfaces/BinarySemaphoreOptions.md +57 -0
- package/docs/api/interfaces/BinarySemaphoreReleaseOptions.md +25 -0
- package/docs/api/interfaces/BinarySemaphoreReleaserFunc.md +37 -0
- package/docs/api/interfaces/CancelableAbilityOptions.md +113 -0
- package/docs/api/interfaces/ClientFuncItem.md +326 -0
- package/docs/api/interfaces/EventClientFuncParams.md +51 -0
- package/docs/api/interfaces/EventServerFuncParams.md +73 -0
- package/docs/api/interfaces/FewShotPromptTemplateOptions.md +159 -0
- package/docs/api/interfaces/FuncItem.md +281 -0
- package/docs/api/interfaces/FuncParam.md +51 -0
- package/docs/api/interfaces/FuncParams.md +28 -0
- package/docs/api/interfaces/Funcs.md +15 -0
- package/docs/api/interfaces/HashAlgoParams.md +33 -0
- package/docs/api/interfaces/IClientToolTransport.md +155 -0
- package/docs/api/interfaces/IFileMetaInfo.md +65 -0
- package/docs/api/interfaces/IPubSubClientTransport.md +70 -0
- package/docs/api/interfaces/IPubSubServerTransport.md +241 -0
- package/docs/{interfaces → api/interfaces}/IReadTextFileChunksOptions.md +12 -12
- package/docs/api/interfaces/IServerToolTransport.md +159 -0
- package/docs/api/interfaces/IToolTransport.md +73 -0
- package/docs/api/interfaces/ITruncateToTokenLimitOptions.md +99 -0
- package/docs/api/interfaces/JsonFilter.md +13 -0
- package/docs/api/interfaces/ParseObjectArgumentOptions.md +89 -0
- package/docs/api/interfaces/ProbabilityItem.md +41 -0
- package/docs/api/interfaces/PromptExampleSelectorOptions.md +34 -0
- package/docs/api/interfaces/PromptTemplateOptions.md +73 -0
- package/docs/api/interfaces/PubSubClient.md +27 -0
- package/docs/api/interfaces/PubSubClientStream.md +196 -0
- package/docs/api/interfaces/PubSubServerSession.md +103 -0
- package/docs/api/interfaces/RemoteFuncItem.md +316 -0
- package/docs/api/interfaces/ReplacePlacehoderOptions.md +41 -0
- package/docs/api/interfaces/ResClientFuncParams.md +37 -0
- package/docs/api/interfaces/ResServerFuncParams.md +73 -0
- package/docs/api/interfaces/SanitizeFilenameOptions.md +25 -0
- package/docs/api/interfaces/SectionStringOptions.md +25 -0
- package/docs/api/interfaces/SemaphoreOptions.md +89 -0
- package/docs/api/interfaces/SemaphoreTaskItem.md +73 -0
- package/docs/api/interfaces/ServerFuncItem.md +339 -0
- package/docs/api/interfaces/ServerFuncParams.md +41 -0
- package/docs/api/interfaces/SplitSentenceOptions.md +41 -0
- package/docs/{interfaces → api/interfaces}/StreamCallbacksAndOptions.md +5 -5
- package/docs/{interfaces → api/interfaces}/TaskAbortControllers.md +1 -1
- package/docs/{interfaces → api/interfaces}/TaskPromise.md +6 -6
- package/docs/api/interfaces/ToolFuncPackage.md +57 -0
- package/docs/{namespaces → api/namespaces}/EventStates/variables/ABORT.md +1 -1
- package/docs/{namespaces → api/namespaces}/EventStates/variables/CONTINUE.md +1 -1
- package/docs/{namespaces → api/namespaces}/EventStates/variables/DONE.md +1 -1
- package/docs/{namespaces → api/namespaces}/EventStates/variables/STOPPED.md +1 -1
- package/docs/{namespaces → api/namespaces}/uuidv5/variables/DNS.md +1 -1
- package/docs/{namespaces → api/namespaces}/uuidv5/variables/URL.md +1 -1
- package/docs/{type-aliases → api/type-aliases}/AIChatContentPart.md +1 -1
- package/docs/{type-aliases → api/type-aliases}/AIChatMessageParam.md +1 -1
- package/docs/{type-aliases → api/type-aliases}/AIChatRole.md +1 -1
- package/docs/{type-aliases → api/type-aliases}/AIChatToolChoiceParam.md +1 -1
- package/docs/{type-aliases → api/type-aliases}/AIMessageType.md +1 -1
- package/docs/api/type-aliases/AIModelNameRule.md +14 -0
- package/docs/api/type-aliases/AIModelNameRuleFn.md +28 -0
- package/docs/api/type-aliases/AIModelNameRules.md +13 -0
- package/docs/{type-aliases → api/type-aliases}/AITextGenerationFinishReason.md +1 -1
- package/docs/api/type-aliases/ActionName.md +13 -0
- package/docs/api/type-aliases/ArrayMergeWay.md +11 -0
- package/docs/api/type-aliases/AsyncTaskId.md +11 -0
- package/docs/{type-aliases → api/type-aliases}/BeforeShutdownListener.md +1 -1
- package/docs/{type-aliases → api/type-aliases}/EventErrorListenerFn.md +1 -1
- package/docs/{type-aliases → api/type-aliases}/EventListenerFn.md +1 -1
- package/docs/api/type-aliases/FuncParamType.md +13 -0
- package/docs/{type-aliases → api/type-aliases}/PromptExamples.md +1 -1
- package/docs/api/type-aliases/PubSubClientId.md +14 -0
- package/docs/api/type-aliases/PubSubCtx.md +37 -0
- package/docs/api/type-aliases/RpcMethodHandler.md +34 -0
- package/docs/{type-aliases → api/type-aliases}/SemaphoreIsReadyFuncType.md +1 -1
- package/docs/api/type-aliases/TFunc.md +33 -0
- package/docs/{variables → api/variables}/AIChatRoles.md +1 -1
- package/docs/{variables → api/variables}/AIMessageTypes.md +1 -1
- package/docs/{variables → api/variables}/AITextGenerationFinishReasons.md +1 -1
- package/docs/{variables → api/variables}/AbortErrorCode.md +1 -1
- package/docs/api/variables/ActionNames.md +13 -0
- package/docs/{variables → api/variables}/AlreadyExistsErrorCode.md +1 -1
- package/docs/api/variables/ArrayMergeWay.md +25 -0
- package/docs/api/variables/ArrayMergeWaySymbol.md +11 -0
- package/docs/api/variables/ClientToolFuncSchema.md +83 -0
- package/docs/{variables → api/variables}/DEFAULT_CONFIG_NAME.md +1 -1
- package/docs/{variables → api/variables}/DefaultAsyncSemaphoreCapacity.md +1 -1
- package/docs/api/variables/EventBusName.md +11 -0
- package/docs/api/variables/EventName.md +11 -0
- package/docs/{variables → api/variables}/FilenameReservedRegex.md +1 -1
- package/docs/api/variables/FuncMetaSymbol.md +15 -0
- package/docs/{variables → api/variables}/InternalErrorCode.md +1 -1
- package/docs/{variables → api/variables}/LLM_TOKENIZER_NAMES.md +1 -1
- package/docs/{variables → api/variables}/LLM_TOKENIZER_NAMES_MAP.md +1 -1
- package/docs/{variables → api/variables}/NotFoundErrorCode.md +1 -1
- package/docs/{variables → api/variables}/NotImplementedErrorCode.md +1 -1
- package/docs/api/variables/PASSING_SCORE.md +13 -0
- package/docs/api/variables/RStreamErrCode.md +11 -0
- package/docs/api/variables/RemoteToolFuncSchema.md +84 -0
- package/docs/api/variables/ResponseRStreamErrCode.md +11 -0
- package/docs/{variables → api/variables}/SHUTDOWN_SIGNALS.md +1 -1
- package/docs/{variables → api/variables}/SSEChannelAlreadyClosedErrCode.md +1 -1
- package/docs/api/variables/SecondaryCache.md +11 -0
- package/docs/api/variables/ServerToolFuncSchema.md +83 -0
- package/docs/api/variables/StrangeHumanName.md +11 -0
- package/docs/api/variables/ToolAsyncCancelableBit.md +11 -0
- package/docs/api/variables/ToolAsyncMultiTaskBit.md +11 -0
- package/docs/api/variables/ToolAsyncPriorityBit.md +11 -0
- package/docs/{variables → api/variables}/ToolFuncSchema.md +14 -1
- package/docs/{variables → api/variables}/WindowsReservedNameRegex.md +1 -1
- package/docs/api/variables/base32768.md +11 -0
- package/docs/api/variables/defaultTemplateFormat.md +11 -0
- package/docs/api/variables/event.md +11 -0
- package/docs/api/variables/eventClient.md +11 -0
- package/docs/api/variables/eventServer.md +11 -0
- package/docs/api/variables/lrucache.md +11 -0
- package/docs/{variables → api/variables}/mimeType.md +1 -1
- package/docs/{variables → api/variables}/uuidNIL.md +1 -1
- package/docs/pubsub.md +326 -0
- package/docs/server_client_tools.md +88 -0
- package/docs/toolFunc.md +183 -0
- package/docs/transport.md +137 -0
- package/package.json +38 -38
- package/dist/chunk-YVFGQB4L.mjs +0 -1
- package/dist/index-BkwhCK1q.d.mts +0 -899
- package/dist/index-BkwhCK1q.d.ts +0 -899
- package/docs/README.md +0 -250
- package/docs/classes/AlreadyExistsError.md +0 -346
- package/docs/classes/BaseError.md +0 -359
- package/docs/classes/ConfigFile.md +0 -353
- package/docs/classes/HFEnvironment.md +0 -184
- package/docs/classes/HFInterpreter.md +0 -77
- package/docs/classes/HFTemplate.md +0 -67
- package/docs/classes/HfPromptTemplate.md +0 -1158
- package/docs/classes/NotFoundError.md +0 -346
- package/docs/classes/NotImplementationError.md +0 -346
- package/docs/classes/ReadableStreamError.md +0 -366
- package/docs/classes/ResClientTools.md +0 -2451
- package/docs/classes/ResServerTools.md +0 -2427
- package/docs/classes/SSEChannel.md +0 -270
- package/docs/classes/ToolFunc.md +0 -2201
- package/docs/classes/YamlTypeBaseObject.md +0 -31
- package/docs/enumerations/AsyncFeatureBits.md +0 -33
- package/docs/enumerations/AsyncFeatures.md +0 -33
- package/docs/enumerations/ErrorCode.md +0 -177
- package/docs/enumerations/HashAlgorithm.md +0 -97
- package/docs/functions/canonicalize.md +0 -21
- package/docs/functions/expandConfig.md +0 -25
- package/docs/functions/filenameReservedRegex.md +0 -20
- package/docs/functions/hfParse.md +0 -24
- package/docs/functions/hfTokenize.md +0 -27
- package/docs/functions/initShutdown.md +0 -15
- package/docs/functions/interpolateEnv.md +0 -29
- package/docs/functions/interpolateFString.md +0 -29
- package/docs/functions/interpolateGolangTemplate.md +0 -35
- package/docs/functions/parseFString.md +0 -26
- package/docs/functions/parseYaml.md +0 -25
- package/docs/functions/reControlCharsRegex.md +0 -19
- package/docs/functions/registerYamlTag.md +0 -21
- package/docs/functions/stringifyYaml.md +0 -25
- package/docs/functions/wait.md +0 -21
- package/docs/interfaces/AIChatAssistantMessageParam.md +0 -129
- package/docs/interfaces/AIChatContentPartImage.md +0 -29
- package/docs/interfaces/AIChatContentPartText.md +0 -25
- package/docs/interfaces/AIChatMessageParamBase.md +0 -68
- package/docs/interfaces/AIChatMessageToolCall.md +0 -41
- package/docs/interfaces/AIChatToolChoiceFuncObject.md +0 -37
- package/docs/interfaces/AIChatToolChoiceObject.md +0 -25
- package/docs/interfaces/AIChatToolFunc.md +0 -41
- package/docs/interfaces/AIChatToolFuncParam.md +0 -37
- package/docs/interfaces/AIChatToolMessageParam.md +0 -113
- package/docs/interfaces/AIChatToolParam.md +0 -25
- package/docs/interfaces/AIChatToolTypeObject.md +0 -17
- package/docs/interfaces/AIChatUserMessageParam.md +0 -137
- package/docs/interfaces/AIChoiceConfig.md +0 -65
- package/docs/interfaces/AIResult.md +0 -65
- package/docs/interfaces/AIStreamParserOptions.md +0 -21
- package/docs/interfaces/BaseFunc.md +0 -157
- package/docs/interfaces/BaseFuncItem.md +0 -101
- package/docs/interfaces/BinarySemaphoreAcquireOptions.md +0 -25
- package/docs/interfaces/BinarySemaphoreOptions.md +0 -57
- package/docs/interfaces/BinarySemaphoreReleaseOptions.md +0 -25
- package/docs/interfaces/BinarySemaphoreReleaserFunc.md +0 -37
- package/docs/interfaces/CancelableAbilityOptions.md +0 -113
- package/docs/interfaces/ClientFuncItem.md +0 -175
- package/docs/interfaces/DotenvExpandOptions.md +0 -43
- package/docs/interfaces/DotenvExpandOutput.md +0 -25
- package/docs/interfaces/DotenvParseInput.md +0 -13
- package/docs/interfaces/DotenvParseOutput.md +0 -13
- package/docs/interfaces/DotenvPopulateInput.md +0 -13
- package/docs/interfaces/EventClientFuncParams.md +0 -51
- package/docs/interfaces/EventServerFuncParams.md +0 -67
- package/docs/interfaces/FewShotPromptTemplateOptions.md +0 -147
- package/docs/interfaces/FuncItem.md +0 -143
- package/docs/interfaces/FuncParam.md +0 -61
- package/docs/interfaces/FuncParams.md +0 -13
- package/docs/interfaces/Funcs.md +0 -13
- package/docs/interfaces/HashAlgoParams.md +0 -33
- package/docs/interfaces/IFileMetaInfo.md +0 -65
- package/docs/interfaces/ITruncateToTokenLimitOptions.md +0 -99
- package/docs/interfaces/JsonFilter.md +0 -13
- package/docs/interfaces/ParseObjectArgumentOptions.md +0 -89
- package/docs/interfaces/PromptExampleSelectorOptions.md +0 -34
- package/docs/interfaces/PromptTemplateOptions.md +0 -65
- package/docs/interfaces/RemoteFuncItem.md +0 -164
- package/docs/interfaces/ReplacePlacehoderOptions.md +0 -41
- package/docs/interfaces/ResClientFuncParams.md +0 -37
- package/docs/interfaces/ResServerFuncParams.md +0 -69
- package/docs/interfaces/SanitizeFilenameOptions.md +0 -25
- package/docs/interfaces/SectionStringOptions.md +0 -25
- package/docs/interfaces/SemaphoreOptions.md +0 -89
- package/docs/interfaces/SemaphoreTaskItem.md +0 -73
- package/docs/interfaces/ServerFuncItem.md +0 -183
- package/docs/interfaces/ServerFuncParams.md +0 -35
- package/docs/interfaces/SplitSentenceOptions.md +0 -41
- package/docs/interfaces/ToolFuncPackage.md +0 -47
- package/docs/type-aliases/AIModelNameRule.md +0 -11
- package/docs/type-aliases/AIModelNameRuleFn.md +0 -21
- package/docs/type-aliases/AIModelNameRules.md +0 -11
- package/docs/type-aliases/ActionName.md +0 -11
- package/docs/type-aliases/AsyncTaskId.md +0 -11
- package/docs/type-aliases/FStringPromptTemplateNode.md +0 -14
- package/docs/type-aliases/FuncParamType.md +0 -11
- package/docs/type-aliases/PromptTemplateType.md +0 -11
- package/docs/type-aliases/PromptType.md +0 -11
- package/docs/type-aliases/TFunc.md +0 -25
- package/docs/variables/ActionNames.md +0 -11
- package/docs/variables/ClientToolFuncSchema.md +0 -101
- package/docs/variables/EventBusName.md +0 -11
- package/docs/variables/EventName.md +0 -11
- package/docs/variables/HFBuiltins.md +0 -122
- package/docs/variables/PASSING_SCORE.md +0 -11
- package/docs/variables/PromptTemplateTypes.md +0 -11
- package/docs/variables/PromptTypes.md +0 -14
- package/docs/variables/RStreamErrCode.md +0 -11
- package/docs/variables/RemoteToolFuncSchema.md +0 -101
- package/docs/variables/ResponseRStreamErrCode.md +0 -11
- package/docs/variables/SecondaryCache.md +0 -11
- package/docs/variables/ServerToolFuncSchema.md +0 -101
- package/docs/variables/ToolAsyncCancelableBit.md +0 -11
- package/docs/variables/ToolAsyncMultiTaskBit.md +0 -11
- package/docs/variables/ToolAsyncPriorityBit.md +0 -11
- package/docs/variables/base32768.md +0 -11
- package/docs/variables/defaultTemplateFormat.md +0 -11
- package/docs/variables/event.md +0 -11
- package/docs/variables/eventClient.md +0 -11
- package/docs/variables/eventServer.md +0 -11
- package/docs/variables/lrucache.md +0 -11
- /package/docs/{_media → api/_media}/LICENSE-MIT +0 -0
- /package/docs/{namespaces → api/namespaces}/EventStates/README.md +0 -0
- /package/docs/{namespaces → api/namespaces}/uuidv5/README.md +0 -0
package/docs/classes/ToolFunc.md
DELETED
|
@@ -1,2201 +0,0 @@
|
|
|
1
|
-
[**@isdk/ai-tool**](../README.md)
|
|
2
|
-
|
|
3
|
-
***
|
|
4
|
-
|
|
5
|
-
[@isdk/ai-tool](../globals.md) / ToolFunc
|
|
6
|
-
|
|
7
|
-
# Class: ToolFunc
|
|
8
|
-
|
|
9
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:52](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L52)
|
|
10
|
-
|
|
11
|
-
## Extends
|
|
12
|
-
|
|
13
|
-
- [`BaseFunc`](../interfaces/BaseFunc.md).`AdvancePropertyManager`
|
|
14
|
-
|
|
15
|
-
## Extended by
|
|
16
|
-
|
|
17
|
-
- [`ClientTools`](ClientTools.md)
|
|
18
|
-
- [`ServerTools`](ServerTools.md)
|
|
19
|
-
- [`EventToolFunc`](EventToolFunc.md)
|
|
20
|
-
|
|
21
|
-
## Indexable
|
|
22
|
-
|
|
23
|
-
\[`name`: `string`\]: `any`
|
|
24
|
-
|
|
25
|
-
## Constructors
|
|
26
|
-
|
|
27
|
-
### new ToolFunc()
|
|
28
|
-
|
|
29
|
-
> **new ToolFunc**(`name`, `options`): [`ToolFunc`](ToolFunc.md)
|
|
30
|
-
|
|
31
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:225](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L225)
|
|
32
|
-
|
|
33
|
-
#### Parameters
|
|
34
|
-
|
|
35
|
-
##### name
|
|
36
|
-
|
|
37
|
-
`string` | `Function` | [`FuncItem`](../interfaces/FuncItem.md)
|
|
38
|
-
|
|
39
|
-
##### options
|
|
40
|
-
|
|
41
|
-
`any` = `{}`
|
|
42
|
-
|
|
43
|
-
#### Returns
|
|
44
|
-
|
|
45
|
-
[`ToolFunc`](ToolFunc.md)
|
|
46
|
-
|
|
47
|
-
#### Inherited from
|
|
48
|
-
|
|
49
|
-
`BaseFunc.constructor`
|
|
50
|
-
|
|
51
|
-
## Properties
|
|
52
|
-
|
|
53
|
-
### $attributes
|
|
54
|
-
|
|
55
|
-
> **$attributes**: `Properties`
|
|
56
|
-
|
|
57
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/advance.d.ts:5
|
|
58
|
-
|
|
59
|
-
***
|
|
60
|
-
|
|
61
|
-
### alias?
|
|
62
|
-
|
|
63
|
-
> `optional` **alias**: `string` \| `string`[]
|
|
64
|
-
|
|
65
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:31](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L31)
|
|
66
|
-
|
|
67
|
-
#### Inherited from
|
|
68
|
-
|
|
69
|
-
[`BaseFunc`](../interfaces/BaseFunc.md).[`alias`](../interfaces/BaseFunc.md#alias)
|
|
70
|
-
|
|
71
|
-
***
|
|
72
|
-
|
|
73
|
-
### constructor
|
|
74
|
-
|
|
75
|
-
> **constructor**: `Function`
|
|
76
|
-
|
|
77
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:125
|
|
78
|
-
|
|
79
|
-
The initial value of Object.prototype.constructor is the standard built-in Object constructor.
|
|
80
|
-
|
|
81
|
-
***
|
|
82
|
-
|
|
83
|
-
### defaultOptions
|
|
84
|
-
|
|
85
|
-
> **defaultOptions**: `object`
|
|
86
|
-
|
|
87
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:74
|
|
88
|
-
|
|
89
|
-
The default options for export and assign
|
|
90
|
-
|
|
91
|
-
#### assign?
|
|
92
|
-
|
|
93
|
-
> `optional` **assign**: `IMergeOptions`
|
|
94
|
-
|
|
95
|
-
#### export?
|
|
96
|
-
|
|
97
|
-
> `optional` **export**: `IMergeOptions`
|
|
98
|
-
|
|
99
|
-
***
|
|
100
|
-
|
|
101
|
-
### isApi?
|
|
102
|
-
|
|
103
|
-
> `optional` **isApi**: `boolean`
|
|
104
|
-
|
|
105
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:29](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L29)
|
|
106
|
-
|
|
107
|
-
#### Inherited from
|
|
108
|
-
|
|
109
|
-
[`BaseFunc`](../interfaces/BaseFunc.md).[`isApi`](../interfaces/BaseFunc.md#isapi)
|
|
110
|
-
|
|
111
|
-
***
|
|
112
|
-
|
|
113
|
-
### name?
|
|
114
|
-
|
|
115
|
-
> `optional` **name**: `string`
|
|
116
|
-
|
|
117
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:23](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L23)
|
|
118
|
-
|
|
119
|
-
#### Inherited from
|
|
120
|
-
|
|
121
|
-
[`BaseFunc`](../interfaces/BaseFunc.md).[`name`](../interfaces/BaseFunc.md#name)
|
|
122
|
-
|
|
123
|
-
***
|
|
124
|
-
|
|
125
|
-
### nonExported1stChar
|
|
126
|
-
|
|
127
|
-
> **nonExported1stChar**: `string`
|
|
128
|
-
|
|
129
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:78
|
|
130
|
-
|
|
131
|
-
the property with the default prefix '$' will not be exported.
|
|
132
|
-
|
|
133
|
-
***
|
|
134
|
-
|
|
135
|
-
### params?
|
|
136
|
-
|
|
137
|
-
> `optional` **params**: [`FuncParams`](../interfaces/FuncParams.md) \| [`FuncParam`](../interfaces/FuncParam.md)[]
|
|
138
|
-
|
|
139
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:24](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L24)
|
|
140
|
-
|
|
141
|
-
#### Inherited from
|
|
142
|
-
|
|
143
|
-
[`BaseFunc`](../interfaces/BaseFunc.md).[`params`](../interfaces/BaseFunc.md#params)
|
|
144
|
-
|
|
145
|
-
***
|
|
146
|
-
|
|
147
|
-
### result?
|
|
148
|
-
|
|
149
|
-
> `optional` **result**: `string`
|
|
150
|
-
|
|
151
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:25](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L25)
|
|
152
|
-
|
|
153
|
-
#### Inherited from
|
|
154
|
-
|
|
155
|
-
[`BaseFunc`](../interfaces/BaseFunc.md).[`result`](../interfaces/BaseFunc.md#result)
|
|
156
|
-
|
|
157
|
-
***
|
|
158
|
-
|
|
159
|
-
### scope?
|
|
160
|
-
|
|
161
|
-
> `optional` **scope**: `any`
|
|
162
|
-
|
|
163
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:26](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L26)
|
|
164
|
-
|
|
165
|
-
#### Inherited from
|
|
166
|
-
|
|
167
|
-
[`BaseFunc`](../interfaces/BaseFunc.md).[`scope`](../interfaces/BaseFunc.md#scope)
|
|
168
|
-
|
|
169
|
-
***
|
|
170
|
-
|
|
171
|
-
### setup()?
|
|
172
|
-
|
|
173
|
-
> `optional` **setup**: (`this`, `options`?) => `void`
|
|
174
|
-
|
|
175
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:28](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L28)
|
|
176
|
-
|
|
177
|
-
#### Parameters
|
|
178
|
-
|
|
179
|
-
##### this
|
|
180
|
-
|
|
181
|
-
[`ToolFunc`](ToolFunc.md)
|
|
182
|
-
|
|
183
|
-
##### options?
|
|
184
|
-
|
|
185
|
-
[`FuncItem`](../interfaces/FuncItem.md)
|
|
186
|
-
|
|
187
|
-
#### Returns
|
|
188
|
-
|
|
189
|
-
`void`
|
|
190
|
-
|
|
191
|
-
#### Inherited from
|
|
192
|
-
|
|
193
|
-
[`BaseFunc`](../interfaces/BaseFunc.md).[`setup`](../interfaces/BaseFunc.md#setup)
|
|
194
|
-
|
|
195
|
-
***
|
|
196
|
-
|
|
197
|
-
### stream?
|
|
198
|
-
|
|
199
|
-
> `optional` **stream**: `boolean`
|
|
200
|
-
|
|
201
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:30](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L30)
|
|
202
|
-
|
|
203
|
-
#### Inherited from
|
|
204
|
-
|
|
205
|
-
[`BaseFunc`](../interfaces/BaseFunc.md).[`stream`](../interfaces/BaseFunc.md#stream)
|
|
206
|
-
|
|
207
|
-
***
|
|
208
|
-
|
|
209
|
-
### tags?
|
|
210
|
-
|
|
211
|
-
> `optional` **tags**: `string` \| `string`[]
|
|
212
|
-
|
|
213
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:27](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L27)
|
|
214
|
-
|
|
215
|
-
#### Inherited from
|
|
216
|
-
|
|
217
|
-
[`BaseFunc`](../interfaces/BaseFunc.md).[`tags`](../interfaces/BaseFunc.md#tags)
|
|
218
|
-
|
|
219
|
-
***
|
|
220
|
-
|
|
221
|
-
### aliases
|
|
222
|
-
|
|
223
|
-
> `static` **aliases**: `object` = `{}`
|
|
224
|
-
|
|
225
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:58](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L58)
|
|
226
|
-
|
|
227
|
-
#### Index Signature
|
|
228
|
-
|
|
229
|
-
\[`name`: `string`\]: `string`
|
|
230
|
-
|
|
231
|
-
***
|
|
232
|
-
|
|
233
|
-
### dataPath
|
|
234
|
-
|
|
235
|
-
> `static` **dataPath**: `string`
|
|
236
|
-
|
|
237
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:59](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L59)
|
|
238
|
-
|
|
239
|
-
***
|
|
240
|
-
|
|
241
|
-
### items
|
|
242
|
-
|
|
243
|
-
> `static` **items**: [`Funcs`](../interfaces/Funcs.md) = `{}`
|
|
244
|
-
|
|
245
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:57](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L57)
|
|
246
|
-
|
|
247
|
-
## Methods
|
|
248
|
-
|
|
249
|
-
### arr2ObjParams()
|
|
250
|
-
|
|
251
|
-
> **arr2ObjParams**(`params`): `any`[]
|
|
252
|
-
|
|
253
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:269](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L269)
|
|
254
|
-
|
|
255
|
-
#### Parameters
|
|
256
|
-
|
|
257
|
-
##### params
|
|
258
|
-
|
|
259
|
-
`any`[]
|
|
260
|
-
|
|
261
|
-
#### Returns
|
|
262
|
-
|
|
263
|
-
`any`[]
|
|
264
|
-
|
|
265
|
-
***
|
|
266
|
-
|
|
267
|
-
### assign()
|
|
268
|
-
|
|
269
|
-
> **assign**(`src`, `options`?): `this`
|
|
270
|
-
|
|
271
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:106
|
|
272
|
-
|
|
273
|
-
Assign the values from the src object.
|
|
274
|
-
|
|
275
|
-
#### Parameters
|
|
276
|
-
|
|
277
|
-
##### src
|
|
278
|
-
|
|
279
|
-
`any`
|
|
280
|
-
|
|
281
|
-
the source object
|
|
282
|
-
|
|
283
|
-
##### options?
|
|
284
|
-
|
|
285
|
-
`IMergeOptions`
|
|
286
|
-
|
|
287
|
-
#### Returns
|
|
288
|
-
|
|
289
|
-
`this`
|
|
290
|
-
|
|
291
|
-
this object
|
|
292
|
-
|
|
293
|
-
***
|
|
294
|
-
|
|
295
|
-
### assignProperty()
|
|
296
|
-
|
|
297
|
-
> **assignProperty**(`src`, `name`, `value`, `attrs`?, `options`?): `void`
|
|
298
|
-
|
|
299
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:117
|
|
300
|
-
|
|
301
|
-
Assign a property of src to this object.
|
|
302
|
-
|
|
303
|
-
#### Parameters
|
|
304
|
-
|
|
305
|
-
##### src
|
|
306
|
-
|
|
307
|
-
`any`
|
|
308
|
-
|
|
309
|
-
the src object
|
|
310
|
-
|
|
311
|
-
##### name
|
|
312
|
-
|
|
313
|
-
`string`
|
|
314
|
-
|
|
315
|
-
the property name to assign
|
|
316
|
-
|
|
317
|
-
##### value
|
|
318
|
-
|
|
319
|
-
`any`
|
|
320
|
-
|
|
321
|
-
the property value to assign
|
|
322
|
-
|
|
323
|
-
##### attrs?
|
|
324
|
-
|
|
325
|
-
`any`
|
|
326
|
-
|
|
327
|
-
the attributes object
|
|
328
|
-
|
|
329
|
-
##### options?
|
|
330
|
-
|
|
331
|
-
`IMergeOptions`
|
|
332
|
-
|
|
333
|
-
#### Returns
|
|
334
|
-
|
|
335
|
-
`void`
|
|
336
|
-
|
|
337
|
-
***
|
|
338
|
-
|
|
339
|
-
### assignPropertyTo()
|
|
340
|
-
|
|
341
|
-
> `abstract` **assignPropertyTo**(`dest`, `src`, `name`, `value`, `attrs`?, `options`?): `void`
|
|
342
|
-
|
|
343
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:131
|
|
344
|
-
|
|
345
|
-
Assign the property value from the src to destination object.
|
|
346
|
-
|
|
347
|
-
#### Parameters
|
|
348
|
-
|
|
349
|
-
##### dest
|
|
350
|
-
|
|
351
|
-
`any`
|
|
352
|
-
|
|
353
|
-
The destination object
|
|
354
|
-
|
|
355
|
-
##### src
|
|
356
|
-
|
|
357
|
-
`any`
|
|
358
|
-
|
|
359
|
-
The src object
|
|
360
|
-
|
|
361
|
-
##### name
|
|
362
|
-
|
|
363
|
-
`string`
|
|
364
|
-
|
|
365
|
-
The property name
|
|
366
|
-
|
|
367
|
-
##### value
|
|
368
|
-
|
|
369
|
-
`any`
|
|
370
|
-
|
|
371
|
-
The property value
|
|
372
|
-
|
|
373
|
-
##### attrs?
|
|
374
|
-
|
|
375
|
-
`any`
|
|
376
|
-
|
|
377
|
-
The attributes object of the property
|
|
378
|
-
|
|
379
|
-
##### options?
|
|
380
|
-
|
|
381
|
-
`IMergeOptions`
|
|
382
|
-
|
|
383
|
-
#### Returns
|
|
384
|
-
|
|
385
|
-
`void`
|
|
386
|
-
|
|
387
|
-
***
|
|
388
|
-
|
|
389
|
-
### assignTo()
|
|
390
|
-
|
|
391
|
-
> **assignTo**(`dest`?, `options`?): `any`
|
|
392
|
-
|
|
393
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:191
|
|
394
|
-
|
|
395
|
-
Assign this attributes to the dest object
|
|
396
|
-
|
|
397
|
-
#### Parameters
|
|
398
|
-
|
|
399
|
-
##### dest?
|
|
400
|
-
|
|
401
|
-
`any`
|
|
402
|
-
|
|
403
|
-
the destination object
|
|
404
|
-
|
|
405
|
-
##### options?
|
|
406
|
-
|
|
407
|
-
`IMergeOptions`
|
|
408
|
-
|
|
409
|
-
#### Returns
|
|
410
|
-
|
|
411
|
-
`any`
|
|
412
|
-
|
|
413
|
-
the dest object
|
|
414
|
-
|
|
415
|
-
***
|
|
416
|
-
|
|
417
|
-
### clone()
|
|
418
|
-
|
|
419
|
-
> **clone**(`options`?): `any`
|
|
420
|
-
|
|
421
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:155
|
|
422
|
-
|
|
423
|
-
Create a new object with the same values of attributes.
|
|
424
|
-
|
|
425
|
-
#### Parameters
|
|
426
|
-
|
|
427
|
-
##### options?
|
|
428
|
-
|
|
429
|
-
`IMergeOptions`
|
|
430
|
-
|
|
431
|
-
#### Returns
|
|
432
|
-
|
|
433
|
-
`any`
|
|
434
|
-
|
|
435
|
-
the new object
|
|
436
|
-
|
|
437
|
-
***
|
|
438
|
-
|
|
439
|
-
### cloneTo()
|
|
440
|
-
|
|
441
|
-
> **cloneTo**(`dest`, `options`?): `any`
|
|
442
|
-
|
|
443
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:148
|
|
444
|
-
|
|
445
|
-
Create and assign the values to the destination object.
|
|
446
|
-
|
|
447
|
-
#### Parameters
|
|
448
|
-
|
|
449
|
-
##### dest
|
|
450
|
-
|
|
451
|
-
`any`
|
|
452
|
-
|
|
453
|
-
the destination object
|
|
454
|
-
|
|
455
|
-
##### options?
|
|
456
|
-
|
|
457
|
-
`IMergeOptions`
|
|
458
|
-
|
|
459
|
-
#### Returns
|
|
460
|
-
|
|
461
|
-
`any`
|
|
462
|
-
|
|
463
|
-
the new dest object
|
|
464
|
-
|
|
465
|
-
***
|
|
466
|
-
|
|
467
|
-
### defineProperties()
|
|
468
|
-
|
|
469
|
-
> `abstract` **defineProperties**(`aProperties`): `any`
|
|
470
|
-
|
|
471
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:89
|
|
472
|
-
|
|
473
|
-
Define the attributes of this object.
|
|
474
|
-
|
|
475
|
-
#### Parameters
|
|
476
|
-
|
|
477
|
-
##### aProperties
|
|
478
|
-
|
|
479
|
-
`SimplePropDescriptors`
|
|
480
|
-
|
|
481
|
-
the defined attributes of the object
|
|
482
|
-
|
|
483
|
-
#### Returns
|
|
484
|
-
|
|
485
|
-
`any`
|
|
486
|
-
|
|
487
|
-
***
|
|
488
|
-
|
|
489
|
-
### exportTo()
|
|
490
|
-
|
|
491
|
-
> **exportTo**(`dest`, `options`?): `any`
|
|
492
|
-
|
|
493
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:173
|
|
494
|
-
|
|
495
|
-
Export attributes to the dest json object.
|
|
496
|
-
|
|
497
|
-
#### Parameters
|
|
498
|
-
|
|
499
|
-
##### dest
|
|
500
|
-
|
|
501
|
-
`any`
|
|
502
|
-
|
|
503
|
-
the destination object
|
|
504
|
-
|
|
505
|
-
##### options?
|
|
506
|
-
|
|
507
|
-
`IExportOptions`
|
|
508
|
-
|
|
509
|
-
#### Returns
|
|
510
|
-
|
|
511
|
-
`any`
|
|
512
|
-
|
|
513
|
-
the dest object.
|
|
514
|
-
|
|
515
|
-
***
|
|
516
|
-
|
|
517
|
-
### func()
|
|
518
|
-
|
|
519
|
-
> **func**(...`params`): `any`
|
|
520
|
-
|
|
521
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:39](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L39)
|
|
522
|
-
|
|
523
|
-
#### Parameters
|
|
524
|
-
|
|
525
|
-
##### params
|
|
526
|
-
|
|
527
|
-
...`any`
|
|
528
|
-
|
|
529
|
-
#### Returns
|
|
530
|
-
|
|
531
|
-
`any`
|
|
532
|
-
|
|
533
|
-
#### Inherited from
|
|
534
|
-
|
|
535
|
-
[`BaseFunc`](../interfaces/BaseFunc.md).[`func`](../interfaces/BaseFunc.md#func)
|
|
536
|
-
|
|
537
|
-
***
|
|
538
|
-
|
|
539
|
-
### getFunc()
|
|
540
|
-
|
|
541
|
-
> **getFunc**(`name`?): `any`
|
|
542
|
-
|
|
543
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:322](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L322)
|
|
544
|
-
|
|
545
|
-
#### Parameters
|
|
546
|
-
|
|
547
|
-
##### name?
|
|
548
|
-
|
|
549
|
-
`string`
|
|
550
|
-
|
|
551
|
-
#### Returns
|
|
552
|
-
|
|
553
|
-
`any`
|
|
554
|
-
|
|
555
|
-
***
|
|
556
|
-
|
|
557
|
-
### getFuncWithPos()
|
|
558
|
-
|
|
559
|
-
> **getFuncWithPos**(`name`?): `any`
|
|
560
|
-
|
|
561
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:346](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L346)
|
|
562
|
-
|
|
563
|
-
#### Parameters
|
|
564
|
-
|
|
565
|
-
##### name?
|
|
566
|
-
|
|
567
|
-
`string`
|
|
568
|
-
|
|
569
|
-
#### Returns
|
|
570
|
-
|
|
571
|
-
`any`
|
|
572
|
-
|
|
573
|
-
***
|
|
574
|
-
|
|
575
|
-
### getProperties()
|
|
576
|
-
|
|
577
|
-
> `abstract` **getProperties**(): `PropDescriptors`
|
|
578
|
-
|
|
579
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:98
|
|
580
|
-
|
|
581
|
-
Get the defined attributes.
|
|
582
|
-
|
|
583
|
-
#### Returns
|
|
584
|
-
|
|
585
|
-
`PropDescriptors`
|
|
586
|
-
|
|
587
|
-
the descriptors of properties object
|
|
588
|
-
|
|
589
|
-
***
|
|
590
|
-
|
|
591
|
-
### hasAsyncFeature()
|
|
592
|
-
|
|
593
|
-
> **hasAsyncFeature**(`feature`): `boolean`
|
|
594
|
-
|
|
595
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:351](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L351)
|
|
596
|
-
|
|
597
|
-
#### Parameters
|
|
598
|
-
|
|
599
|
-
##### feature
|
|
600
|
-
|
|
601
|
-
[`AsyncFeatureBits`](../enumerations/AsyncFeatureBits.md)
|
|
602
|
-
|
|
603
|
-
#### Returns
|
|
604
|
-
|
|
605
|
-
`boolean`
|
|
606
|
-
|
|
607
|
-
***
|
|
608
|
-
|
|
609
|
-
### hasOwnProperty()
|
|
610
|
-
|
|
611
|
-
> **hasOwnProperty**(`v`): `boolean`
|
|
612
|
-
|
|
613
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:140
|
|
614
|
-
|
|
615
|
-
Determines whether an object has a property with the specified name.
|
|
616
|
-
|
|
617
|
-
#### Parameters
|
|
618
|
-
|
|
619
|
-
##### v
|
|
620
|
-
|
|
621
|
-
`PropertyKey`
|
|
622
|
-
|
|
623
|
-
A property name.
|
|
624
|
-
|
|
625
|
-
#### Returns
|
|
626
|
-
|
|
627
|
-
`boolean`
|
|
628
|
-
|
|
629
|
-
***
|
|
630
|
-
|
|
631
|
-
### initialize()
|
|
632
|
-
|
|
633
|
-
> **initialize**(`src`?): `this`
|
|
634
|
-
|
|
635
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:139
|
|
636
|
-
|
|
637
|
-
Initialize object and assign attribute values from src if src exists.
|
|
638
|
-
|
|
639
|
-
#### Parameters
|
|
640
|
-
|
|
641
|
-
##### src?
|
|
642
|
-
|
|
643
|
-
`any`
|
|
644
|
-
|
|
645
|
-
#### Returns
|
|
646
|
-
|
|
647
|
-
`this`
|
|
648
|
-
|
|
649
|
-
this object.
|
|
650
|
-
|
|
651
|
-
***
|
|
652
|
-
|
|
653
|
-
### isPrototypeOf()
|
|
654
|
-
|
|
655
|
-
> **isPrototypeOf**(`v`): `boolean`
|
|
656
|
-
|
|
657
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:146
|
|
658
|
-
|
|
659
|
-
Determines whether an object exists in another object's prototype chain.
|
|
660
|
-
|
|
661
|
-
#### Parameters
|
|
662
|
-
|
|
663
|
-
##### v
|
|
664
|
-
|
|
665
|
-
`Object`
|
|
666
|
-
|
|
667
|
-
Another object whose prototype chain is to be checked.
|
|
668
|
-
|
|
669
|
-
#### Returns
|
|
670
|
-
|
|
671
|
-
`boolean`
|
|
672
|
-
|
|
673
|
-
***
|
|
674
|
-
|
|
675
|
-
### isSame()
|
|
676
|
-
|
|
677
|
-
> **isSame**(`src`, `options`?): `boolean`
|
|
678
|
-
|
|
679
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:200
|
|
680
|
-
|
|
681
|
-
Check the src object whether “equals” this object.
|
|
682
|
-
|
|
683
|
-
#### Parameters
|
|
684
|
-
|
|
685
|
-
##### src
|
|
686
|
-
|
|
687
|
-
`any`
|
|
688
|
-
|
|
689
|
-
The source object
|
|
690
|
-
|
|
691
|
-
##### options?
|
|
692
|
-
|
|
693
|
-
`IMergeOptions`
|
|
694
|
-
|
|
695
|
-
#### Returns
|
|
696
|
-
|
|
697
|
-
`boolean`
|
|
698
|
-
|
|
699
|
-
***
|
|
700
|
-
|
|
701
|
-
### isStream()
|
|
702
|
-
|
|
703
|
-
> **isStream**(`params`): `undefined` \| `boolean`
|
|
704
|
-
|
|
705
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:357](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L357)
|
|
706
|
-
|
|
707
|
-
#### Parameters
|
|
708
|
-
|
|
709
|
-
##### params
|
|
710
|
-
|
|
711
|
-
`any`
|
|
712
|
-
|
|
713
|
-
#### Returns
|
|
714
|
-
|
|
715
|
-
`undefined` \| `boolean`
|
|
716
|
-
|
|
717
|
-
***
|
|
718
|
-
|
|
719
|
-
### mergeTo()
|
|
720
|
-
|
|
721
|
-
> **mergeTo**(`dest`, `options`?): `any`
|
|
722
|
-
|
|
723
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:164
|
|
724
|
-
|
|
725
|
-
Merge this attributes to dest object.
|
|
726
|
-
|
|
727
|
-
#### Parameters
|
|
728
|
-
|
|
729
|
-
##### dest
|
|
730
|
-
|
|
731
|
-
`any`
|
|
732
|
-
|
|
733
|
-
The destination object
|
|
734
|
-
|
|
735
|
-
##### options?
|
|
736
|
-
|
|
737
|
-
`IMergeOptions`
|
|
738
|
-
|
|
739
|
-
#### Returns
|
|
740
|
-
|
|
741
|
-
`any`
|
|
742
|
-
|
|
743
|
-
the dest object.
|
|
744
|
-
|
|
745
|
-
***
|
|
746
|
-
|
|
747
|
-
### obj2ArrParams()
|
|
748
|
-
|
|
749
|
-
> **obj2ArrParams**(`params`?): `any`[]
|
|
750
|
-
|
|
751
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:282](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L282)
|
|
752
|
-
|
|
753
|
-
#### Parameters
|
|
754
|
-
|
|
755
|
-
##### params?
|
|
756
|
-
|
|
757
|
-
`any`
|
|
758
|
-
|
|
759
|
-
#### Returns
|
|
760
|
-
|
|
761
|
-
`any`[]
|
|
762
|
-
|
|
763
|
-
***
|
|
764
|
-
|
|
765
|
-
### propertyIsEnumerable()
|
|
766
|
-
|
|
767
|
-
> **propertyIsEnumerable**(`v`): `boolean`
|
|
768
|
-
|
|
769
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:152
|
|
770
|
-
|
|
771
|
-
Determines whether a specified property is enumerable.
|
|
772
|
-
|
|
773
|
-
#### Parameters
|
|
774
|
-
|
|
775
|
-
##### v
|
|
776
|
-
|
|
777
|
-
`PropertyKey`
|
|
778
|
-
|
|
779
|
-
A property name.
|
|
780
|
-
|
|
781
|
-
#### Returns
|
|
782
|
-
|
|
783
|
-
`boolean`
|
|
784
|
-
|
|
785
|
-
***
|
|
786
|
-
|
|
787
|
-
### register()
|
|
788
|
-
|
|
789
|
-
> **register**(): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
790
|
-
|
|
791
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:252](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L252)
|
|
792
|
-
|
|
793
|
-
#### Returns
|
|
794
|
-
|
|
795
|
-
`boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
796
|
-
|
|
797
|
-
***
|
|
798
|
-
|
|
799
|
-
### run()
|
|
800
|
-
|
|
801
|
-
> **run**(`params`?): `Promise`\<`any`\>
|
|
802
|
-
|
|
803
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:309](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L309)
|
|
804
|
-
|
|
805
|
-
#### Parameters
|
|
806
|
-
|
|
807
|
-
##### params?
|
|
808
|
-
|
|
809
|
-
`any`
|
|
810
|
-
|
|
811
|
-
#### Returns
|
|
812
|
-
|
|
813
|
-
`Promise`\<`any`\>
|
|
814
|
-
|
|
815
|
-
***
|
|
816
|
-
|
|
817
|
-
### runAs()
|
|
818
|
-
|
|
819
|
-
> **runAs**(`name`, `params`?): `Promise`\<`any`\>
|
|
820
|
-
|
|
821
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:313](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L313)
|
|
822
|
-
|
|
823
|
-
#### Parameters
|
|
824
|
-
|
|
825
|
-
##### name
|
|
826
|
-
|
|
827
|
-
`string`
|
|
828
|
-
|
|
829
|
-
##### params?
|
|
830
|
-
|
|
831
|
-
`any`
|
|
832
|
-
|
|
833
|
-
#### Returns
|
|
834
|
-
|
|
835
|
-
`Promise`\<`any`\>
|
|
836
|
-
|
|
837
|
-
***
|
|
838
|
-
|
|
839
|
-
### runAsSync()
|
|
840
|
-
|
|
841
|
-
> **runAsSync**(`name`, `params`?): `any`
|
|
842
|
-
|
|
843
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:317](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L317)
|
|
844
|
-
|
|
845
|
-
#### Parameters
|
|
846
|
-
|
|
847
|
-
##### name
|
|
848
|
-
|
|
849
|
-
`string`
|
|
850
|
-
|
|
851
|
-
##### params?
|
|
852
|
-
|
|
853
|
-
`any`
|
|
854
|
-
|
|
855
|
-
#### Returns
|
|
856
|
-
|
|
857
|
-
`any`
|
|
858
|
-
|
|
859
|
-
***
|
|
860
|
-
|
|
861
|
-
### runSync()
|
|
862
|
-
|
|
863
|
-
> **runSync**(`params`?): `any`
|
|
864
|
-
|
|
865
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:295](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L295)
|
|
866
|
-
|
|
867
|
-
#### Parameters
|
|
868
|
-
|
|
869
|
-
##### params?
|
|
870
|
-
|
|
871
|
-
`any`
|
|
872
|
-
|
|
873
|
-
#### Returns
|
|
874
|
-
|
|
875
|
-
`any`
|
|
876
|
-
|
|
877
|
-
***
|
|
878
|
-
|
|
879
|
-
### runWithPos()
|
|
880
|
-
|
|
881
|
-
> **runWithPos**(...`params`): `Promise`\<`any`\>
|
|
882
|
-
|
|
883
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:338](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L338)
|
|
884
|
-
|
|
885
|
-
#### Parameters
|
|
886
|
-
|
|
887
|
-
##### params
|
|
888
|
-
|
|
889
|
-
...`any`[]
|
|
890
|
-
|
|
891
|
-
#### Returns
|
|
892
|
-
|
|
893
|
-
`Promise`\<`any`\>
|
|
894
|
-
|
|
895
|
-
***
|
|
896
|
-
|
|
897
|
-
### runWithPosAs()
|
|
898
|
-
|
|
899
|
-
> **runWithPosAs**(`name`, ...`params`): `Promise`\<`any`\>
|
|
900
|
-
|
|
901
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:342](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L342)
|
|
902
|
-
|
|
903
|
-
#### Parameters
|
|
904
|
-
|
|
905
|
-
##### name
|
|
906
|
-
|
|
907
|
-
`string`
|
|
908
|
-
|
|
909
|
-
##### params
|
|
910
|
-
|
|
911
|
-
...`any`[]
|
|
912
|
-
|
|
913
|
-
#### Returns
|
|
914
|
-
|
|
915
|
-
`Promise`\<`any`\>
|
|
916
|
-
|
|
917
|
-
***
|
|
918
|
-
|
|
919
|
-
### runWithPosAsSync()
|
|
920
|
-
|
|
921
|
-
> **runWithPosAsSync**(`name`, ...`params`): `any`
|
|
922
|
-
|
|
923
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:334](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L334)
|
|
924
|
-
|
|
925
|
-
#### Parameters
|
|
926
|
-
|
|
927
|
-
##### name
|
|
928
|
-
|
|
929
|
-
`string`
|
|
930
|
-
|
|
931
|
-
##### params
|
|
932
|
-
|
|
933
|
-
...`any`[]
|
|
934
|
-
|
|
935
|
-
#### Returns
|
|
936
|
-
|
|
937
|
-
`any`
|
|
938
|
-
|
|
939
|
-
***
|
|
940
|
-
|
|
941
|
-
### runWithPosSync()
|
|
942
|
-
|
|
943
|
-
> **runWithPosSync**(...`params`): `any`
|
|
944
|
-
|
|
945
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:327](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L327)
|
|
946
|
-
|
|
947
|
-
#### Parameters
|
|
948
|
-
|
|
949
|
-
##### params
|
|
950
|
-
|
|
951
|
-
...`any`[]
|
|
952
|
-
|
|
953
|
-
#### Returns
|
|
954
|
-
|
|
955
|
-
`any`
|
|
956
|
-
|
|
957
|
-
***
|
|
958
|
-
|
|
959
|
-
### toJSON()
|
|
960
|
-
|
|
961
|
-
> **toJSON**(): `any`
|
|
962
|
-
|
|
963
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:182
|
|
964
|
-
|
|
965
|
-
#### Returns
|
|
966
|
-
|
|
967
|
-
`any`
|
|
968
|
-
|
|
969
|
-
***
|
|
970
|
-
|
|
971
|
-
### toLocaleString()
|
|
972
|
-
|
|
973
|
-
> **toLocaleString**(): `string`
|
|
974
|
-
|
|
975
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:131
|
|
976
|
-
|
|
977
|
-
Returns a date converted to a string using the current locale.
|
|
978
|
-
|
|
979
|
-
#### Returns
|
|
980
|
-
|
|
981
|
-
`string`
|
|
982
|
-
|
|
983
|
-
***
|
|
984
|
-
|
|
985
|
-
### toObject()
|
|
986
|
-
|
|
987
|
-
> **toObject**(`options`?): `any`
|
|
988
|
-
|
|
989
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/abstract.d.ts:181
|
|
990
|
-
|
|
991
|
-
Convert the attributes to the json object
|
|
992
|
-
|
|
993
|
-
#### Parameters
|
|
994
|
-
|
|
995
|
-
##### options?
|
|
996
|
-
|
|
997
|
-
`any`
|
|
998
|
-
|
|
999
|
-
#### Returns
|
|
1000
|
-
|
|
1001
|
-
`any`
|
|
1002
|
-
|
|
1003
|
-
the json object.
|
|
1004
|
-
|
|
1005
|
-
***
|
|
1006
|
-
|
|
1007
|
-
### toString()
|
|
1008
|
-
|
|
1009
|
-
> **toString**(): `string`
|
|
1010
|
-
|
|
1011
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:128
|
|
1012
|
-
|
|
1013
|
-
Returns a string representation of an object.
|
|
1014
|
-
|
|
1015
|
-
#### Returns
|
|
1016
|
-
|
|
1017
|
-
`string`
|
|
1018
|
-
|
|
1019
|
-
***
|
|
1020
|
-
|
|
1021
|
-
### unregister()
|
|
1022
|
-
|
|
1023
|
-
> **unregister**(): `any`
|
|
1024
|
-
|
|
1025
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:265](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L265)
|
|
1026
|
-
|
|
1027
|
-
#### Returns
|
|
1028
|
-
|
|
1029
|
-
`any`
|
|
1030
|
-
|
|
1031
|
-
***
|
|
1032
|
-
|
|
1033
|
-
### valueOf()
|
|
1034
|
-
|
|
1035
|
-
> **valueOf**(): `Object`
|
|
1036
|
-
|
|
1037
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:134
|
|
1038
|
-
|
|
1039
|
-
Returns the primitive value of the specified object.
|
|
1040
|
-
|
|
1041
|
-
#### Returns
|
|
1042
|
-
|
|
1043
|
-
`Object`
|
|
1044
|
-
|
|
1045
|
-
***
|
|
1046
|
-
|
|
1047
|
-
### assign()
|
|
1048
|
-
|
|
1049
|
-
#### Call Signature
|
|
1050
|
-
|
|
1051
|
-
> `static` **assign**\<`T`, `U`\>(`target`, `source`): `T` & `U`
|
|
1052
|
-
|
|
1053
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:286
|
|
1054
|
-
|
|
1055
|
-
Copy the values of all of the enumerable own properties from one or more source objects to a
|
|
1056
|
-
target object. Returns the target object.
|
|
1057
|
-
|
|
1058
|
-
##### Type Parameters
|
|
1059
|
-
|
|
1060
|
-
• **T** *extends* `object`
|
|
1061
|
-
|
|
1062
|
-
• **U**
|
|
1063
|
-
|
|
1064
|
-
##### Parameters
|
|
1065
|
-
|
|
1066
|
-
###### target
|
|
1067
|
-
|
|
1068
|
-
`T`
|
|
1069
|
-
|
|
1070
|
-
The target object to copy to.
|
|
1071
|
-
|
|
1072
|
-
###### source
|
|
1073
|
-
|
|
1074
|
-
`U`
|
|
1075
|
-
|
|
1076
|
-
The source object from which to copy properties.
|
|
1077
|
-
|
|
1078
|
-
##### Returns
|
|
1079
|
-
|
|
1080
|
-
`T` & `U`
|
|
1081
|
-
|
|
1082
|
-
#### Call Signature
|
|
1083
|
-
|
|
1084
|
-
> `static` **assign**\<`T`, `U`, `V`\>(`target`, `source1`, `source2`): `T` & `U` & `V`
|
|
1085
|
-
|
|
1086
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:295
|
|
1087
|
-
|
|
1088
|
-
Copy the values of all of the enumerable own properties from one or more source objects to a
|
|
1089
|
-
target object. Returns the target object.
|
|
1090
|
-
|
|
1091
|
-
##### Type Parameters
|
|
1092
|
-
|
|
1093
|
-
• **T** *extends* `object`
|
|
1094
|
-
|
|
1095
|
-
• **U**
|
|
1096
|
-
|
|
1097
|
-
• **V**
|
|
1098
|
-
|
|
1099
|
-
##### Parameters
|
|
1100
|
-
|
|
1101
|
-
###### target
|
|
1102
|
-
|
|
1103
|
-
`T`
|
|
1104
|
-
|
|
1105
|
-
The target object to copy to.
|
|
1106
|
-
|
|
1107
|
-
###### source1
|
|
1108
|
-
|
|
1109
|
-
`U`
|
|
1110
|
-
|
|
1111
|
-
The first source object from which to copy properties.
|
|
1112
|
-
|
|
1113
|
-
###### source2
|
|
1114
|
-
|
|
1115
|
-
`V`
|
|
1116
|
-
|
|
1117
|
-
The second source object from which to copy properties.
|
|
1118
|
-
|
|
1119
|
-
##### Returns
|
|
1120
|
-
|
|
1121
|
-
`T` & `U` & `V`
|
|
1122
|
-
|
|
1123
|
-
#### Call Signature
|
|
1124
|
-
|
|
1125
|
-
> `static` **assign**\<`T`, `U`, `V`, `W`\>(`target`, `source1`, `source2`, `source3`): `T` & `U` & `V` & `W`
|
|
1126
|
-
|
|
1127
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:305
|
|
1128
|
-
|
|
1129
|
-
Copy the values of all of the enumerable own properties from one or more source objects to a
|
|
1130
|
-
target object. Returns the target object.
|
|
1131
|
-
|
|
1132
|
-
##### Type Parameters
|
|
1133
|
-
|
|
1134
|
-
• **T** *extends* `object`
|
|
1135
|
-
|
|
1136
|
-
• **U**
|
|
1137
|
-
|
|
1138
|
-
• **V**
|
|
1139
|
-
|
|
1140
|
-
• **W**
|
|
1141
|
-
|
|
1142
|
-
##### Parameters
|
|
1143
|
-
|
|
1144
|
-
###### target
|
|
1145
|
-
|
|
1146
|
-
`T`
|
|
1147
|
-
|
|
1148
|
-
The target object to copy to.
|
|
1149
|
-
|
|
1150
|
-
###### source1
|
|
1151
|
-
|
|
1152
|
-
`U`
|
|
1153
|
-
|
|
1154
|
-
The first source object from which to copy properties.
|
|
1155
|
-
|
|
1156
|
-
###### source2
|
|
1157
|
-
|
|
1158
|
-
`V`
|
|
1159
|
-
|
|
1160
|
-
The second source object from which to copy properties.
|
|
1161
|
-
|
|
1162
|
-
###### source3
|
|
1163
|
-
|
|
1164
|
-
`W`
|
|
1165
|
-
|
|
1166
|
-
The third source object from which to copy properties.
|
|
1167
|
-
|
|
1168
|
-
##### Returns
|
|
1169
|
-
|
|
1170
|
-
`T` & `U` & `V` & `W`
|
|
1171
|
-
|
|
1172
|
-
#### Call Signature
|
|
1173
|
-
|
|
1174
|
-
> `static` **assign**(`target`, ...`sources`): `any`
|
|
1175
|
-
|
|
1176
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:313
|
|
1177
|
-
|
|
1178
|
-
Copy the values of all of the enumerable own properties from one or more source objects to a
|
|
1179
|
-
target object. Returns the target object.
|
|
1180
|
-
|
|
1181
|
-
##### Parameters
|
|
1182
|
-
|
|
1183
|
-
###### target
|
|
1184
|
-
|
|
1185
|
-
`object`
|
|
1186
|
-
|
|
1187
|
-
The target object to copy to.
|
|
1188
|
-
|
|
1189
|
-
###### sources
|
|
1190
|
-
|
|
1191
|
-
...`any`[]
|
|
1192
|
-
|
|
1193
|
-
One or more source objects from which to copy properties
|
|
1194
|
-
|
|
1195
|
-
##### Returns
|
|
1196
|
-
|
|
1197
|
-
`any`
|
|
1198
|
-
|
|
1199
|
-
***
|
|
1200
|
-
|
|
1201
|
-
### create()
|
|
1202
|
-
|
|
1203
|
-
#### Call Signature
|
|
1204
|
-
|
|
1205
|
-
> `static` **create**(`o`): `any`
|
|
1206
|
-
|
|
1207
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:188
|
|
1208
|
-
|
|
1209
|
-
Creates an object that has the specified prototype or that has null prototype.
|
|
1210
|
-
|
|
1211
|
-
##### Parameters
|
|
1212
|
-
|
|
1213
|
-
###### o
|
|
1214
|
-
|
|
1215
|
-
Object to use as a prototype. May be null.
|
|
1216
|
-
|
|
1217
|
-
`null` | `object`
|
|
1218
|
-
|
|
1219
|
-
##### Returns
|
|
1220
|
-
|
|
1221
|
-
`any`
|
|
1222
|
-
|
|
1223
|
-
#### Call Signature
|
|
1224
|
-
|
|
1225
|
-
> `static` **create**(`o`, `properties`): `any`
|
|
1226
|
-
|
|
1227
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:195
|
|
1228
|
-
|
|
1229
|
-
Creates an object that has the specified prototype, and that optionally contains specified properties.
|
|
1230
|
-
|
|
1231
|
-
##### Parameters
|
|
1232
|
-
|
|
1233
|
-
###### o
|
|
1234
|
-
|
|
1235
|
-
Object to use as a prototype. May be null
|
|
1236
|
-
|
|
1237
|
-
`null` | `object`
|
|
1238
|
-
|
|
1239
|
-
###### properties
|
|
1240
|
-
|
|
1241
|
-
`PropertyDescriptorMap` & `ThisType`\<`any`\>
|
|
1242
|
-
|
|
1243
|
-
JavaScript object that contains one or more property descriptors.
|
|
1244
|
-
|
|
1245
|
-
##### Returns
|
|
1246
|
-
|
|
1247
|
-
`any`
|
|
1248
|
-
|
|
1249
|
-
***
|
|
1250
|
-
|
|
1251
|
-
### defineProperties()
|
|
1252
|
-
|
|
1253
|
-
> `static` **defineProperties**(`aTarget`, `aProperties`, `recreate`?): `any`
|
|
1254
|
-
|
|
1255
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/advance.d.ts:11
|
|
1256
|
-
|
|
1257
|
-
Adds one or more properties to an object, and/or modifies attributes of existing properties.
|
|
1258
|
-
|
|
1259
|
-
#### Parameters
|
|
1260
|
-
|
|
1261
|
-
##### aTarget
|
|
1262
|
-
|
|
1263
|
-
`any`
|
|
1264
|
-
|
|
1265
|
-
##### aProperties
|
|
1266
|
-
|
|
1267
|
-
`PropDescriptors`
|
|
1268
|
-
|
|
1269
|
-
##### recreate?
|
|
1270
|
-
|
|
1271
|
-
`boolean`
|
|
1272
|
-
|
|
1273
|
-
#### Returns
|
|
1274
|
-
|
|
1275
|
-
`any`
|
|
1276
|
-
|
|
1277
|
-
***
|
|
1278
|
-
|
|
1279
|
-
### defineProperty()
|
|
1280
|
-
|
|
1281
|
-
> `static` **defineProperty**\<`T`\>(`o`, `p`, `attributes`): `T`
|
|
1282
|
-
|
|
1283
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:203
|
|
1284
|
-
|
|
1285
|
-
Adds a property to an object, or modifies attributes of an existing property.
|
|
1286
|
-
|
|
1287
|
-
#### Type Parameters
|
|
1288
|
-
|
|
1289
|
-
• **T**
|
|
1290
|
-
|
|
1291
|
-
#### Parameters
|
|
1292
|
-
|
|
1293
|
-
##### o
|
|
1294
|
-
|
|
1295
|
-
`T`
|
|
1296
|
-
|
|
1297
|
-
Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
|
|
1298
|
-
|
|
1299
|
-
##### p
|
|
1300
|
-
|
|
1301
|
-
`PropertyKey`
|
|
1302
|
-
|
|
1303
|
-
The property name.
|
|
1304
|
-
|
|
1305
|
-
##### attributes
|
|
1306
|
-
|
|
1307
|
-
`PropertyDescriptor` & `ThisType`\<`any`\>
|
|
1308
|
-
|
|
1309
|
-
Descriptor for the property. It can be for a data property or an accessor property.
|
|
1310
|
-
|
|
1311
|
-
#### Returns
|
|
1312
|
-
|
|
1313
|
-
`T`
|
|
1314
|
-
|
|
1315
|
-
***
|
|
1316
|
-
|
|
1317
|
-
### entries()
|
|
1318
|
-
|
|
1319
|
-
#### Call Signature
|
|
1320
|
-
|
|
1321
|
-
> `static` **entries**\<`T`\>(`o`): \[`string`, `T`\][]
|
|
1322
|
-
|
|
1323
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:36
|
|
1324
|
-
|
|
1325
|
-
Returns an array of key/values of the enumerable own properties of an object
|
|
1326
|
-
|
|
1327
|
-
##### Type Parameters
|
|
1328
|
-
|
|
1329
|
-
• **T**
|
|
1330
|
-
|
|
1331
|
-
##### Parameters
|
|
1332
|
-
|
|
1333
|
-
###### o
|
|
1334
|
-
|
|
1335
|
-
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
1336
|
-
|
|
1337
|
-
\{\} | `ArrayLike`\<`T`\>
|
|
1338
|
-
|
|
1339
|
-
##### Returns
|
|
1340
|
-
|
|
1341
|
-
\[`string`, `T`\][]
|
|
1342
|
-
|
|
1343
|
-
#### Call Signature
|
|
1344
|
-
|
|
1345
|
-
> `static` **entries**(`o`): \[`string`, `any`\][]
|
|
1346
|
-
|
|
1347
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:42
|
|
1348
|
-
|
|
1349
|
-
Returns an array of key/values of the enumerable own properties of an object
|
|
1350
|
-
|
|
1351
|
-
##### Parameters
|
|
1352
|
-
|
|
1353
|
-
###### o
|
|
1354
|
-
|
|
1355
|
-
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
1356
|
-
|
|
1357
|
-
##### Returns
|
|
1358
|
-
|
|
1359
|
-
\[`string`, `any`\][]
|
|
1360
|
-
|
|
1361
|
-
***
|
|
1362
|
-
|
|
1363
|
-
### freeze()
|
|
1364
|
-
|
|
1365
|
-
#### Call Signature
|
|
1366
|
-
|
|
1367
|
-
> `static` **freeze**\<`T`\>(`f`): `T`
|
|
1368
|
-
|
|
1369
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:222
|
|
1370
|
-
|
|
1371
|
-
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
1372
|
-
|
|
1373
|
-
##### Type Parameters
|
|
1374
|
-
|
|
1375
|
-
• **T** *extends* `Function`
|
|
1376
|
-
|
|
1377
|
-
##### Parameters
|
|
1378
|
-
|
|
1379
|
-
###### f
|
|
1380
|
-
|
|
1381
|
-
`T`
|
|
1382
|
-
|
|
1383
|
-
Object on which to lock the attributes.
|
|
1384
|
-
|
|
1385
|
-
##### Returns
|
|
1386
|
-
|
|
1387
|
-
`T`
|
|
1388
|
-
|
|
1389
|
-
#### Call Signature
|
|
1390
|
-
|
|
1391
|
-
> `static` **freeze**\<`T`, `U`\>(`o`): `Readonly`\<`T`\>
|
|
1392
|
-
|
|
1393
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:228
|
|
1394
|
-
|
|
1395
|
-
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
1396
|
-
|
|
1397
|
-
##### Type Parameters
|
|
1398
|
-
|
|
1399
|
-
• **T** *extends* `object`
|
|
1400
|
-
|
|
1401
|
-
• **U** *extends* `string` \| `number` \| `bigint` \| `boolean` \| `symbol`
|
|
1402
|
-
|
|
1403
|
-
##### Parameters
|
|
1404
|
-
|
|
1405
|
-
###### o
|
|
1406
|
-
|
|
1407
|
-
`T`
|
|
1408
|
-
|
|
1409
|
-
Object on which to lock the attributes.
|
|
1410
|
-
|
|
1411
|
-
##### Returns
|
|
1412
|
-
|
|
1413
|
-
`Readonly`\<`T`\>
|
|
1414
|
-
|
|
1415
|
-
#### Call Signature
|
|
1416
|
-
|
|
1417
|
-
> `static` **freeze**\<`T`\>(`o`): `Readonly`\<`T`\>
|
|
1418
|
-
|
|
1419
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:234
|
|
1420
|
-
|
|
1421
|
-
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
1422
|
-
|
|
1423
|
-
##### Type Parameters
|
|
1424
|
-
|
|
1425
|
-
• **T**
|
|
1426
|
-
|
|
1427
|
-
##### Parameters
|
|
1428
|
-
|
|
1429
|
-
###### o
|
|
1430
|
-
|
|
1431
|
-
`T`
|
|
1432
|
-
|
|
1433
|
-
Object on which to lock the attributes.
|
|
1434
|
-
|
|
1435
|
-
##### Returns
|
|
1436
|
-
|
|
1437
|
-
`Readonly`\<`T`\>
|
|
1438
|
-
|
|
1439
|
-
***
|
|
1440
|
-
|
|
1441
|
-
### fromEntries()
|
|
1442
|
-
|
|
1443
|
-
#### Call Signature
|
|
1444
|
-
|
|
1445
|
-
> `static` **fromEntries**\<`T`\>(`entries`): `object`
|
|
1446
|
-
|
|
1447
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2019.object.d.ts:26
|
|
1448
|
-
|
|
1449
|
-
Returns an object created by key-value entries for properties and methods
|
|
1450
|
-
|
|
1451
|
-
##### Type Parameters
|
|
1452
|
-
|
|
1453
|
-
• **T** = `any`
|
|
1454
|
-
|
|
1455
|
-
##### Parameters
|
|
1456
|
-
|
|
1457
|
-
###### entries
|
|
1458
|
-
|
|
1459
|
-
`Iterable`\<readonly \[`PropertyKey`, `T`\]\>
|
|
1460
|
-
|
|
1461
|
-
An iterable object that contains key-value entries for properties and methods.
|
|
1462
|
-
|
|
1463
|
-
##### Returns
|
|
1464
|
-
|
|
1465
|
-
`object`
|
|
1466
|
-
|
|
1467
|
-
#### Call Signature
|
|
1468
|
-
|
|
1469
|
-
> `static` **fromEntries**(`entries`): `any`
|
|
1470
|
-
|
|
1471
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2019.object.d.ts:32
|
|
1472
|
-
|
|
1473
|
-
Returns an object created by key-value entries for properties and methods
|
|
1474
|
-
|
|
1475
|
-
##### Parameters
|
|
1476
|
-
|
|
1477
|
-
###### entries
|
|
1478
|
-
|
|
1479
|
-
`Iterable`\<readonly `any`[]\>
|
|
1480
|
-
|
|
1481
|
-
An iterable object that contains key-value entries for properties and methods.
|
|
1482
|
-
|
|
1483
|
-
##### Returns
|
|
1484
|
-
|
|
1485
|
-
`any`
|
|
1486
|
-
|
|
1487
|
-
***
|
|
1488
|
-
|
|
1489
|
-
### get()
|
|
1490
|
-
|
|
1491
|
-
> `static` **get**(`name`): [`ToolFunc`](ToolFunc.md)
|
|
1492
|
-
|
|
1493
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:61](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L61)
|
|
1494
|
-
|
|
1495
|
-
#### Parameters
|
|
1496
|
-
|
|
1497
|
-
##### name
|
|
1498
|
-
|
|
1499
|
-
`string`
|
|
1500
|
-
|
|
1501
|
-
#### Returns
|
|
1502
|
-
|
|
1503
|
-
[`ToolFunc`](ToolFunc.md)
|
|
1504
|
-
|
|
1505
|
-
***
|
|
1506
|
-
|
|
1507
|
-
### getAllByTag()
|
|
1508
|
-
|
|
1509
|
-
> `static` **getAllByTag**(`tagName`): [`ToolFunc`](ToolFunc.md)[]
|
|
1510
|
-
|
|
1511
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:93](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L93)
|
|
1512
|
-
|
|
1513
|
-
#### Parameters
|
|
1514
|
-
|
|
1515
|
-
##### tagName
|
|
1516
|
-
|
|
1517
|
-
`string`
|
|
1518
|
-
|
|
1519
|
-
#### Returns
|
|
1520
|
-
|
|
1521
|
-
[`ToolFunc`](ToolFunc.md)[]
|
|
1522
|
-
|
|
1523
|
-
***
|
|
1524
|
-
|
|
1525
|
-
### getByTag()
|
|
1526
|
-
|
|
1527
|
-
> `static` **getByTag**(`tagName`): `undefined` \| [`ToolFunc`](ToolFunc.md)
|
|
1528
|
-
|
|
1529
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:73](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L73)
|
|
1530
|
-
|
|
1531
|
-
#### Parameters
|
|
1532
|
-
|
|
1533
|
-
##### tagName
|
|
1534
|
-
|
|
1535
|
-
`string`
|
|
1536
|
-
|
|
1537
|
-
#### Returns
|
|
1538
|
-
|
|
1539
|
-
`undefined` \| [`ToolFunc`](ToolFunc.md)
|
|
1540
|
-
|
|
1541
|
-
***
|
|
1542
|
-
|
|
1543
|
-
### getFunc()
|
|
1544
|
-
|
|
1545
|
-
> `static` **getFunc**(`name`): `any`
|
|
1546
|
-
|
|
1547
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:134](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L134)
|
|
1548
|
-
|
|
1549
|
-
#### Parameters
|
|
1550
|
-
|
|
1551
|
-
##### name
|
|
1552
|
-
|
|
1553
|
-
`string`
|
|
1554
|
-
|
|
1555
|
-
#### Returns
|
|
1556
|
-
|
|
1557
|
-
`any`
|
|
1558
|
-
|
|
1559
|
-
***
|
|
1560
|
-
|
|
1561
|
-
### getFuncWithPos()
|
|
1562
|
-
|
|
1563
|
-
> `static` **getFuncWithPos**(`name`): `any`
|
|
1564
|
-
|
|
1565
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:155](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L155)
|
|
1566
|
-
|
|
1567
|
-
#### Parameters
|
|
1568
|
-
|
|
1569
|
-
##### name
|
|
1570
|
-
|
|
1571
|
-
`string`
|
|
1572
|
-
|
|
1573
|
-
#### Returns
|
|
1574
|
-
|
|
1575
|
-
`any`
|
|
1576
|
-
|
|
1577
|
-
***
|
|
1578
|
-
|
|
1579
|
-
### getOwnPropertyDescriptor()
|
|
1580
|
-
|
|
1581
|
-
> `static` **getOwnPropertyDescriptor**(`o`, `p`): `undefined` \| `PropertyDescriptor`
|
|
1582
|
-
|
|
1583
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:175
|
|
1584
|
-
|
|
1585
|
-
Gets the own property descriptor of the specified object.
|
|
1586
|
-
An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
|
|
1587
|
-
|
|
1588
|
-
#### Parameters
|
|
1589
|
-
|
|
1590
|
-
##### o
|
|
1591
|
-
|
|
1592
|
-
`any`
|
|
1593
|
-
|
|
1594
|
-
Object that contains the property.
|
|
1595
|
-
|
|
1596
|
-
##### p
|
|
1597
|
-
|
|
1598
|
-
`PropertyKey`
|
|
1599
|
-
|
|
1600
|
-
Name of the property.
|
|
1601
|
-
|
|
1602
|
-
#### Returns
|
|
1603
|
-
|
|
1604
|
-
`undefined` \| `PropertyDescriptor`
|
|
1605
|
-
|
|
1606
|
-
***
|
|
1607
|
-
|
|
1608
|
-
### getOwnPropertyDescriptors()
|
|
1609
|
-
|
|
1610
|
-
> `static` **getOwnPropertyDescriptors**\<`T`\>(`o`): \{ \[P in string \| number \| symbol\]: TypedPropertyDescriptor\<T\[P\]\> \} & `object`
|
|
1611
|
-
|
|
1612
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:48
|
|
1613
|
-
|
|
1614
|
-
Returns an object containing all own property descriptors of an object
|
|
1615
|
-
|
|
1616
|
-
#### Type Parameters
|
|
1617
|
-
|
|
1618
|
-
• **T**
|
|
1619
|
-
|
|
1620
|
-
#### Parameters
|
|
1621
|
-
|
|
1622
|
-
##### o
|
|
1623
|
-
|
|
1624
|
-
`T`
|
|
1625
|
-
|
|
1626
|
-
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
1627
|
-
|
|
1628
|
-
#### Returns
|
|
1629
|
-
|
|
1630
|
-
\{ \[P in string \| number \| symbol\]: TypedPropertyDescriptor\<T\[P\]\> \} & `object`
|
|
1631
|
-
|
|
1632
|
-
***
|
|
1633
|
-
|
|
1634
|
-
### getOwnPropertyNames()
|
|
1635
|
-
|
|
1636
|
-
> `static` **getOwnPropertyNames**(`o`): `string`[]
|
|
1637
|
-
|
|
1638
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:182
|
|
1639
|
-
|
|
1640
|
-
Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
|
|
1641
|
-
on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
|
|
1642
|
-
|
|
1643
|
-
#### Parameters
|
|
1644
|
-
|
|
1645
|
-
##### o
|
|
1646
|
-
|
|
1647
|
-
`any`
|
|
1648
|
-
|
|
1649
|
-
Object that contains the own properties.
|
|
1650
|
-
|
|
1651
|
-
#### Returns
|
|
1652
|
-
|
|
1653
|
-
`string`[]
|
|
1654
|
-
|
|
1655
|
-
***
|
|
1656
|
-
|
|
1657
|
-
### getOwnPropertySymbols()
|
|
1658
|
-
|
|
1659
|
-
> `static` **getOwnPropertySymbols**(`o`): `symbol`[]
|
|
1660
|
-
|
|
1661
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:319
|
|
1662
|
-
|
|
1663
|
-
Returns an array of all symbol properties found directly on object o.
|
|
1664
|
-
|
|
1665
|
-
#### Parameters
|
|
1666
|
-
|
|
1667
|
-
##### o
|
|
1668
|
-
|
|
1669
|
-
`any`
|
|
1670
|
-
|
|
1671
|
-
Object to retrieve the symbols from.
|
|
1672
|
-
|
|
1673
|
-
#### Returns
|
|
1674
|
-
|
|
1675
|
-
`symbol`[]
|
|
1676
|
-
|
|
1677
|
-
***
|
|
1678
|
-
|
|
1679
|
-
### getProperties()
|
|
1680
|
-
|
|
1681
|
-
> `static` **getProperties**(): `PropDescriptors`
|
|
1682
|
-
|
|
1683
|
-
Defined in: node\_modules/.pnpm/property-manager@2.0.0/node\_modules/property-manager/lib/advance.d.ts:10
|
|
1684
|
-
|
|
1685
|
-
get all properties descriptor include inherited.
|
|
1686
|
-
|
|
1687
|
-
#### Returns
|
|
1688
|
-
|
|
1689
|
-
`PropDescriptors`
|
|
1690
|
-
|
|
1691
|
-
***
|
|
1692
|
-
|
|
1693
|
-
### getPrototypeOf()
|
|
1694
|
-
|
|
1695
|
-
> `static` **getPrototypeOf**(`o`): `any`
|
|
1696
|
-
|
|
1697
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:167
|
|
1698
|
-
|
|
1699
|
-
Returns the prototype of an object.
|
|
1700
|
-
|
|
1701
|
-
#### Parameters
|
|
1702
|
-
|
|
1703
|
-
##### o
|
|
1704
|
-
|
|
1705
|
-
`any`
|
|
1706
|
-
|
|
1707
|
-
The object that references the prototype.
|
|
1708
|
-
|
|
1709
|
-
#### Returns
|
|
1710
|
-
|
|
1711
|
-
`any`
|
|
1712
|
-
|
|
1713
|
-
***
|
|
1714
|
-
|
|
1715
|
-
### hasAsyncFeature()
|
|
1716
|
-
|
|
1717
|
-
> `static` **hasAsyncFeature**(`feature`): `boolean`
|
|
1718
|
-
|
|
1719
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:111](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L111)
|
|
1720
|
-
|
|
1721
|
-
#### Parameters
|
|
1722
|
-
|
|
1723
|
-
##### feature
|
|
1724
|
-
|
|
1725
|
-
[`AsyncFeatureBits`](../enumerations/AsyncFeatureBits.md)
|
|
1726
|
-
|
|
1727
|
-
#### Returns
|
|
1728
|
-
|
|
1729
|
-
`boolean`
|
|
1730
|
-
|
|
1731
|
-
***
|
|
1732
|
-
|
|
1733
|
-
### hasOwn()
|
|
1734
|
-
|
|
1735
|
-
> `static` **hasOwn**(`o`, `v`): `boolean`
|
|
1736
|
-
|
|
1737
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2022.object.d.ts:25
|
|
1738
|
-
|
|
1739
|
-
Determines whether an object has a property with the specified name.
|
|
1740
|
-
|
|
1741
|
-
#### Parameters
|
|
1742
|
-
|
|
1743
|
-
##### o
|
|
1744
|
-
|
|
1745
|
-
`object`
|
|
1746
|
-
|
|
1747
|
-
An object.
|
|
1748
|
-
|
|
1749
|
-
##### v
|
|
1750
|
-
|
|
1751
|
-
`PropertyKey`
|
|
1752
|
-
|
|
1753
|
-
A property name.
|
|
1754
|
-
|
|
1755
|
-
#### Returns
|
|
1756
|
-
|
|
1757
|
-
`boolean`
|
|
1758
|
-
|
|
1759
|
-
***
|
|
1760
|
-
|
|
1761
|
-
### is()
|
|
1762
|
-
|
|
1763
|
-
> `static` **is**(`value1`, `value2`): `boolean`
|
|
1764
|
-
|
|
1765
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:332
|
|
1766
|
-
|
|
1767
|
-
Returns true if the values are the same value, false otherwise.
|
|
1768
|
-
|
|
1769
|
-
#### Parameters
|
|
1770
|
-
|
|
1771
|
-
##### value1
|
|
1772
|
-
|
|
1773
|
-
`any`
|
|
1774
|
-
|
|
1775
|
-
The first value.
|
|
1776
|
-
|
|
1777
|
-
##### value2
|
|
1778
|
-
|
|
1779
|
-
`any`
|
|
1780
|
-
|
|
1781
|
-
The second value.
|
|
1782
|
-
|
|
1783
|
-
#### Returns
|
|
1784
|
-
|
|
1785
|
-
`boolean`
|
|
1786
|
-
|
|
1787
|
-
***
|
|
1788
|
-
|
|
1789
|
-
### isExtensible()
|
|
1790
|
-
|
|
1791
|
-
> `static` **isExtensible**(`o`): `boolean`
|
|
1792
|
-
|
|
1793
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:258
|
|
1794
|
-
|
|
1795
|
-
Returns a value that indicates whether new properties can be added to an object.
|
|
1796
|
-
|
|
1797
|
-
#### Parameters
|
|
1798
|
-
|
|
1799
|
-
##### o
|
|
1800
|
-
|
|
1801
|
-
`any`
|
|
1802
|
-
|
|
1803
|
-
Object to test.
|
|
1804
|
-
|
|
1805
|
-
#### Returns
|
|
1806
|
-
|
|
1807
|
-
`boolean`
|
|
1808
|
-
|
|
1809
|
-
***
|
|
1810
|
-
|
|
1811
|
-
### isFrozen()
|
|
1812
|
-
|
|
1813
|
-
> `static` **isFrozen**(`o`): `boolean`
|
|
1814
|
-
|
|
1815
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:252
|
|
1816
|
-
|
|
1817
|
-
Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
|
|
1818
|
-
|
|
1819
|
-
#### Parameters
|
|
1820
|
-
|
|
1821
|
-
##### o
|
|
1822
|
-
|
|
1823
|
-
`any`
|
|
1824
|
-
|
|
1825
|
-
Object to test.
|
|
1826
|
-
|
|
1827
|
-
#### Returns
|
|
1828
|
-
|
|
1829
|
-
`boolean`
|
|
1830
|
-
|
|
1831
|
-
***
|
|
1832
|
-
|
|
1833
|
-
### isSealed()
|
|
1834
|
-
|
|
1835
|
-
> `static` **isSealed**(`o`): `boolean`
|
|
1836
|
-
|
|
1837
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:246
|
|
1838
|
-
|
|
1839
|
-
Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
|
|
1840
|
-
|
|
1841
|
-
#### Parameters
|
|
1842
|
-
|
|
1843
|
-
##### o
|
|
1844
|
-
|
|
1845
|
-
`any`
|
|
1846
|
-
|
|
1847
|
-
Object to test.
|
|
1848
|
-
|
|
1849
|
-
#### Returns
|
|
1850
|
-
|
|
1851
|
-
`boolean`
|
|
1852
|
-
|
|
1853
|
-
***
|
|
1854
|
-
|
|
1855
|
-
### keys()
|
|
1856
|
-
|
|
1857
|
-
#### Call Signature
|
|
1858
|
-
|
|
1859
|
-
> `static` **keys**(`o`): `string`[]
|
|
1860
|
-
|
|
1861
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:264
|
|
1862
|
-
|
|
1863
|
-
Returns the names of the enumerable string properties and methods of an object.
|
|
1864
|
-
|
|
1865
|
-
##### Parameters
|
|
1866
|
-
|
|
1867
|
-
###### o
|
|
1868
|
-
|
|
1869
|
-
`object`
|
|
1870
|
-
|
|
1871
|
-
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
1872
|
-
|
|
1873
|
-
##### Returns
|
|
1874
|
-
|
|
1875
|
-
`string`[]
|
|
1876
|
-
|
|
1877
|
-
#### Call Signature
|
|
1878
|
-
|
|
1879
|
-
> `static` **keys**(`o`): `string`[]
|
|
1880
|
-
|
|
1881
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:325
|
|
1882
|
-
|
|
1883
|
-
Returns the names of the enumerable string properties and methods of an object.
|
|
1884
|
-
|
|
1885
|
-
##### Parameters
|
|
1886
|
-
|
|
1887
|
-
###### o
|
|
1888
|
-
|
|
1889
|
-
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
1890
|
-
|
|
1891
|
-
##### Returns
|
|
1892
|
-
|
|
1893
|
-
`string`[]
|
|
1894
|
-
|
|
1895
|
-
***
|
|
1896
|
-
|
|
1897
|
-
### list()
|
|
1898
|
-
|
|
1899
|
-
> `static` **list**(): [`Funcs`](../interfaces/Funcs.md)
|
|
1900
|
-
|
|
1901
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:69](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L69)
|
|
1902
|
-
|
|
1903
|
-
#### Returns
|
|
1904
|
-
|
|
1905
|
-
[`Funcs`](../interfaces/Funcs.md)
|
|
1906
|
-
|
|
1907
|
-
***
|
|
1908
|
-
|
|
1909
|
-
### preventExtensions()
|
|
1910
|
-
|
|
1911
|
-
> `static` **preventExtensions**\<`T`\>(`o`): `T`
|
|
1912
|
-
|
|
1913
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:240
|
|
1914
|
-
|
|
1915
|
-
Prevents the addition of new properties to an object.
|
|
1916
|
-
|
|
1917
|
-
#### Type Parameters
|
|
1918
|
-
|
|
1919
|
-
• **T**
|
|
1920
|
-
|
|
1921
|
-
#### Parameters
|
|
1922
|
-
|
|
1923
|
-
##### o
|
|
1924
|
-
|
|
1925
|
-
`T`
|
|
1926
|
-
|
|
1927
|
-
Object to make non-extensible.
|
|
1928
|
-
|
|
1929
|
-
#### Returns
|
|
1930
|
-
|
|
1931
|
-
`T`
|
|
1932
|
-
|
|
1933
|
-
***
|
|
1934
|
-
|
|
1935
|
-
### register()
|
|
1936
|
-
|
|
1937
|
-
#### Call Signature
|
|
1938
|
-
|
|
1939
|
-
> `static` **register**(`name`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
1940
|
-
|
|
1941
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:160](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L160)
|
|
1942
|
-
|
|
1943
|
-
##### Parameters
|
|
1944
|
-
|
|
1945
|
-
###### name
|
|
1946
|
-
|
|
1947
|
-
`string`
|
|
1948
|
-
|
|
1949
|
-
###### options
|
|
1950
|
-
|
|
1951
|
-
[`FuncItem`](../interfaces/FuncItem.md)
|
|
1952
|
-
|
|
1953
|
-
##### Returns
|
|
1954
|
-
|
|
1955
|
-
`boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
1956
|
-
|
|
1957
|
-
#### Call Signature
|
|
1958
|
-
|
|
1959
|
-
> `static` **register**(`func`, `options`): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
1960
|
-
|
|
1961
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:161](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L161)
|
|
1962
|
-
|
|
1963
|
-
##### Parameters
|
|
1964
|
-
|
|
1965
|
-
###### func
|
|
1966
|
-
|
|
1967
|
-
`Function`
|
|
1968
|
-
|
|
1969
|
-
###### options
|
|
1970
|
-
|
|
1971
|
-
[`FuncItem`](../interfaces/FuncItem.md)
|
|
1972
|
-
|
|
1973
|
-
##### Returns
|
|
1974
|
-
|
|
1975
|
-
`boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
1976
|
-
|
|
1977
|
-
#### Call Signature
|
|
1978
|
-
|
|
1979
|
-
> `static` **register**(`name`, `options`?): `boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
1980
|
-
|
|
1981
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:162](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L162)
|
|
1982
|
-
|
|
1983
|
-
##### Parameters
|
|
1984
|
-
|
|
1985
|
-
###### name
|
|
1986
|
-
|
|
1987
|
-
`string` | `Function` | [`ToolFunc`](ToolFunc.md) | [`FuncItem`](../interfaces/FuncItem.md)
|
|
1988
|
-
|
|
1989
|
-
###### options?
|
|
1990
|
-
|
|
1991
|
-
[`FuncItem`](../interfaces/FuncItem.md)
|
|
1992
|
-
|
|
1993
|
-
##### Returns
|
|
1994
|
-
|
|
1995
|
-
`boolean` \| [`ToolFunc`](ToolFunc.md)
|
|
1996
|
-
|
|
1997
|
-
***
|
|
1998
|
-
|
|
1999
|
-
### run()
|
|
2000
|
-
|
|
2001
|
-
> `static` **run**(`name`, `params`?): `Promise`\<`any`\>
|
|
2002
|
-
|
|
2003
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:118](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L118)
|
|
2004
|
-
|
|
2005
|
-
#### Parameters
|
|
2006
|
-
|
|
2007
|
-
##### name
|
|
2008
|
-
|
|
2009
|
-
`string`
|
|
2010
|
-
|
|
2011
|
-
##### params?
|
|
2012
|
-
|
|
2013
|
-
`any`
|
|
2014
|
-
|
|
2015
|
-
#### Returns
|
|
2016
|
-
|
|
2017
|
-
`Promise`\<`any`\>
|
|
2018
|
-
|
|
2019
|
-
***
|
|
2020
|
-
|
|
2021
|
-
### runSync()
|
|
2022
|
-
|
|
2023
|
-
> `static` **runSync**(`name`, `params`?): `any`
|
|
2024
|
-
|
|
2025
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:126](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L126)
|
|
2026
|
-
|
|
2027
|
-
#### Parameters
|
|
2028
|
-
|
|
2029
|
-
##### name
|
|
2030
|
-
|
|
2031
|
-
`string`
|
|
2032
|
-
|
|
2033
|
-
##### params?
|
|
2034
|
-
|
|
2035
|
-
`any`
|
|
2036
|
-
|
|
2037
|
-
#### Returns
|
|
2038
|
-
|
|
2039
|
-
`any`
|
|
2040
|
-
|
|
2041
|
-
***
|
|
2042
|
-
|
|
2043
|
-
### runWithPos()
|
|
2044
|
-
|
|
2045
|
-
> `static` **runWithPos**(`name`, ...`params`): `Promise`\<`any`\>
|
|
2046
|
-
|
|
2047
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:139](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L139)
|
|
2048
|
-
|
|
2049
|
-
#### Parameters
|
|
2050
|
-
|
|
2051
|
-
##### name
|
|
2052
|
-
|
|
2053
|
-
`string`
|
|
2054
|
-
|
|
2055
|
-
##### params
|
|
2056
|
-
|
|
2057
|
-
...`any`[]
|
|
2058
|
-
|
|
2059
|
-
#### Returns
|
|
2060
|
-
|
|
2061
|
-
`Promise`\<`any`\>
|
|
2062
|
-
|
|
2063
|
-
***
|
|
2064
|
-
|
|
2065
|
-
### runWithPosSync()
|
|
2066
|
-
|
|
2067
|
-
> `static` **runWithPosSync**(`name`, ...`params`): `any`
|
|
2068
|
-
|
|
2069
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:147](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L147)
|
|
2070
|
-
|
|
2071
|
-
#### Parameters
|
|
2072
|
-
|
|
2073
|
-
##### name
|
|
2074
|
-
|
|
2075
|
-
`string`
|
|
2076
|
-
|
|
2077
|
-
##### params
|
|
2078
|
-
|
|
2079
|
-
...`any`[]
|
|
2080
|
-
|
|
2081
|
-
#### Returns
|
|
2082
|
-
|
|
2083
|
-
`any`
|
|
2084
|
-
|
|
2085
|
-
***
|
|
2086
|
-
|
|
2087
|
-
### seal()
|
|
2088
|
-
|
|
2089
|
-
> `static` **seal**\<`T`\>(`o`): `T`
|
|
2090
|
-
|
|
2091
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es5.d.ts:216
|
|
2092
|
-
|
|
2093
|
-
Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
|
|
2094
|
-
|
|
2095
|
-
#### Type Parameters
|
|
2096
|
-
|
|
2097
|
-
• **T**
|
|
2098
|
-
|
|
2099
|
-
#### Parameters
|
|
2100
|
-
|
|
2101
|
-
##### o
|
|
2102
|
-
|
|
2103
|
-
`T`
|
|
2104
|
-
|
|
2105
|
-
Object on which to lock the attributes.
|
|
2106
|
-
|
|
2107
|
-
#### Returns
|
|
2108
|
-
|
|
2109
|
-
`T`
|
|
2110
|
-
|
|
2111
|
-
***
|
|
2112
|
-
|
|
2113
|
-
### setPrototypeOf()
|
|
2114
|
-
|
|
2115
|
-
> `static` **setPrototypeOf**(`o`, `proto`): `any`
|
|
2116
|
-
|
|
2117
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2015.core.d.ts:339
|
|
2118
|
-
|
|
2119
|
-
Sets the prototype of a specified object o to object proto or null. Returns the object o.
|
|
2120
|
-
|
|
2121
|
-
#### Parameters
|
|
2122
|
-
|
|
2123
|
-
##### o
|
|
2124
|
-
|
|
2125
|
-
`any`
|
|
2126
|
-
|
|
2127
|
-
The object to change its prototype.
|
|
2128
|
-
|
|
2129
|
-
##### proto
|
|
2130
|
-
|
|
2131
|
-
The value of the new prototype or null.
|
|
2132
|
-
|
|
2133
|
-
`null` | `object`
|
|
2134
|
-
|
|
2135
|
-
#### Returns
|
|
2136
|
-
|
|
2137
|
-
`any`
|
|
2138
|
-
|
|
2139
|
-
***
|
|
2140
|
-
|
|
2141
|
-
### unregister()
|
|
2142
|
-
|
|
2143
|
-
> `static` **unregister**(`name`): `undefined` \| [`ToolFunc`](ToolFunc.md)
|
|
2144
|
-
|
|
2145
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:207](https://github.com/isdk/ai-tool.js/blob/c084189f913fb955b91b492de68bd07ce78f8c82/src/tool-func.ts#L207)
|
|
2146
|
-
|
|
2147
|
-
#### Parameters
|
|
2148
|
-
|
|
2149
|
-
##### name
|
|
2150
|
-
|
|
2151
|
-
`string`
|
|
2152
|
-
|
|
2153
|
-
#### Returns
|
|
2154
|
-
|
|
2155
|
-
`undefined` \| [`ToolFunc`](ToolFunc.md)
|
|
2156
|
-
|
|
2157
|
-
***
|
|
2158
|
-
|
|
2159
|
-
### values()
|
|
2160
|
-
|
|
2161
|
-
#### Call Signature
|
|
2162
|
-
|
|
2163
|
-
> `static` **values**\<`T`\>(`o`): `T`[]
|
|
2164
|
-
|
|
2165
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:24
|
|
2166
|
-
|
|
2167
|
-
Returns an array of values of the enumerable own properties of an object
|
|
2168
|
-
|
|
2169
|
-
##### Type Parameters
|
|
2170
|
-
|
|
2171
|
-
• **T**
|
|
2172
|
-
|
|
2173
|
-
##### Parameters
|
|
2174
|
-
|
|
2175
|
-
###### o
|
|
2176
|
-
|
|
2177
|
-
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
2178
|
-
|
|
2179
|
-
\{\} | `ArrayLike`\<`T`\>
|
|
2180
|
-
|
|
2181
|
-
##### Returns
|
|
2182
|
-
|
|
2183
|
-
`T`[]
|
|
2184
|
-
|
|
2185
|
-
#### Call Signature
|
|
2186
|
-
|
|
2187
|
-
> `static` **values**(`o`): `any`[]
|
|
2188
|
-
|
|
2189
|
-
Defined in: node\_modules/.pnpm/typescript@5.7.3/node\_modules/typescript/lib/lib.es2017.object.d.ts:30
|
|
2190
|
-
|
|
2191
|
-
Returns an array of values of the enumerable own properties of an object
|
|
2192
|
-
|
|
2193
|
-
##### Parameters
|
|
2194
|
-
|
|
2195
|
-
###### o
|
|
2196
|
-
|
|
2197
|
-
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
|
|
2198
|
-
|
|
2199
|
-
##### Returns
|
|
2200
|
-
|
|
2201
|
-
`any`[]
|