@isdk/ai-tool 0.5.2 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/funcs.js +1 -1
- package/dist/index.js +1 -1
- package/docs/README.md +250 -0
- package/docs/_media/CONTRIBUTING.md +18 -0
- package/docs/_media/LICENSE-MIT +22 -0
- package/docs/classes/AbortError.md +366 -0
- package/docs/classes/AlreadyExistsError.md +346 -0
- package/docs/classes/BaseError.md +359 -0
- package/docs/classes/BinarySemaphore.md +418 -0
- package/docs/classes/CancelableAbility.md +467 -0
- package/docs/classes/ClientTools.md +2715 -0
- package/docs/classes/CommonError.md +377 -0
- package/docs/classes/ConfigFile.md +353 -0
- package/docs/classes/EnvPromptTemplate.md +1158 -0
- package/docs/classes/EventClient.md +3149 -0
- package/docs/classes/EventEmitter.md +299 -0
- package/docs/classes/EventServer.md +3175 -0
- package/docs/classes/EventToolFunc.md +2557 -0
- package/docs/classes/FStringPromptTemplate.md +1158 -0
- package/docs/classes/FewShotPromptTemplate.md +1180 -0
- package/docs/classes/GolangPromptTemplate.md +1158 -0
- package/docs/classes/HFEnvironment.md +184 -0
- package/docs/classes/HFInterpreter.md +77 -0
- package/docs/classes/HFTemplate.md +67 -0
- package/docs/classes/HfPromptTemplate.md +1158 -0
- package/docs/classes/IntSet.md +216 -0
- package/docs/classes/LRUCache.md +601 -0
- package/docs/classes/NotFoundError.md +346 -0
- package/docs/classes/NotImplementationError.md +346 -0
- package/docs/classes/PromptExampleSelector.md +195 -0
- package/docs/classes/PromptTemplate.md +1088 -0
- package/docs/classes/ReadableStreamError.md +366 -0
- package/docs/classes/ResClientTools.md +2431 -0
- package/docs/classes/ResServerTools.md +2407 -0
- package/docs/classes/SSEChannel.md +270 -0
- package/docs/classes/Semaphore.md +538 -0
- package/docs/classes/ServerTools.md +2623 -0
- package/docs/classes/SignalGate.md +182 -0
- package/docs/classes/TaskAbortController.md +131 -0
- package/docs/classes/ToolFunc.md +2177 -0
- package/docs/classes/YamlTypeBaseObject.md +31 -0
- package/docs/enumerations/AsyncFeatureBits.md +33 -0
- package/docs/enumerations/AsyncFeatures.md +33 -0
- package/docs/enumerations/ErrorCode.md +177 -0
- package/docs/enumerations/HashAlgorithm.md +97 -0
- package/docs/functions/AIArgProcessor.md +33 -0
- package/docs/functions/AIStream.md +52 -0
- package/docs/functions/ChoiceArgProcessor.md +33 -0
- package/docs/functions/ObjectArgsToArgsInfo.md +29 -0
- package/docs/functions/RateLimit.md +37 -0
- package/docs/functions/TemplateArgProcessor.md +33 -0
- package/docs/functions/assignDirs.md +33 -0
- package/docs/functions/backendEventable.md +29 -0
- package/docs/functions/beforeShutdown.md +29 -0
- package/docs/functions/canonicalize.md +21 -0
- package/docs/functions/completeSentences.md +25 -0
- package/docs/functions/concatText.md +25 -0
- package/docs/functions/countLLMTokens.md +25 -0
- package/docs/functions/countRegexMatches.md +35 -0
- package/docs/functions/createAbilityInjector.md +119 -0
- package/docs/functions/createCallbacksTransformer.md +49 -0
- package/docs/functions/createEmptyReadableStream.md +21 -0
- package/docs/functions/createEndWithRepetitionDetector.md +31 -0
- package/docs/functions/createError.md +39 -0
- package/docs/functions/createEventStreamTransformer.md +33 -0
- package/docs/functions/createHfValueFunc.md +31 -0
- package/docs/functions/createLRUCache.md +25 -0
- package/docs/functions/createYamlObjectTag.md +25 -0
- package/docs/functions/dateToText.md +25 -0
- package/docs/functions/decodeCharset.md +25 -0
- package/docs/functions/detectCharset.md +25 -0
- package/docs/functions/encodeLLMTokens.md +25 -0
- package/docs/functions/ensureQuoted.md +25 -0
- package/docs/functions/eventable.md +82 -0
- package/docs/functions/expandConfig.md +25 -0
- package/docs/functions/expandEnv.md +40 -0
- package/docs/functions/expandObjEnv.md +58 -0
- package/docs/functions/expandPath.md +25 -0
- package/docs/functions/extNameLevel.md +43 -0
- package/docs/functions/fileIsExists.md +34 -0
- package/docs/functions/filenameReservedRegex.md +20 -0
- package/docs/functions/filterValidFnScope.md +21 -0
- package/docs/functions/findIndexNonEmptyFrom.md +25 -0
- package/docs/functions/findPort.md +25 -0
- package/docs/functions/formatISO.md +69 -0
- package/docs/functions/formatTextWithSpace.md +63 -0
- package/docs/functions/getAllEnumKeys.md +31 -0
- package/docs/functions/getConfigFileNames.md +25 -0
- package/docs/functions/getConfigs.md +25 -0
- package/docs/functions/getEnvVairables.md +21 -0
- package/docs/functions/getFileMetaInfo.md +21 -0
- package/docs/functions/getHashAlgoBySize.md +21 -0
- package/docs/functions/getKeysPath.md +38 -0
- package/docs/functions/getLLMTokenizer.md +21 -0
- package/docs/functions/getMultiLevelExtname.md +33 -0
- package/docs/functions/getPackageDir.md +39 -0
- package/docs/functions/getRealFilepath.md +34 -0
- package/docs/functions/getResponseErrorReadableStream.md +21 -0
- package/docs/functions/getXDGConfigs.md +37 -0
- package/docs/functions/hasDirectoryIn.md +40 -0
- package/docs/functions/hash.md +25 -0
- package/docs/functions/hashFile.md +25 -0
- package/docs/functions/hashStream.md +25 -0
- package/docs/functions/hfParse.md +24 -0
- package/docs/functions/hfTokenize.md +27 -0
- package/docs/functions/initShutdown.md +15 -0
- package/docs/functions/interpolateEnv.md +29 -0
- package/docs/functions/interpolateFString.md +29 -0
- package/docs/functions/interpolateGolangTemplate.md +35 -0
- package/docs/functions/isLangUsingSpaces.md +21 -0
- package/docs/functions/isListItemString.md +21 -0
- package/docs/functions/isModelNameMatched.md +47 -0
- package/docs/functions/isPunctuationChar.md +36 -0
- package/docs/functions/isQuoted.md +21 -0
- package/docs/functions/isRegExp.md +21 -0
- package/docs/functions/isSameString.md +36 -0
- package/docs/functions/isSectionString.md +25 -0
- package/docs/functions/isSentenceEnding.md +21 -0
- package/docs/functions/isSepLineString.md +21 -0
- package/docs/functions/isStrWrapped.md +25 -0
- package/docs/functions/isSubdirectory.md +41 -0
- package/docs/functions/isTitleString.md +25 -0
- package/docs/functions/isValidFilename.md +38 -0
- package/docs/functions/isValidFilepath.md +27 -0
- package/docs/functions/isWebStream.md +21 -0
- package/docs/functions/jsonFilterToWhere.md +47 -0
- package/docs/functions/jsonToMarkdownStr.md +39 -0
- package/docs/functions/loadAIConfig.md +21 -0
- package/docs/functions/loadConfig.md +25 -0
- package/docs/functions/loadConfigFile.md +25 -0
- package/docs/functions/loadFileFromPaths.md +64 -0
- package/docs/functions/loadTextFromPaths.md +37 -0
- package/docs/functions/lrucache.md +35 -0
- package/docs/functions/makeToolFuncCancelable.md +29 -0
- package/docs/functions/matchUrlProtocol.md +48 -0
- package/docs/functions/memoize.md +29 -0
- package/docs/functions/messagesToText.md +21 -0
- package/docs/functions/paramsSizeToScaleStr.md +34 -0
- package/docs/functions/parseCommand.md +29 -0
- package/docs/functions/parseDateFormat.md +362 -0
- package/docs/functions/parseFString.md +26 -0
- package/docs/functions/parseISO.md +70 -0
- package/docs/functions/parseJsJson.md +40 -0
- package/docs/functions/parseJsJsonSimpleSync.md +25 -0
- package/docs/functions/parseObjectArgInfo.md +33 -0
- package/docs/functions/parseObjectArgumentInfos.md +29 -0
- package/docs/functions/parseObjectArguments.md +72 -0
- package/docs/functions/parseObjectArgumentsAsArgInfos.md +46 -0
- package/docs/functions/parseYaml.md +25 -0
- package/docs/functions/quoteStr.md +21 -0
- package/docs/functions/reControlCharsRegex.md +19 -0
- package/docs/functions/readFilenamesRecursiveSync.md +53 -0
- package/docs/functions/readTextFileChunks.md +53 -0
- package/docs/functions/readTextFileChunksEx.md +25 -0
- package/docs/functions/readableFromAsyncIterable.md +28 -0
- package/docs/functions/registerCoreTools.md +15 -0
- package/docs/functions/registerYamlTag.md +21 -0
- package/docs/functions/removeMarkdownBold.md +25 -0
- package/docs/functions/removeMarkdownBoldAndItalic.md +25 -0
- package/docs/functions/removeMarkdownItalic.md +25 -0
- package/docs/functions/replaceWithPlaceholder.md +43 -0
- package/docs/functions/restoreFromPlacehoders.md +49 -0
- package/docs/functions/sanitizeFilename.md +39 -0
- package/docs/functions/sanitizeFilepath.md +33 -0
- package/docs/functions/saveConfigFile.md +29 -0
- package/docs/functions/scaleStrToParamsSize.md +27 -0
- package/docs/functions/shutdown.md +33 -0
- package/docs/functions/simplifyObjectArguments.md +21 -0
- package/docs/functions/sortedValues.md +25 -0
- package/docs/functions/splitChunks.md +25 -0
- package/docs/functions/splitParagraph.md +34 -0
- package/docs/functions/splitSentence.md +39 -0
- package/docs/functions/stringifyYaml.md +25 -0
- package/docs/functions/stripConsoleColor.md +21 -0
- package/docs/functions/textToDate.md +25 -0
- package/docs/functions/throwError.md +41 -0
- package/docs/functions/toDate.md +74 -0
- package/docs/functions/toDateTime.md +21 -0
- package/docs/functions/toRegExp.md +34 -0
- package/docs/functions/trimStartOfStreamHelper.md +41 -0
- package/docs/functions/truncTo.md +51 -0
- package/docs/functions/truncateByToken.md +25 -0
- package/docs/functions/truncateToTokenLimit.md +46 -0
- package/docs/functions/truncateToTokenLimitEx.md +25 -0
- package/docs/functions/uuid.md +25 -0
- package/docs/functions/uuidParse.md +21 -0
- package/docs/functions/uuidStringify.md +25 -0
- package/docs/functions/uuidValidate.md +21 -0
- package/docs/functions/uuidVersion.md +21 -0
- package/docs/functions/uuidv1.md +55 -0
- package/docs/functions/uuidv4.md +55 -0
- package/docs/functions/uuidv5.md +63 -0
- package/docs/functions/wait.md +21 -0
- package/docs/functions/wrapEventEmitter.md +27 -0
- package/docs/functions/xxhash.md +29 -0
- package/docs/functions/xxhash32.md +25 -0
- package/docs/functions/xxhash64.md +25 -0
- package/docs/functions/xxhashAsStr.md +29 -0
- package/docs/globals.md +329 -0
- package/docs/interfaces/AIChatAssistantMessageParam.md +129 -0
- package/docs/interfaces/AIChatContentPartImage.md +29 -0
- package/docs/interfaces/AIChatContentPartText.md +25 -0
- package/docs/interfaces/AIChatMessageParamBase.md +68 -0
- package/docs/interfaces/AIChatMessageToolCall.md +41 -0
- package/docs/interfaces/AIChatSystemMessageParam.md +105 -0
- package/docs/interfaces/AIChatToolChoiceFuncObject.md +37 -0
- package/docs/interfaces/AIChatToolChoiceObject.md +25 -0
- package/docs/interfaces/AIChatToolFunc.md +41 -0
- package/docs/interfaces/AIChatToolFuncParam.md +37 -0
- package/docs/interfaces/AIChatToolMessageParam.md +113 -0
- package/docs/interfaces/AIChatToolParam.md +25 -0
- package/docs/interfaces/AIChatToolTypeObject.md +17 -0
- package/docs/interfaces/AIChatUserMessageParam.md +137 -0
- package/docs/interfaces/AIChoiceConfig.md +65 -0
- package/docs/interfaces/AIResult.md +65 -0
- package/docs/interfaces/AIStreamParser.md +43 -0
- package/docs/interfaces/AIStreamParserOptions.md +21 -0
- package/docs/interfaces/BaseFunc.md +145 -0
- package/docs/interfaces/BaseFuncItem.md +93 -0
- package/docs/interfaces/BinarySemaphoreAcquireOptions.md +25 -0
- package/docs/interfaces/BinarySemaphoreOptions.md +57 -0
- package/docs/interfaces/BinarySemaphoreReleaseOptions.md +25 -0
- package/docs/interfaces/BinarySemaphoreReleaserFunc.md +37 -0
- package/docs/interfaces/CancelableAbilityOptions.md +113 -0
- package/docs/interfaces/ClientFuncItem.md +163 -0
- package/docs/interfaces/DotenvExpandOptions.md +43 -0
- package/docs/interfaces/DotenvExpandOutput.md +25 -0
- package/docs/interfaces/DotenvParseInput.md +13 -0
- package/docs/interfaces/DotenvParseOutput.md +13 -0
- package/docs/interfaces/DotenvPopulateInput.md +13 -0
- package/docs/interfaces/EventClientFuncParams.md +51 -0
- package/docs/interfaces/EventServerFuncParams.md +67 -0
- package/docs/interfaces/FewShotPromptTemplateOptions.md +147 -0
- package/docs/interfaces/FuncItem.md +131 -0
- package/docs/interfaces/FuncParam.md +61 -0
- package/docs/interfaces/FuncParams.md +13 -0
- package/docs/interfaces/Funcs.md +13 -0
- package/docs/interfaces/HashAlgoParams.md +33 -0
- package/docs/interfaces/IFileMetaInfo.md +65 -0
- package/docs/interfaces/IReadTextFileChunksOptions.md +143 -0
- package/docs/interfaces/ITruncateToTokenLimitOptions.md +99 -0
- package/docs/interfaces/JsonFilter.md +13 -0
- package/docs/interfaces/ParseObjectArgumentOptions.md +89 -0
- package/docs/interfaces/PromptExampleSelectorOptions.md +34 -0
- package/docs/interfaces/PromptTemplateOptions.md +65 -0
- package/docs/interfaces/RemoteFuncItem.md +152 -0
- package/docs/interfaces/ReplacePlacehoderOptions.md +41 -0
- package/docs/interfaces/ResClientFuncParams.md +37 -0
- package/docs/interfaces/ResServerFuncParams.md +69 -0
- package/docs/interfaces/SanitizeFilenameOptions.md +25 -0
- package/docs/interfaces/SectionStringOptions.md +25 -0
- package/docs/interfaces/SemaphoreOptions.md +89 -0
- package/docs/interfaces/SemaphoreTaskItem.md +73 -0
- package/docs/interfaces/ServerFuncItem.md +171 -0
- package/docs/interfaces/ServerFuncParams.md +35 -0
- package/docs/interfaces/SplitSentenceOptions.md +41 -0
- package/docs/interfaces/StreamCallbacksAndOptions.md +99 -0
- package/docs/interfaces/TaskAbortControllers.md +13 -0
- package/docs/interfaces/TaskPromise.md +138 -0
- package/docs/interfaces/ToolFuncPackage.md +47 -0
- package/docs/namespaces/EventStates/README.md +14 -0
- package/docs/namespaces/EventStates/variables/ABORT.md +11 -0
- package/docs/namespaces/EventStates/variables/CONTINUE.md +11 -0
- package/docs/namespaces/EventStates/variables/DONE.md +11 -0
- package/docs/namespaces/EventStates/variables/STOPPED.md +11 -0
- package/docs/namespaces/uuidv5/README.md +12 -0
- package/docs/namespaces/uuidv5/variables/DNS.md +11 -0
- package/docs/namespaces/uuidv5/variables/URL.md +11 -0
- package/docs/type-aliases/AIChatContentPart.md +11 -0
- package/docs/type-aliases/AIChatMessageParam.md +11 -0
- package/docs/type-aliases/AIChatRole.md +11 -0
- package/docs/type-aliases/AIChatToolChoiceParam.md +11 -0
- package/docs/type-aliases/AIMessageType.md +11 -0
- package/docs/type-aliases/AIModelNameRule.md +11 -0
- package/docs/type-aliases/AIModelNameRuleFn.md +21 -0
- package/docs/type-aliases/AIModelNameRules.md +11 -0
- package/docs/type-aliases/AITextGenerationFinishReason.md +11 -0
- package/docs/type-aliases/ActionName.md +11 -0
- package/docs/type-aliases/AsyncTaskId.md +11 -0
- package/docs/type-aliases/BeforeShutdownListener.md +23 -0
- package/docs/type-aliases/EventErrorListenerFn.md +33 -0
- package/docs/type-aliases/EventListenerFn.md +29 -0
- package/docs/type-aliases/FStringPromptTemplateNode.md +14 -0
- package/docs/type-aliases/FuncParamType.md +11 -0
- package/docs/type-aliases/PromptExamples.md +15 -0
- package/docs/type-aliases/PromptTemplateType.md +11 -0
- package/docs/type-aliases/PromptType.md +11 -0
- package/docs/type-aliases/SemaphoreIsReadyFuncType.md +15 -0
- package/docs/type-aliases/TFunc.md +25 -0
- package/docs/variables/AIChatRoles.md +11 -0
- package/docs/variables/AIMessageTypes.md +11 -0
- package/docs/variables/AITextGenerationFinishReasons.md +11 -0
- package/docs/variables/AbortErrorCode.md +11 -0
- package/docs/variables/ActionNames.md +11 -0
- package/docs/variables/AlreadyExistsErrorCode.md +11 -0
- package/docs/variables/ClientToolFuncSchema.md +101 -0
- package/docs/variables/DEFAULT_CONFIG_NAME.md +11 -0
- package/docs/variables/DefaultAsyncSemaphoreCapacity.md +11 -0
- package/docs/variables/EventBusName.md +11 -0
- package/docs/variables/EventName.md +11 -0
- package/docs/variables/FilenameReservedRegex.md +14 -0
- package/docs/variables/HFBuiltins.md +122 -0
- package/docs/variables/InternalErrorCode.md +11 -0
- package/docs/variables/LLM_TOKENIZER_NAMES.md +81 -0
- package/docs/variables/LLM_TOKENIZER_NAMES_MAP.md +11 -0
- package/docs/variables/NotFoundErrorCode.md +11 -0
- package/docs/variables/NotImplementedErrorCode.md +11 -0
- package/docs/variables/PASSING_SCORE.md +11 -0
- package/docs/variables/PromptTemplateTypes.md +11 -0
- package/docs/variables/PromptTypes.md +14 -0
- package/docs/variables/RStreamErrCode.md +11 -0
- package/docs/variables/RemoteToolFuncSchema.md +101 -0
- package/docs/variables/ResponseRStreamErrCode.md +11 -0
- package/docs/variables/SHUTDOWN_SIGNALS.md +17 -0
- package/docs/variables/SSEChannelAlreadyClosedErrCode.md +11 -0
- package/docs/variables/SecondaryCache.md +11 -0
- package/docs/variables/ServerToolFuncSchema.md +101 -0
- package/docs/variables/ToolAsyncCancelableBit.md +11 -0
- package/docs/variables/ToolAsyncMultiTaskBit.md +11 -0
- package/docs/variables/ToolAsyncPriorityBit.md +11 -0
- package/docs/variables/ToolFuncSchema.md +133 -0
- package/docs/variables/WindowsReservedNameRegex.md +13 -0
- package/docs/variables/base32768.md +11 -0
- package/docs/variables/defaultTemplateFormat.md +11 -0
- package/docs/variables/event.md +11 -0
- package/docs/variables/eventClient.md +11 -0
- package/docs/variables/eventServer.md +11 -0
- package/docs/variables/lrucache.md +11 -0
- package/docs/variables/mimeType.md +11 -0
- package/docs/variables/uuidNIL.md +11 -0
- package/package.json +2 -2
package/docs/globals.md
ADDED
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
[**@isdk/ai-tool**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# @isdk/ai-tool
|
|
6
|
+
|
|
7
|
+
## Common Helpers
|
|
8
|
+
|
|
9
|
+
- [formatISO](functions/formatISO.md)
|
|
10
|
+
- [parseDateFormat](functions/parseDateFormat.md)
|
|
11
|
+
- [parseISO](functions/parseISO.md)
|
|
12
|
+
- [toDate](functions/toDate.md)
|
|
13
|
+
|
|
14
|
+
## Other
|
|
15
|
+
|
|
16
|
+
- [EventStates](namespaces/EventStates/README.md)
|
|
17
|
+
- [uuidv5](namespaces/uuidv5/README.md)
|
|
18
|
+
- [AsyncFeatureBits](enumerations/AsyncFeatureBits.md)
|
|
19
|
+
- [AsyncFeatures](enumerations/AsyncFeatures.md)
|
|
20
|
+
- [ErrorCode](enumerations/ErrorCode.md)
|
|
21
|
+
- [HashAlgorithm](enumerations/HashAlgorithm.md)
|
|
22
|
+
- [AbortError](classes/AbortError.md)
|
|
23
|
+
- [AlreadyExistsError](classes/AlreadyExistsError.md)
|
|
24
|
+
- [BaseError](classes/BaseError.md)
|
|
25
|
+
- [BinarySemaphore](classes/BinarySemaphore.md)
|
|
26
|
+
- [CancelableAbility](classes/CancelableAbility.md)
|
|
27
|
+
- [ClientTools](classes/ClientTools.md)
|
|
28
|
+
- [CommonError](classes/CommonError.md)
|
|
29
|
+
- [ConfigFile](classes/ConfigFile.md)
|
|
30
|
+
- [EnvPromptTemplate](classes/EnvPromptTemplate.md)
|
|
31
|
+
- [EventClient](classes/EventClient.md)
|
|
32
|
+
- [EventEmitter](classes/EventEmitter.md)
|
|
33
|
+
- [EventServer](classes/EventServer.md)
|
|
34
|
+
- [EventToolFunc](classes/EventToolFunc.md)
|
|
35
|
+
- [FewShotPromptTemplate](classes/FewShotPromptTemplate.md)
|
|
36
|
+
- [FStringPromptTemplate](classes/FStringPromptTemplate.md)
|
|
37
|
+
- [GolangPromptTemplate](classes/GolangPromptTemplate.md)
|
|
38
|
+
- [HFEnvironment](classes/HFEnvironment.md)
|
|
39
|
+
- [HFInterpreter](classes/HFInterpreter.md)
|
|
40
|
+
- [HfPromptTemplate](classes/HfPromptTemplate.md)
|
|
41
|
+
- [HFTemplate](classes/HFTemplate.md)
|
|
42
|
+
- [IntSet](classes/IntSet.md)
|
|
43
|
+
- [LRUCache](classes/LRUCache.md)
|
|
44
|
+
- [NotFoundError](classes/NotFoundError.md)
|
|
45
|
+
- [NotImplementationError](classes/NotImplementationError.md)
|
|
46
|
+
- [PromptExampleSelector](classes/PromptExampleSelector.md)
|
|
47
|
+
- [PromptTemplate](classes/PromptTemplate.md)
|
|
48
|
+
- [ReadableStreamError](classes/ReadableStreamError.md)
|
|
49
|
+
- [ResClientTools](classes/ResClientTools.md)
|
|
50
|
+
- [ResServerTools](classes/ResServerTools.md)
|
|
51
|
+
- [Semaphore](classes/Semaphore.md)
|
|
52
|
+
- [ServerTools](classes/ServerTools.md)
|
|
53
|
+
- [SignalGate](classes/SignalGate.md)
|
|
54
|
+
- [SSEChannel](classes/SSEChannel.md)
|
|
55
|
+
- [TaskAbortController](classes/TaskAbortController.md)
|
|
56
|
+
- [ToolFunc](classes/ToolFunc.md)
|
|
57
|
+
- [YamlTypeBaseObject](classes/YamlTypeBaseObject.md)
|
|
58
|
+
- [AIChatAssistantMessageParam](interfaces/AIChatAssistantMessageParam.md)
|
|
59
|
+
- [AIChatContentPartImage](interfaces/AIChatContentPartImage.md)
|
|
60
|
+
- [AIChatContentPartText](interfaces/AIChatContentPartText.md)
|
|
61
|
+
- [AIChatMessageParamBase](interfaces/AIChatMessageParamBase.md)
|
|
62
|
+
- [AIChatMessageToolCall](interfaces/AIChatMessageToolCall.md)
|
|
63
|
+
- [AIChatSystemMessageParam](interfaces/AIChatSystemMessageParam.md)
|
|
64
|
+
- [AIChatToolChoiceFuncObject](interfaces/AIChatToolChoiceFuncObject.md)
|
|
65
|
+
- [AIChatToolChoiceObject](interfaces/AIChatToolChoiceObject.md)
|
|
66
|
+
- [AIChatToolFunc](interfaces/AIChatToolFunc.md)
|
|
67
|
+
- [AIChatToolFuncParam](interfaces/AIChatToolFuncParam.md)
|
|
68
|
+
- [AIChatToolMessageParam](interfaces/AIChatToolMessageParam.md)
|
|
69
|
+
- [AIChatToolParam](interfaces/AIChatToolParam.md)
|
|
70
|
+
- [AIChatToolTypeObject](interfaces/AIChatToolTypeObject.md)
|
|
71
|
+
- [AIChatUserMessageParam](interfaces/AIChatUserMessageParam.md)
|
|
72
|
+
- [AIChoiceConfig](interfaces/AIChoiceConfig.md)
|
|
73
|
+
- [AIResult](interfaces/AIResult.md)
|
|
74
|
+
- [AIStreamParser](interfaces/AIStreamParser.md)
|
|
75
|
+
- [AIStreamParserOptions](interfaces/AIStreamParserOptions.md)
|
|
76
|
+
- [BaseFunc](interfaces/BaseFunc.md)
|
|
77
|
+
- [BaseFuncItem](interfaces/BaseFuncItem.md)
|
|
78
|
+
- [BinarySemaphoreAcquireOptions](interfaces/BinarySemaphoreAcquireOptions.md)
|
|
79
|
+
- [BinarySemaphoreOptions](interfaces/BinarySemaphoreOptions.md)
|
|
80
|
+
- [BinarySemaphoreReleaseOptions](interfaces/BinarySemaphoreReleaseOptions.md)
|
|
81
|
+
- [BinarySemaphoreReleaserFunc](interfaces/BinarySemaphoreReleaserFunc.md)
|
|
82
|
+
- [CancelableAbilityOptions](interfaces/CancelableAbilityOptions.md)
|
|
83
|
+
- [ClientFuncItem](interfaces/ClientFuncItem.md)
|
|
84
|
+
- [DotenvExpandOptions](interfaces/DotenvExpandOptions.md)
|
|
85
|
+
- [DotenvExpandOutput](interfaces/DotenvExpandOutput.md)
|
|
86
|
+
- [DotenvParseInput](interfaces/DotenvParseInput.md)
|
|
87
|
+
- [DotenvParseOutput](interfaces/DotenvParseOutput.md)
|
|
88
|
+
- [DotenvPopulateInput](interfaces/DotenvPopulateInput.md)
|
|
89
|
+
- [EventClientFuncParams](interfaces/EventClientFuncParams.md)
|
|
90
|
+
- [EventServerFuncParams](interfaces/EventServerFuncParams.md)
|
|
91
|
+
- [FewShotPromptTemplateOptions](interfaces/FewShotPromptTemplateOptions.md)
|
|
92
|
+
- [FuncItem](interfaces/FuncItem.md)
|
|
93
|
+
- [FuncParam](interfaces/FuncParam.md)
|
|
94
|
+
- [FuncParams](interfaces/FuncParams.md)
|
|
95
|
+
- [Funcs](interfaces/Funcs.md)
|
|
96
|
+
- [HashAlgoParams](interfaces/HashAlgoParams.md)
|
|
97
|
+
- [IFileMetaInfo](interfaces/IFileMetaInfo.md)
|
|
98
|
+
- [IReadTextFileChunksOptions](interfaces/IReadTextFileChunksOptions.md)
|
|
99
|
+
- [ITruncateToTokenLimitOptions](interfaces/ITruncateToTokenLimitOptions.md)
|
|
100
|
+
- [JsonFilter](interfaces/JsonFilter.md)
|
|
101
|
+
- [ParseObjectArgumentOptions](interfaces/ParseObjectArgumentOptions.md)
|
|
102
|
+
- [PromptExampleSelectorOptions](interfaces/PromptExampleSelectorOptions.md)
|
|
103
|
+
- [PromptTemplateOptions](interfaces/PromptTemplateOptions.md)
|
|
104
|
+
- [RemoteFuncItem](interfaces/RemoteFuncItem.md)
|
|
105
|
+
- [ReplacePlacehoderOptions](interfaces/ReplacePlacehoderOptions.md)
|
|
106
|
+
- [ResClientFuncParams](interfaces/ResClientFuncParams.md)
|
|
107
|
+
- [ResServerFuncParams](interfaces/ResServerFuncParams.md)
|
|
108
|
+
- [SanitizeFilenameOptions](interfaces/SanitizeFilenameOptions.md)
|
|
109
|
+
- [SectionStringOptions](interfaces/SectionStringOptions.md)
|
|
110
|
+
- [SemaphoreOptions](interfaces/SemaphoreOptions.md)
|
|
111
|
+
- [SemaphoreTaskItem](interfaces/SemaphoreTaskItem.md)
|
|
112
|
+
- [ServerFuncItem](interfaces/ServerFuncItem.md)
|
|
113
|
+
- [ServerFuncParams](interfaces/ServerFuncParams.md)
|
|
114
|
+
- [SplitSentenceOptions](interfaces/SplitSentenceOptions.md)
|
|
115
|
+
- [StreamCallbacksAndOptions](interfaces/StreamCallbacksAndOptions.md)
|
|
116
|
+
- [TaskAbortControllers](interfaces/TaskAbortControllers.md)
|
|
117
|
+
- [TaskPromise](interfaces/TaskPromise.md)
|
|
118
|
+
- [ToolFuncPackage](interfaces/ToolFuncPackage.md)
|
|
119
|
+
- [ActionName](type-aliases/ActionName.md)
|
|
120
|
+
- [AIChatContentPart](type-aliases/AIChatContentPart.md)
|
|
121
|
+
- [AIChatMessageParam](type-aliases/AIChatMessageParam.md)
|
|
122
|
+
- [AIChatRole](type-aliases/AIChatRole.md)
|
|
123
|
+
- [AIChatToolChoiceParam](type-aliases/AIChatToolChoiceParam.md)
|
|
124
|
+
- [AIMessageType](type-aliases/AIMessageType.md)
|
|
125
|
+
- [AIModelNameRule](type-aliases/AIModelNameRule.md)
|
|
126
|
+
- [AIModelNameRuleFn](type-aliases/AIModelNameRuleFn.md)
|
|
127
|
+
- [AIModelNameRules](type-aliases/AIModelNameRules.md)
|
|
128
|
+
- [AITextGenerationFinishReason](type-aliases/AITextGenerationFinishReason.md)
|
|
129
|
+
- [AsyncTaskId](type-aliases/AsyncTaskId.md)
|
|
130
|
+
- [BeforeShutdownListener](type-aliases/BeforeShutdownListener.md)
|
|
131
|
+
- [EventErrorListenerFn](type-aliases/EventErrorListenerFn.md)
|
|
132
|
+
- [EventListenerFn](type-aliases/EventListenerFn.md)
|
|
133
|
+
- [FStringPromptTemplateNode](type-aliases/FStringPromptTemplateNode.md)
|
|
134
|
+
- [FuncParamType](type-aliases/FuncParamType.md)
|
|
135
|
+
- [PromptExamples](type-aliases/PromptExamples.md)
|
|
136
|
+
- [PromptTemplateType](type-aliases/PromptTemplateType.md)
|
|
137
|
+
- [PromptType](type-aliases/PromptType.md)
|
|
138
|
+
- [SemaphoreIsReadyFuncType](type-aliases/SemaphoreIsReadyFuncType.md)
|
|
139
|
+
- [TFunc](type-aliases/TFunc.md)
|
|
140
|
+
- [AbortErrorCode](variables/AbortErrorCode.md)
|
|
141
|
+
- [ActionNames](variables/ActionNames.md)
|
|
142
|
+
- [AIChatRoles](variables/AIChatRoles.md)
|
|
143
|
+
- [AIMessageTypes](variables/AIMessageTypes.md)
|
|
144
|
+
- [AITextGenerationFinishReasons](variables/AITextGenerationFinishReasons.md)
|
|
145
|
+
- [AlreadyExistsErrorCode](variables/AlreadyExistsErrorCode.md)
|
|
146
|
+
- [base32768](variables/base32768.md)
|
|
147
|
+
- [ClientToolFuncSchema](variables/ClientToolFuncSchema.md)
|
|
148
|
+
- [DEFAULT\_CONFIG\_NAME](variables/DEFAULT_CONFIG_NAME.md)
|
|
149
|
+
- [DefaultAsyncSemaphoreCapacity](variables/DefaultAsyncSemaphoreCapacity.md)
|
|
150
|
+
- [defaultTemplateFormat](variables/defaultTemplateFormat.md)
|
|
151
|
+
- [event](variables/event.md)
|
|
152
|
+
- [EventBusName](variables/EventBusName.md)
|
|
153
|
+
- [eventClient](variables/eventClient.md)
|
|
154
|
+
- [EventName](variables/EventName.md)
|
|
155
|
+
- [eventServer](variables/eventServer.md)
|
|
156
|
+
- [FilenameReservedRegex](variables/FilenameReservedRegex.md)
|
|
157
|
+
- [HFBuiltins](variables/HFBuiltins.md)
|
|
158
|
+
- [InternalErrorCode](variables/InternalErrorCode.md)
|
|
159
|
+
- [LLM\_TOKENIZER\_NAMES](variables/LLM_TOKENIZER_NAMES.md)
|
|
160
|
+
- [LLM\_TOKENIZER\_NAMES\_MAP](variables/LLM_TOKENIZER_NAMES_MAP.md)
|
|
161
|
+
- [lrucache](variables/lrucache.md)
|
|
162
|
+
- [mimeType](variables/mimeType.md)
|
|
163
|
+
- [NotFoundErrorCode](variables/NotFoundErrorCode.md)
|
|
164
|
+
- [NotImplementedErrorCode](variables/NotImplementedErrorCode.md)
|
|
165
|
+
- [PASSING\_SCORE](variables/PASSING_SCORE.md)
|
|
166
|
+
- [PromptTemplateTypes](variables/PromptTemplateTypes.md)
|
|
167
|
+
- [PromptTypes](variables/PromptTypes.md)
|
|
168
|
+
- [RemoteToolFuncSchema](variables/RemoteToolFuncSchema.md)
|
|
169
|
+
- [ResponseRStreamErrCode](variables/ResponseRStreamErrCode.md)
|
|
170
|
+
- [RStreamErrCode](variables/RStreamErrCode.md)
|
|
171
|
+
- [SecondaryCache](variables/SecondaryCache.md)
|
|
172
|
+
- [ServerToolFuncSchema](variables/ServerToolFuncSchema.md)
|
|
173
|
+
- [SHUTDOWN\_SIGNALS](variables/SHUTDOWN_SIGNALS.md)
|
|
174
|
+
- [SSEChannelAlreadyClosedErrCode](variables/SSEChannelAlreadyClosedErrCode.md)
|
|
175
|
+
- [ToolAsyncCancelableBit](variables/ToolAsyncCancelableBit.md)
|
|
176
|
+
- [ToolAsyncMultiTaskBit](variables/ToolAsyncMultiTaskBit.md)
|
|
177
|
+
- [ToolAsyncPriorityBit](variables/ToolAsyncPriorityBit.md)
|
|
178
|
+
- [ToolFuncSchema](variables/ToolFuncSchema.md)
|
|
179
|
+
- [uuidNIL](variables/uuidNIL.md)
|
|
180
|
+
- [WindowsReservedNameRegex](variables/WindowsReservedNameRegex.md)
|
|
181
|
+
- [\_lrucache](functions/lrucache.md)
|
|
182
|
+
- [AIArgProcessor](functions/AIArgProcessor.md)
|
|
183
|
+
- [AIStream](functions/AIStream.md)
|
|
184
|
+
- [assignDirs](functions/assignDirs.md)
|
|
185
|
+
- [backendEventable](functions/backendEventable.md)
|
|
186
|
+
- [beforeShutdown](functions/beforeShutdown.md)
|
|
187
|
+
- [canonicalize](functions/canonicalize.md)
|
|
188
|
+
- [ChoiceArgProcessor](functions/ChoiceArgProcessor.md)
|
|
189
|
+
- [completeSentences](functions/completeSentences.md)
|
|
190
|
+
- [concatText](functions/concatText.md)
|
|
191
|
+
- [countLLMTokens](functions/countLLMTokens.md)
|
|
192
|
+
- [countRegexMatches](functions/countRegexMatches.md)
|
|
193
|
+
- [createAbilityInjector](functions/createAbilityInjector.md)
|
|
194
|
+
- [createCallbacksTransformer](functions/createCallbacksTransformer.md)
|
|
195
|
+
- [createEmptyReadableStream](functions/createEmptyReadableStream.md)
|
|
196
|
+
- [createEndWithRepetitionDetector](functions/createEndWithRepetitionDetector.md)
|
|
197
|
+
- [createError](functions/createError.md)
|
|
198
|
+
- [createEventStreamTransformer](functions/createEventStreamTransformer.md)
|
|
199
|
+
- [createHfValueFunc](functions/createHfValueFunc.md)
|
|
200
|
+
- [createLRUCache](functions/createLRUCache.md)
|
|
201
|
+
- [createYamlObjectTag](functions/createYamlObjectTag.md)
|
|
202
|
+
- [dateToText](functions/dateToText.md)
|
|
203
|
+
- [decodeCharset](functions/decodeCharset.md)
|
|
204
|
+
- [detectCharset](functions/detectCharset.md)
|
|
205
|
+
- [encodeLLMTokens](functions/encodeLLMTokens.md)
|
|
206
|
+
- [ensureQuoted](functions/ensureQuoted.md)
|
|
207
|
+
- [eventable](functions/eventable.md)
|
|
208
|
+
- [expandConfig](functions/expandConfig.md)
|
|
209
|
+
- [expandEnv](functions/expandEnv.md)
|
|
210
|
+
- [expandObjEnv](functions/expandObjEnv.md)
|
|
211
|
+
- [expandPath](functions/expandPath.md)
|
|
212
|
+
- [extNameLevel](functions/extNameLevel.md)
|
|
213
|
+
- [fileIsExists](functions/fileIsExists.md)
|
|
214
|
+
- [filenameReservedRegex](functions/filenameReservedRegex.md)
|
|
215
|
+
- [filterValidFnScope](functions/filterValidFnScope.md)
|
|
216
|
+
- [findIndexNonEmptyFrom](functions/findIndexNonEmptyFrom.md)
|
|
217
|
+
- [findPort](functions/findPort.md)
|
|
218
|
+
- [formatTextWithSpace](functions/formatTextWithSpace.md)
|
|
219
|
+
- [getAllEnumKeys](functions/getAllEnumKeys.md)
|
|
220
|
+
- [getConfigFileNames](functions/getConfigFileNames.md)
|
|
221
|
+
- [getConfigs](functions/getConfigs.md)
|
|
222
|
+
- [getEnvVairables](functions/getEnvVairables.md)
|
|
223
|
+
- [getFileMetaInfo](functions/getFileMetaInfo.md)
|
|
224
|
+
- [getHashAlgoBySize](functions/getHashAlgoBySize.md)
|
|
225
|
+
- [getKeysPath](functions/getKeysPath.md)
|
|
226
|
+
- [getLLMTokenizer](functions/getLLMTokenizer.md)
|
|
227
|
+
- [getMultiLevelExtname](functions/getMultiLevelExtname.md)
|
|
228
|
+
- [getPackageDir](functions/getPackageDir.md)
|
|
229
|
+
- [getRealFilepath](functions/getRealFilepath.md)
|
|
230
|
+
- [getResponseErrorReadableStream](functions/getResponseErrorReadableStream.md)
|
|
231
|
+
- [getXDGConfigs](functions/getXDGConfigs.md)
|
|
232
|
+
- [hasDirectoryIn](functions/hasDirectoryIn.md)
|
|
233
|
+
- [hash](functions/hash.md)
|
|
234
|
+
- [hashFile](functions/hashFile.md)
|
|
235
|
+
- [hashStream](functions/hashStream.md)
|
|
236
|
+
- [hfParse](functions/hfParse.md)
|
|
237
|
+
- [hfTokenize](functions/hfTokenize.md)
|
|
238
|
+
- [initShutdown](functions/initShutdown.md)
|
|
239
|
+
- [interpolateEnv](functions/interpolateEnv.md)
|
|
240
|
+
- [interpolateFString](functions/interpolateFString.md)
|
|
241
|
+
- [interpolateGolangTemplate](functions/interpolateGolangTemplate.md)
|
|
242
|
+
- [isLangUsingSpaces](functions/isLangUsingSpaces.md)
|
|
243
|
+
- [isListItemString](functions/isListItemString.md)
|
|
244
|
+
- [isModelNameMatched](functions/isModelNameMatched.md)
|
|
245
|
+
- [isPunctuationChar](functions/isPunctuationChar.md)
|
|
246
|
+
- [isQuoted](functions/isQuoted.md)
|
|
247
|
+
- [isRegExp](functions/isRegExp.md)
|
|
248
|
+
- [isSameString](functions/isSameString.md)
|
|
249
|
+
- [isSectionString](functions/isSectionString.md)
|
|
250
|
+
- [isSentenceEnding](functions/isSentenceEnding.md)
|
|
251
|
+
- [isSepLineString](functions/isSepLineString.md)
|
|
252
|
+
- [isStrWrapped](functions/isStrWrapped.md)
|
|
253
|
+
- [isSubdirectory](functions/isSubdirectory.md)
|
|
254
|
+
- [isTitleString](functions/isTitleString.md)
|
|
255
|
+
- [isValidFilename](functions/isValidFilename.md)
|
|
256
|
+
- [isValidFilepath](functions/isValidFilepath.md)
|
|
257
|
+
- [isWebStream](functions/isWebStream.md)
|
|
258
|
+
- [jsonFilterToWhere](functions/jsonFilterToWhere.md)
|
|
259
|
+
- [jsonToMarkdownStr](functions/jsonToMarkdownStr.md)
|
|
260
|
+
- [loadAIConfig](functions/loadAIConfig.md)
|
|
261
|
+
- [loadConfig](functions/loadConfig.md)
|
|
262
|
+
- [loadConfigFile](functions/loadConfigFile.md)
|
|
263
|
+
- [loadFileFromPaths](functions/loadFileFromPaths.md)
|
|
264
|
+
- [loadTextFromPaths](functions/loadTextFromPaths.md)
|
|
265
|
+
- [makeToolFuncCancelable](functions/makeToolFuncCancelable.md)
|
|
266
|
+
- [matchUrlProtocol](functions/matchUrlProtocol.md)
|
|
267
|
+
- [memoize](functions/memoize.md)
|
|
268
|
+
- [messagesToText](functions/messagesToText.md)
|
|
269
|
+
- [ObjectArgsToArgsInfo](functions/ObjectArgsToArgsInfo.md)
|
|
270
|
+
- [paramsSizeToScaleStr](functions/paramsSizeToScaleStr.md)
|
|
271
|
+
- [parseCommand](functions/parseCommand.md)
|
|
272
|
+
- [parseFString](functions/parseFString.md)
|
|
273
|
+
- [parseJsJson](functions/parseJsJson.md)
|
|
274
|
+
- [parseJsJsonSimpleSync](functions/parseJsJsonSimpleSync.md)
|
|
275
|
+
- [parseObjectArgInfo](functions/parseObjectArgInfo.md)
|
|
276
|
+
- [parseObjectArgumentInfos](functions/parseObjectArgumentInfos.md)
|
|
277
|
+
- [parseObjectArguments](functions/parseObjectArguments.md)
|
|
278
|
+
- [parseObjectArgumentsAsArgInfos](functions/parseObjectArgumentsAsArgInfos.md)
|
|
279
|
+
- [parseYaml](functions/parseYaml.md)
|
|
280
|
+
- [quoteStr](functions/quoteStr.md)
|
|
281
|
+
- [RateLimit](functions/RateLimit.md)
|
|
282
|
+
- [readableFromAsyncIterable](functions/readableFromAsyncIterable.md)
|
|
283
|
+
- [readFilenamesRecursiveSync](functions/readFilenamesRecursiveSync.md)
|
|
284
|
+
- [readTextFileChunks](functions/readTextFileChunks.md)
|
|
285
|
+
- [readTextFileChunksEx](functions/readTextFileChunksEx.md)
|
|
286
|
+
- [reControlCharsRegex](functions/reControlCharsRegex.md)
|
|
287
|
+
- [registerCoreTools](functions/registerCoreTools.md)
|
|
288
|
+
- [registerYamlTag](functions/registerYamlTag.md)
|
|
289
|
+
- [removeMarkdownBold](functions/removeMarkdownBold.md)
|
|
290
|
+
- [removeMarkdownBoldAndItalic](functions/removeMarkdownBoldAndItalic.md)
|
|
291
|
+
- [removeMarkdownItalic](functions/removeMarkdownItalic.md)
|
|
292
|
+
- [replaceWithPlaceholder](functions/replaceWithPlaceholder.md)
|
|
293
|
+
- [restoreFromPlacehoders](functions/restoreFromPlacehoders.md)
|
|
294
|
+
- [sanitizeFilename](functions/sanitizeFilename.md)
|
|
295
|
+
- [sanitizeFilepath](functions/sanitizeFilepath.md)
|
|
296
|
+
- [saveConfigFile](functions/saveConfigFile.md)
|
|
297
|
+
- [scaleStrToParamsSize](functions/scaleStrToParamsSize.md)
|
|
298
|
+
- [shutdown](functions/shutdown.md)
|
|
299
|
+
- [simplifyObjectArguments](functions/simplifyObjectArguments.md)
|
|
300
|
+
- [sortedValues](functions/sortedValues.md)
|
|
301
|
+
- [splitChunks](functions/splitChunks.md)
|
|
302
|
+
- [splitParagraph](functions/splitParagraph.md)
|
|
303
|
+
- [splitSentence](functions/splitSentence.md)
|
|
304
|
+
- [stringifyYaml](functions/stringifyYaml.md)
|
|
305
|
+
- [stripConsoleColor](functions/stripConsoleColor.md)
|
|
306
|
+
- [TemplateArgProcessor](functions/TemplateArgProcessor.md)
|
|
307
|
+
- [textToDate](functions/textToDate.md)
|
|
308
|
+
- [throwError](functions/throwError.md)
|
|
309
|
+
- [toDateTime](functions/toDateTime.md)
|
|
310
|
+
- [toRegExp](functions/toRegExp.md)
|
|
311
|
+
- [trimStartOfStreamHelper](functions/trimStartOfStreamHelper.md)
|
|
312
|
+
- [truncateByToken](functions/truncateByToken.md)
|
|
313
|
+
- [truncateToTokenLimit](functions/truncateToTokenLimit.md)
|
|
314
|
+
- [truncateToTokenLimitEx](functions/truncateToTokenLimitEx.md)
|
|
315
|
+
- [truncTo](functions/truncTo.md)
|
|
316
|
+
- [uuid](functions/uuid.md)
|
|
317
|
+
- [uuidParse](functions/uuidParse.md)
|
|
318
|
+
- [uuidStringify](functions/uuidStringify.md)
|
|
319
|
+
- [uuidv1](functions/uuidv1.md)
|
|
320
|
+
- [uuidv4](functions/uuidv4.md)
|
|
321
|
+
- [uuidv5](functions/uuidv5.md)
|
|
322
|
+
- [uuidValidate](functions/uuidValidate.md)
|
|
323
|
+
- [uuidVersion](functions/uuidVersion.md)
|
|
324
|
+
- [wait](functions/wait.md)
|
|
325
|
+
- [wrapEventEmitter](functions/wrapEventEmitter.md)
|
|
326
|
+
- [xxhash](functions/xxhash.md)
|
|
327
|
+
- [xxhash32](functions/xxhash32.md)
|
|
328
|
+
- [xxhash64](functions/xxhash64.md)
|
|
329
|
+
- [xxhashAsStr](functions/xxhashAsStr.md)
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
[**@isdk/ai-tool**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/ai-tool](../globals.md) / AIChatAssistantMessageParam
|
|
6
|
+
|
|
7
|
+
# Interface: AIChatAssistantMessageParam
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:98](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L98)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- [`AIChatMessageParamBase`](AIChatMessageParamBase.md)
|
|
14
|
+
|
|
15
|
+
## Indexable
|
|
16
|
+
|
|
17
|
+
\[`name`: `string`\]: `any`
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### content?
|
|
22
|
+
|
|
23
|
+
> `optional` **content**: `null` \| `string`
|
|
24
|
+
|
|
25
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:100](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L100)
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### createdAt?
|
|
30
|
+
|
|
31
|
+
> `optional` **createdAt**: `string` \| `Date`
|
|
32
|
+
|
|
33
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:103](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L103)
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### private?
|
|
38
|
+
|
|
39
|
+
> `optional` **private**: `boolean`
|
|
40
|
+
|
|
41
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:57](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L57)
|
|
42
|
+
|
|
43
|
+
#### Inherited from
|
|
44
|
+
|
|
45
|
+
[`AIChatMessageParamBase`](AIChatMessageParamBase.md).[`private`](AIChatMessageParamBase.md#private)
|
|
46
|
+
|
|
47
|
+
***
|
|
48
|
+
|
|
49
|
+
### replies?
|
|
50
|
+
|
|
51
|
+
> `optional` **replies**: `Record`\<`string`, `Partial`\<[`AIChatMessageParam`](../type-aliases/AIChatMessageParam.md)\>\>
|
|
52
|
+
|
|
53
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:56](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L56)
|
|
54
|
+
|
|
55
|
+
#### Inherited from
|
|
56
|
+
|
|
57
|
+
[`AIChatMessageParamBase`](AIChatMessageParamBase.md).[`replies`](AIChatMessageParamBase.md#replies)
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
61
|
+
### role
|
|
62
|
+
|
|
63
|
+
> **role**: `"assistant"`
|
|
64
|
+
|
|
65
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:99](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L99)
|
|
66
|
+
|
|
67
|
+
#### Overrides
|
|
68
|
+
|
|
69
|
+
[`AIChatMessageParamBase`](AIChatMessageParamBase.md).[`role`](AIChatMessageParamBase.md#role)
|
|
70
|
+
|
|
71
|
+
***
|
|
72
|
+
|
|
73
|
+
### templateFormat?
|
|
74
|
+
|
|
75
|
+
> `optional` **templateFormat**: `string`
|
|
76
|
+
|
|
77
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:105](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L105)
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
### thinking?
|
|
82
|
+
|
|
83
|
+
> `optional` **thinking**: `string`
|
|
84
|
+
|
|
85
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:59](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L59)
|
|
86
|
+
|
|
87
|
+
#### Inherited from
|
|
88
|
+
|
|
89
|
+
[`AIChatMessageParamBase`](AIChatMessageParamBase.md).[`thinking`](AIChatMessageParamBase.md#thinking)
|
|
90
|
+
|
|
91
|
+
***
|
|
92
|
+
|
|
93
|
+
### tool\_calls?
|
|
94
|
+
|
|
95
|
+
> `optional` **tool\_calls**: [`AIChatMessageToolCall`](AIChatMessageToolCall.md)[]
|
|
96
|
+
|
|
97
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:101](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L101)
|
|
98
|
+
|
|
99
|
+
***
|
|
100
|
+
|
|
101
|
+
### tools?
|
|
102
|
+
|
|
103
|
+
> `optional` **tools**: `Record`\<`string`, `string`\>
|
|
104
|
+
|
|
105
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:58](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L58)
|
|
106
|
+
|
|
107
|
+
#### Inherited from
|
|
108
|
+
|
|
109
|
+
[`AIChatMessageParamBase`](AIChatMessageParamBase.md).[`tools`](AIChatMessageParamBase.md#tools)
|
|
110
|
+
|
|
111
|
+
***
|
|
112
|
+
|
|
113
|
+
### toRole?
|
|
114
|
+
|
|
115
|
+
> `optional` **toRole**: `string` \| `string`[] \| `Record`\<`string`, `Partial`\<[`AIChatMessageParam`](../type-aliases/AIChatMessageParam.md)\>\>
|
|
116
|
+
|
|
117
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:55](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L55)
|
|
118
|
+
|
|
119
|
+
#### Inherited from
|
|
120
|
+
|
|
121
|
+
[`AIChatMessageParamBase`](AIChatMessageParamBase.md).[`toRole`](AIChatMessageParamBase.md#torole)
|
|
122
|
+
|
|
123
|
+
***
|
|
124
|
+
|
|
125
|
+
### updatedAt?
|
|
126
|
+
|
|
127
|
+
> `optional` **updatedAt**: `string` \| `Date`
|
|
128
|
+
|
|
129
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:104](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L104)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[**@isdk/ai-tool**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/ai-tool](../globals.md) / AIChatContentPartImage
|
|
6
|
+
|
|
7
|
+
# Interface: AIChatContentPartImage
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:86](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L86)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### image\_url
|
|
14
|
+
|
|
15
|
+
> **image\_url**: `object`
|
|
16
|
+
|
|
17
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:88](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L88)
|
|
18
|
+
|
|
19
|
+
#### url
|
|
20
|
+
|
|
21
|
+
> **url**: `string`
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### type
|
|
26
|
+
|
|
27
|
+
> **type**: `"image_url"`
|
|
28
|
+
|
|
29
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:87](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L87)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**@isdk/ai-tool**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/ai-tool](../globals.md) / AIChatContentPartText
|
|
6
|
+
|
|
7
|
+
# Interface: AIChatContentPartText
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:93](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L93)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### text
|
|
14
|
+
|
|
15
|
+
> **text**: `string`
|
|
16
|
+
|
|
17
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:95](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L95)
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### type
|
|
22
|
+
|
|
23
|
+
> **type**: `"text"`
|
|
24
|
+
|
|
25
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:94](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L94)
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
[**@isdk/ai-tool**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/ai-tool](../globals.md) / AIChatMessageParamBase
|
|
6
|
+
|
|
7
|
+
# Interface: AIChatMessageParamBase
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:53](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L53)
|
|
10
|
+
|
|
11
|
+
## Extended by
|
|
12
|
+
|
|
13
|
+
- [`AIChatSystemMessageParam`](AIChatSystemMessageParam.md)
|
|
14
|
+
- [`AIChatUserMessageParam`](AIChatUserMessageParam.md)
|
|
15
|
+
- [`AIChatAssistantMessageParam`](AIChatAssistantMessageParam.md)
|
|
16
|
+
- [`AIChatToolMessageParam`](AIChatToolMessageParam.md)
|
|
17
|
+
|
|
18
|
+
## Indexable
|
|
19
|
+
|
|
20
|
+
\[`name`: `string`\]: `any`
|
|
21
|
+
|
|
22
|
+
## Properties
|
|
23
|
+
|
|
24
|
+
### private?
|
|
25
|
+
|
|
26
|
+
> `optional` **private**: `boolean`
|
|
27
|
+
|
|
28
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:57](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L57)
|
|
29
|
+
|
|
30
|
+
***
|
|
31
|
+
|
|
32
|
+
### replies?
|
|
33
|
+
|
|
34
|
+
> `optional` **replies**: `Record`\<`string`, `Partial`\<[`AIChatMessageParam`](../type-aliases/AIChatMessageParam.md)\>\>
|
|
35
|
+
|
|
36
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:56](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L56)
|
|
37
|
+
|
|
38
|
+
***
|
|
39
|
+
|
|
40
|
+
### role
|
|
41
|
+
|
|
42
|
+
> **role**: `string`
|
|
43
|
+
|
|
44
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:54](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L54)
|
|
45
|
+
|
|
46
|
+
***
|
|
47
|
+
|
|
48
|
+
### thinking?
|
|
49
|
+
|
|
50
|
+
> `optional` **thinking**: `string`
|
|
51
|
+
|
|
52
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:59](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L59)
|
|
53
|
+
|
|
54
|
+
***
|
|
55
|
+
|
|
56
|
+
### tools?
|
|
57
|
+
|
|
58
|
+
> `optional` **tools**: `Record`\<`string`, `string`\>
|
|
59
|
+
|
|
60
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:58](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L58)
|
|
61
|
+
|
|
62
|
+
***
|
|
63
|
+
|
|
64
|
+
### toRole?
|
|
65
|
+
|
|
66
|
+
> `optional` **toRole**: `string` \| `string`[] \| `Record`\<`string`, `Partial`\<[`AIChatMessageParam`](../type-aliases/AIChatMessageParam.md)\>\>
|
|
67
|
+
|
|
68
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:55](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L55)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
[**@isdk/ai-tool**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/ai-tool](../globals.md) / AIChatMessageToolCall
|
|
6
|
+
|
|
7
|
+
# Interface: AIChatMessageToolCall
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:108](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L108)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### function
|
|
14
|
+
|
|
15
|
+
> **function**: `object`
|
|
16
|
+
|
|
17
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:111](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L111)
|
|
18
|
+
|
|
19
|
+
#### arguments
|
|
20
|
+
|
|
21
|
+
> **arguments**: `string`
|
|
22
|
+
|
|
23
|
+
#### name
|
|
24
|
+
|
|
25
|
+
> **name**: `string`
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### id
|
|
30
|
+
|
|
31
|
+
> **id**: `string`
|
|
32
|
+
|
|
33
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:110](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L110)
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### type
|
|
38
|
+
|
|
39
|
+
> **type**: `"function"`
|
|
40
|
+
|
|
41
|
+
Defined in: [packages/ai-tool/src/utils/chat.ts:109](https://github.com/isdk/ai-tool.js/blob/7135b3a67072644f21685b76900b7f351401749e/src/utils/chat.ts#L109)
|