@isdk/ai-tool 0.5.8 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-OYDBRUZJ.mjs +1 -0
- package/dist/funcs.js +1 -1
- package/dist/funcs.mjs +1 -1
- package/dist/index.d.mts +11 -637
- package/dist/index.d.ts +11 -637
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/docs/classes/BinarySemaphore.md +25 -25
- package/docs/classes/CancelableAbility.md +25 -25
- package/docs/classes/ClientTools.md +57 -57
- package/docs/classes/ConfigFile.md +78 -262
- package/docs/classes/EnvPromptTemplate.md +233 -36
- package/docs/classes/EventClient.md +80 -80
- package/docs/classes/EventServer.md +81 -81
- package/docs/classes/EventToolFunc.md +49 -49
- package/docs/classes/FStringPromptTemplate.md +234 -37
- package/docs/classes/FewShotPromptTemplate.md +213 -34
- package/docs/classes/GolangPromptTemplate.md +230 -33
- package/docs/classes/IntSet.md +12 -12
- package/docs/classes/PromptExampleSelector.md +9 -9
- package/docs/classes/PromptTemplate.md +230 -34
- package/docs/classes/ReadableStreamError.md +2 -2
- package/docs/classes/ResClientTools.md +64 -64
- package/docs/classes/ResServerTools.md +65 -65
- package/docs/classes/SSEChannel.md +16 -16
- package/docs/classes/Semaphore.md +26 -26
- package/docs/classes/ServerTools.md +53 -53
- package/docs/classes/SignalGate.md +9 -9
- package/docs/classes/TaskAbortController.md +8 -8
- package/docs/classes/ToolFunc.md +46 -46
- package/docs/classes/YamlTypeBaseObject.md +2 -2
- package/docs/enumerations/AsyncFeatureBits.md +4 -4
- package/docs/enumerations/AsyncFeatures.md +4 -4
- package/docs/enumerations/HashAlgorithm.md +12 -12
- package/docs/functions/AIArgProcessor.md +1 -1
- package/docs/functions/AIStream.md +1 -1
- package/docs/functions/ChoiceArgProcessor.md +1 -1
- package/docs/functions/ObjectArgsToArgsInfo.md +1 -1
- package/docs/functions/RateLimit.md +1 -1
- package/docs/functions/TemplateArgProcessor.md +1 -1
- package/docs/functions/assignDirs.md +1 -1
- package/docs/functions/backendEventable.md +1 -1
- package/docs/functions/beforeShutdown.md +1 -1
- package/docs/functions/completeSentences.md +1 -1
- package/docs/functions/concatText.md +1 -1
- package/docs/functions/countLLMTokens.md +1 -1
- package/docs/functions/countRegexMatches.md +1 -1
- package/docs/functions/createCallbacksTransformer.md +1 -1
- package/docs/functions/createEmptyReadableStream.md +1 -1
- package/docs/functions/createEndWithRepetitionDetector.md +1 -1
- package/docs/functions/createEventStreamTransformer.md +1 -1
- package/docs/functions/createHfValueFunc.md +1 -1
- package/docs/functions/createLRUCache.md +1 -1
- package/docs/functions/createYamlObjectTag.md +1 -1
- package/docs/functions/dateToText.md +1 -1
- package/docs/functions/decodeCharset.md +1 -1
- package/docs/functions/detectCharset.md +1 -1
- package/docs/functions/encodeLLMTokens.md +1 -1
- package/docs/functions/ensureQuoted.md +1 -1
- package/docs/functions/expandConfig.md +3 -3
- package/docs/functions/expandEnv.md +4 -4
- package/docs/functions/expandObjEnv.md +4 -4
- package/docs/functions/expandPath.md +1 -1
- package/docs/functions/extNameLevel.md +1 -1
- package/docs/functions/fileIsExists.md +1 -1
- package/docs/functions/filterValidFnScope.md +1 -1
- package/docs/functions/findIndexNonEmptyFrom.md +1 -1
- package/docs/functions/findPort.md +1 -1
- package/docs/functions/formatTextWithSpace.md +1 -1
- package/docs/functions/getAllEnumKeys.md +1 -1
- package/docs/functions/getConfigFileNames.md +1 -1
- package/docs/functions/getConfigs.md +1 -1
- package/docs/functions/getEnvVairables.md +1 -1
- package/docs/functions/getFileMetaInfo.md +1 -1
- package/docs/functions/getHashAlgoBySize.md +1 -1
- package/docs/functions/getKeysPath.md +1 -1
- package/docs/functions/getLLMTokenizer.md +1 -1
- package/docs/functions/getMultiLevelExtname.md +4 -4
- package/docs/functions/getPackageDir.md +1 -1
- package/docs/functions/getRealFilepath.md +1 -1
- package/docs/functions/getResponseErrorReadableStream.md +1 -1
- package/docs/functions/getXDGConfigs.md +1 -1
- package/docs/functions/hasDirectoryIn.md +1 -1
- package/docs/functions/hash.md +1 -1
- package/docs/functions/hashFile.md +1 -1
- package/docs/functions/hashStream.md +1 -1
- package/docs/functions/initShutdown.md +1 -1
- package/docs/functions/isLangUsingSpaces.md +1 -1
- package/docs/functions/isListItemString.md +1 -1
- package/docs/functions/isModelNameMatched.md +1 -1
- package/docs/functions/isPunctuationChar.md +1 -1
- package/docs/functions/isQuoted.md +1 -1
- package/docs/functions/isRegExp.md +1 -1
- package/docs/functions/isSameString.md +1 -1
- package/docs/functions/isSectionString.md +1 -1
- package/docs/functions/isSentenceEnding.md +1 -1
- package/docs/functions/isSepLineString.md +1 -1
- package/docs/functions/isStrWrapped.md +1 -1
- package/docs/functions/isSubdirectory.md +1 -1
- package/docs/functions/isTitleString.md +1 -1
- package/docs/functions/isValidFilename.md +1 -1
- package/docs/functions/isValidFilepath.md +1 -1
- package/docs/functions/isWebStream.md +1 -1
- package/docs/functions/jsonFilterToWhere.md +1 -1
- package/docs/functions/jsonToMarkdownStr.md +1 -1
- package/docs/functions/loadAIConfig.md +1 -1
- package/docs/functions/loadConfig.md +1 -1
- package/docs/functions/loadConfigFile.md +1 -1
- package/docs/functions/loadFileFromPaths.md +1 -1
- package/docs/functions/loadTextFromPaths.md +1 -1
- package/docs/functions/lrucache.md +1 -1
- package/docs/functions/makeToolFuncCancelable.md +1 -1
- package/docs/functions/matchUrlProtocol.md +1 -1
- package/docs/functions/memoize.md +1 -1
- package/docs/functions/messagesToText.md +1 -1
- package/docs/functions/paramsSizeToScaleStr.md +1 -1
- package/docs/functions/parseCommand.md +1 -1
- package/docs/functions/parseJsJson.md +1 -1
- package/docs/functions/parseJsJsonSimpleSync.md +1 -1
- package/docs/functions/parseObjectArgInfo.md +1 -1
- package/docs/functions/parseObjectArgumentInfos.md +1 -1
- package/docs/functions/parseObjectArguments.md +1 -1
- package/docs/functions/parseObjectArgumentsAsArgInfos.md +1 -1
- package/docs/functions/parseYaml.md +21 -1
- package/docs/functions/quoteStr.md +1 -1
- package/docs/functions/readFilenamesRecursiveSync.md +7 -1
- package/docs/functions/readTextFileChunks.md +1 -1
- package/docs/functions/readTextFileChunksEx.md +1 -1
- package/docs/functions/readableFromAsyncIterable.md +1 -1
- package/docs/functions/registerCoreTools.md +1 -1
- package/docs/functions/registerYamlTag.md +18 -2
- package/docs/functions/removeMarkdownBold.md +1 -1
- package/docs/functions/removeMarkdownBoldAndItalic.md +1 -1
- package/docs/functions/removeMarkdownItalic.md +1 -1
- package/docs/functions/replaceWithPlaceholder.md +1 -1
- package/docs/functions/restoreFromPlacehoders.md +1 -1
- package/docs/functions/sanitizeFilename.md +4 -4
- package/docs/functions/sanitizeFilepath.md +4 -4
- package/docs/functions/saveConfigFile.md +1 -1
- package/docs/functions/scaleStrToParamsSize.md +1 -1
- package/docs/functions/shutdown.md +1 -1
- package/docs/functions/simplifyObjectArguments.md +1 -1
- package/docs/functions/sortedValues.md +1 -1
- package/docs/functions/splitChunks.md +1 -1
- package/docs/functions/splitParagraph.md +1 -1
- package/docs/functions/splitSentence.md +1 -1
- package/docs/functions/stringifyYaml.md +21 -1
- package/docs/functions/stripConsoleColor.md +1 -1
- package/docs/functions/textToDate.md +1 -1
- package/docs/functions/toDateTime.md +1 -1
- package/docs/functions/trimStartOfStreamHelper.md +1 -1
- package/docs/functions/truncTo.md +1 -1
- package/docs/functions/truncateByToken.md +1 -1
- package/docs/functions/truncateToTokenLimit.md +1 -1
- package/docs/functions/truncateToTokenLimitEx.md +1 -1
- package/docs/functions/uuid.md +1 -1
- package/docs/functions/wait.md +1 -1
- package/docs/functions/xxhash.md +1 -1
- package/docs/functions/xxhash32.md +1 -1
- package/docs/functions/xxhash64.md +1 -1
- package/docs/functions/xxhashAsStr.md +1 -1
- package/docs/globals.md +0 -23
- package/docs/interfaces/AIChatAssistantMessageParam.md +12 -12
- package/docs/interfaces/AIChatContentPartImage.md +3 -3
- package/docs/interfaces/AIChatContentPartText.md +3 -3
- package/docs/interfaces/AIChatMessageParamBase.md +7 -7
- package/docs/interfaces/AIChatMessageToolCall.md +4 -4
- package/docs/interfaces/AIChatSystemMessageParam.md +9 -9
- package/docs/interfaces/AIChatToolChoiceFuncObject.md +3 -3
- package/docs/interfaces/AIChatToolChoiceObject.md +2 -2
- package/docs/interfaces/AIChatToolFunc.md +5 -5
- package/docs/interfaces/AIChatToolFuncParam.md +3 -3
- package/docs/interfaces/AIChatToolMessageParam.md +10 -10
- package/docs/interfaces/AIChatToolParam.md +2 -2
- package/docs/interfaces/AIChatToolTypeObject.md +2 -2
- package/docs/interfaces/AIChatUserMessageParam.md +13 -13
- package/docs/interfaces/AIChoiceConfig.md +8 -8
- package/docs/interfaces/AIResult.md +6 -6
- package/docs/interfaces/AIStreamParser.md +2 -2
- package/docs/interfaces/AIStreamParserOptions.md +2 -2
- package/docs/interfaces/BaseFunc.md +11 -11
- package/docs/interfaces/BaseFuncItem.md +10 -10
- package/docs/interfaces/BinarySemaphoreAcquireOptions.md +2 -2
- package/docs/interfaces/BinarySemaphoreOptions.md +5 -5
- package/docs/interfaces/BinarySemaphoreReleaseOptions.md +2 -2
- package/docs/interfaces/BinarySemaphoreReleaserFunc.md +3 -3
- package/docs/interfaces/CancelableAbilityOptions.md +4 -4
- package/docs/interfaces/ClientFuncItem.md +13 -13
- package/docs/interfaces/EventClientFuncParams.md +5 -5
- package/docs/interfaces/EventServerFuncParams.md +6 -6
- package/docs/interfaces/FewShotPromptTemplateOptions.md +12 -12
- package/docs/interfaces/FuncItem.md +11 -11
- package/docs/interfaces/FuncParam.md +7 -7
- package/docs/interfaces/FuncParams.md +1 -1
- package/docs/interfaces/Funcs.md +1 -1
- package/docs/interfaces/HashAlgoParams.md +4 -4
- package/docs/interfaces/IFileMetaInfo.md +8 -8
- package/docs/interfaces/IReadTextFileChunksOptions.md +11 -11
- package/docs/interfaces/ITruncateToTokenLimitOptions.md +10 -10
- package/docs/interfaces/JsonFilter.md +1 -1
- package/docs/interfaces/ParseObjectArgumentOptions.md +11 -11
- package/docs/interfaces/PromptExampleSelectorOptions.md +3 -3
- package/docs/interfaces/PromptTemplateOptions.md +7 -7
- package/docs/interfaces/RemoteFuncItem.md +13 -13
- package/docs/interfaces/ReplacePlacehoderOptions.md +5 -5
- package/docs/interfaces/ResClientFuncParams.md +3 -3
- package/docs/interfaces/ResServerFuncParams.md +6 -6
- package/docs/interfaces/SanitizeFilenameOptions.md +3 -3
- package/docs/interfaces/SectionStringOptions.md +3 -3
- package/docs/interfaces/SemaphoreOptions.md +7 -7
- package/docs/interfaces/SemaphoreTaskItem.md +5 -5
- package/docs/interfaces/ServerFuncItem.md +14 -14
- package/docs/interfaces/ServerFuncParams.md +3 -3
- package/docs/interfaces/SplitSentenceOptions.md +5 -5
- package/docs/interfaces/StreamCallbacksAndOptions.md +5 -5
- package/docs/interfaces/TaskAbortControllers.md +1 -1
- package/docs/interfaces/TaskPromise.md +2 -2
- package/docs/interfaces/ToolFuncPackage.md +4 -4
- package/docs/type-aliases/AIChatContentPart.md +1 -1
- package/docs/type-aliases/AIChatMessageParam.md +1 -1
- package/docs/type-aliases/AIChatRole.md +1 -1
- package/docs/type-aliases/AIChatToolChoiceParam.md +1 -1
- package/docs/type-aliases/AIMessageType.md +1 -1
- package/docs/type-aliases/AIModelNameRule.md +1 -1
- package/docs/type-aliases/AIModelNameRuleFn.md +1 -1
- package/docs/type-aliases/AIModelNameRules.md +1 -1
- package/docs/type-aliases/AITextGenerationFinishReason.md +1 -1
- package/docs/type-aliases/ActionName.md +1 -1
- package/docs/type-aliases/AsyncTaskId.md +1 -1
- package/docs/type-aliases/BeforeShutdownListener.md +1 -1
- package/docs/type-aliases/EventErrorListenerFn.md +1 -1
- package/docs/type-aliases/EventListenerFn.md +1 -1
- package/docs/type-aliases/FuncParamType.md +1 -1
- package/docs/type-aliases/PromptExamples.md +1 -1
- package/docs/type-aliases/SemaphoreIsReadyFuncType.md +1 -1
- package/docs/type-aliases/TFunc.md +1 -1
- package/docs/variables/AIChatRoles.md +1 -1
- package/docs/variables/AIMessageTypes.md +1 -1
- package/docs/variables/AITextGenerationFinishReasons.md +1 -1
- package/docs/variables/ActionNames.md +1 -1
- package/docs/variables/ClientToolFuncSchema.md +1 -1
- package/docs/variables/DEFAULT_CONFIG_NAME.md +1 -1
- package/docs/variables/DefaultAsyncSemaphoreCapacity.md +1 -1
- package/docs/variables/EventBusName.md +1 -1
- package/docs/variables/EventName.md +1 -1
- package/docs/variables/FilenameReservedRegex.md +1 -1
- package/docs/variables/LLM_TOKENIZER_NAMES.md +1 -1
- package/docs/variables/LLM_TOKENIZER_NAMES_MAP.md +1 -1
- package/docs/variables/PASSING_SCORE.md +1 -1
- package/docs/variables/RStreamErrCode.md +1 -1
- package/docs/variables/RemoteToolFuncSchema.md +1 -1
- package/docs/variables/ResponseRStreamErrCode.md +1 -1
- package/docs/variables/SHUTDOWN_SIGNALS.md +1 -1
- package/docs/variables/SSEChannelAlreadyClosedErrCode.md +1 -1
- package/docs/variables/SecondaryCache.md +1 -1
- package/docs/variables/ServerToolFuncSchema.md +1 -1
- package/docs/variables/ToolAsyncCancelableBit.md +1 -1
- package/docs/variables/ToolAsyncMultiTaskBit.md +1 -1
- package/docs/variables/ToolAsyncPriorityBit.md +1 -1
- package/docs/variables/ToolFuncSchema.md +1 -1
- package/docs/variables/WindowsReservedNameRegex.md +1 -1
- package/docs/variables/base32768.md +1 -1
- package/docs/variables/defaultTemplateFormat.md +2 -2
- package/docs/variables/event.md +1 -1
- package/docs/variables/eventClient.md +1 -1
- package/docs/variables/eventServer.md +1 -1
- package/docs/variables/lrucache.md +1 -1
- package/package.json +5 -3
- package/dist/chunk-YVFGQB4L.mjs +0 -1
- 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/functions/filenameReservedRegex.md +0 -20
- package/docs/functions/hfParse.md +0 -24
- package/docs/functions/hfTokenize.md +0 -27
- 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/reControlCharsRegex.md +0 -19
- 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/type-aliases/FStringPromptTemplateNode.md +0 -14
- package/docs/type-aliases/PromptTemplateType.md +0 -11
- package/docs/type-aliases/PromptType.md +0 -11
- package/docs/variables/HFBuiltins.md +0 -122
- package/docs/variables/PromptTemplateTypes.md +0 -11
- package/docs/variables/PromptTypes.md +0 -14
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: FewShotPromptTemplateOptions\<T\>
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:10](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:10](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/prompt/few-shot-prompt-template.ts#L10)
|
|
10
10
|
|
|
11
11
|
## Extends
|
|
12
12
|
|
|
@@ -26,7 +26,7 @@ Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:10](h
|
|
|
26
26
|
|
|
27
27
|
> `optional` **compiledTemplate**: `any`
|
|
28
28
|
|
|
29
|
-
Defined in:
|
|
29
|
+
Defined in: packages/template-engines/dist/index.d.ts:18
|
|
30
30
|
|
|
31
31
|
#### Inherited from
|
|
32
32
|
|
|
@@ -38,7 +38,7 @@ Defined in: [packages/ai-tool/src/utils/prompt/prompt-template.ts:15](https://gi
|
|
|
38
38
|
|
|
39
39
|
> `optional` **data**: `Record`\<`string`, `any`\>
|
|
40
40
|
|
|
41
|
-
Defined in:
|
|
41
|
+
Defined in: packages/template-engines/dist/index.d.ts:15
|
|
42
42
|
|
|
43
43
|
#### Inherited from
|
|
44
44
|
|
|
@@ -50,7 +50,7 @@ Defined in: [packages/ai-tool/src/utils/prompt/prompt-template.ts:12](https://gi
|
|
|
50
50
|
|
|
51
51
|
> **examplePrompt**: [`PromptTemplateOptions`](PromptTemplateOptions.md) \| [`PromptTemplate`](../classes/PromptTemplate.md)
|
|
52
52
|
|
|
53
|
-
Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:19](https://github.com/isdk/ai-tool.js/blob/
|
|
53
|
+
Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:19](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/prompt/few-shot-prompt-template.ts#L19)
|
|
54
54
|
|
|
55
55
|
An [PromptTemplate](../classes/PromptTemplate.md) used to format a single example.
|
|
56
56
|
|
|
@@ -60,7 +60,7 @@ An [PromptTemplate](../classes/PromptTemplate.md) used to format a single exampl
|
|
|
60
60
|
|
|
61
61
|
> **examples**: [`PromptExamples`](../type-aliases/PromptExamples.md)\<`T`\>
|
|
62
62
|
|
|
63
|
-
Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:14](https://github.com/isdk/ai-tool.js/blob/
|
|
63
|
+
Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:14](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/prompt/few-shot-prompt-template.ts#L14)
|
|
64
64
|
|
|
65
65
|
The few shot examples to use in the prompt.
|
|
66
66
|
|
|
@@ -70,7 +70,7 @@ The few shot examples to use in the prompt.
|
|
|
70
70
|
|
|
71
71
|
> `optional` **exampleSeparator**: `string`
|
|
72
72
|
|
|
73
|
-
Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:24](https://github.com/isdk/ai-tool.js/blob/
|
|
73
|
+
Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:24](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/prompt/few-shot-prompt-template.ts#L24)
|
|
74
74
|
|
|
75
75
|
String separator used to join the prefix, the examples, and suffix.
|
|
76
76
|
|
|
@@ -80,7 +80,7 @@ String separator used to join the prefix, the examples, and suffix.
|
|
|
80
80
|
|
|
81
81
|
> `optional` **ignoreInitialize**: `boolean`
|
|
82
82
|
|
|
83
|
-
Defined in:
|
|
83
|
+
Defined in: packages/template-engines/dist/index.d.ts:19
|
|
84
84
|
|
|
85
85
|
#### Inherited from
|
|
86
86
|
|
|
@@ -92,7 +92,7 @@ Defined in: [packages/ai-tool/src/utils/prompt/prompt-template.ts:16](https://gi
|
|
|
92
92
|
|
|
93
93
|
> `optional` **inputVariables**: `string`[]
|
|
94
94
|
|
|
95
|
-
Defined in:
|
|
95
|
+
Defined in: packages/template-engines/dist/index.d.ts:17
|
|
96
96
|
|
|
97
97
|
#### Inherited from
|
|
98
98
|
|
|
@@ -104,7 +104,7 @@ Defined in: [packages/ai-tool/src/utils/prompt/prompt-template.ts:14](https://gi
|
|
|
104
104
|
|
|
105
105
|
> `optional` **prefix**: `string`
|
|
106
106
|
|
|
107
|
-
Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:31](https://github.com/isdk/ai-tool.js/blob/
|
|
107
|
+
Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:31](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/prompt/few-shot-prompt-template.ts#L31)
|
|
108
108
|
|
|
109
109
|
A prompt template string to put before the examples.
|
|
110
110
|
|
|
@@ -118,7 +118,7 @@ A prompt template string to put before the examples.
|
|
|
118
118
|
|
|
119
119
|
> `optional` **suffix**: `string`
|
|
120
120
|
|
|
121
|
-
Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:36](https://github.com/isdk/ai-tool.js/blob/
|
|
121
|
+
Defined in: [packages/ai-tool/src/utils/prompt/few-shot-prompt-template.ts:36](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/prompt/few-shot-prompt-template.ts#L36)
|
|
122
122
|
|
|
123
123
|
A prompt template string to put after the examples.
|
|
124
124
|
|
|
@@ -128,7 +128,7 @@ A prompt template string to put after the examples.
|
|
|
128
128
|
|
|
129
129
|
> `optional` **template**: `string`
|
|
130
130
|
|
|
131
|
-
Defined in:
|
|
131
|
+
Defined in: packages/template-engines/dist/index.d.ts:14
|
|
132
132
|
|
|
133
133
|
#### Inherited from
|
|
134
134
|
|
|
@@ -140,7 +140,7 @@ Defined in: [packages/ai-tool/src/utils/prompt/prompt-template.ts:11](https://gi
|
|
|
140
140
|
|
|
141
141
|
> `optional` **templateFormat**: `string`
|
|
142
142
|
|
|
143
|
-
Defined in:
|
|
143
|
+
Defined in: packages/template-engines/dist/index.d.ts:16
|
|
144
144
|
|
|
145
145
|
#### Inherited from
|
|
146
146
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: FuncItem
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:34](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:34](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L34)
|
|
10
10
|
|
|
11
11
|
## Extends
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:34](https://github.com/isdk/ai-to
|
|
|
18
18
|
|
|
19
19
|
> `optional` **alias**: `string` \| `string`[]
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:31](https://github.com/isdk/ai-tool.js/blob/
|
|
21
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:31](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L31)
|
|
22
22
|
|
|
23
23
|
#### Inherited from
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:31](https://github.com/isdk/ai-to
|
|
|
30
30
|
|
|
31
31
|
> `optional` **func**: [`TFunc`](../type-aliases/TFunc.md)
|
|
32
32
|
|
|
33
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:35](https://github.com/isdk/ai-tool.js/blob/
|
|
33
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:35](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L35)
|
|
34
34
|
|
|
35
35
|
***
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:35](https://github.com/isdk/ai-to
|
|
|
38
38
|
|
|
39
39
|
> `optional` **isApi**: `boolean`
|
|
40
40
|
|
|
41
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:29](https://github.com/isdk/ai-tool.js/blob/
|
|
41
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:29](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L29)
|
|
42
42
|
|
|
43
43
|
#### Inherited from
|
|
44
44
|
|
|
@@ -50,7 +50,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:29](https://github.com/isdk/ai-to
|
|
|
50
50
|
|
|
51
51
|
> `optional` **name**: `string`
|
|
52
52
|
|
|
53
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:23](https://github.com/isdk/ai-tool.js/blob/
|
|
53
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:23](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L23)
|
|
54
54
|
|
|
55
55
|
#### Inherited from
|
|
56
56
|
|
|
@@ -62,7 +62,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:23](https://github.com/isdk/ai-to
|
|
|
62
62
|
|
|
63
63
|
> `optional` **params**: [`FuncParams`](FuncParams.md) \| [`FuncParam`](FuncParam.md)[]
|
|
64
64
|
|
|
65
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:24](https://github.com/isdk/ai-tool.js/blob/
|
|
65
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:24](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L24)
|
|
66
66
|
|
|
67
67
|
#### Inherited from
|
|
68
68
|
|
|
@@ -74,7 +74,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:24](https://github.com/isdk/ai-to
|
|
|
74
74
|
|
|
75
75
|
> `optional` **result**: `string`
|
|
76
76
|
|
|
77
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:25](https://github.com/isdk/ai-tool.js/blob/
|
|
77
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:25](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L25)
|
|
78
78
|
|
|
79
79
|
#### Inherited from
|
|
80
80
|
|
|
@@ -86,7 +86,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:25](https://github.com/isdk/ai-to
|
|
|
86
86
|
|
|
87
87
|
> `optional` **scope**: `any`
|
|
88
88
|
|
|
89
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:26](https://github.com/isdk/ai-tool.js/blob/
|
|
89
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:26](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L26)
|
|
90
90
|
|
|
91
91
|
#### Inherited from
|
|
92
92
|
|
|
@@ -98,7 +98,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:26](https://github.com/isdk/ai-to
|
|
|
98
98
|
|
|
99
99
|
> `optional` **setup**: (`this`, `options`?) => `void`
|
|
100
100
|
|
|
101
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:28](https://github.com/isdk/ai-tool.js/blob/
|
|
101
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:28](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L28)
|
|
102
102
|
|
|
103
103
|
#### Parameters
|
|
104
104
|
|
|
@@ -124,7 +124,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:28](https://github.com/isdk/ai-to
|
|
|
124
124
|
|
|
125
125
|
> `optional` **stream**: `boolean`
|
|
126
126
|
|
|
127
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:30](https://github.com/isdk/ai-tool.js/blob/
|
|
127
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:30](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L30)
|
|
128
128
|
|
|
129
129
|
#### Inherited from
|
|
130
130
|
|
|
@@ -136,7 +136,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:30](https://github.com/isdk/ai-to
|
|
|
136
136
|
|
|
137
137
|
> `optional` **tags**: `string` \| `string`[]
|
|
138
138
|
|
|
139
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:27](https://github.com/isdk/ai-tool.js/blob/
|
|
139
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:27](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L27)
|
|
140
140
|
|
|
141
141
|
#### Inherited from
|
|
142
142
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: FuncParam
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:7](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:7](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L7)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:7](https://github.com/isdk/ai-too
|
|
|
14
14
|
|
|
15
15
|
> `optional` **asyncFeatures**: `number`
|
|
16
16
|
|
|
17
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:12](https://github.com/isdk/ai-tool.js/blob/
|
|
17
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:12](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L12)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:12](https://github.com/isdk/ai-to
|
|
|
22
22
|
|
|
23
23
|
> `optional` **depends**: `object`
|
|
24
24
|
|
|
25
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:13](https://github.com/isdk/ai-tool.js/blob/
|
|
25
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:13](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L13)
|
|
26
26
|
|
|
27
27
|
#### Index Signature
|
|
28
28
|
|
|
@@ -34,7 +34,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:13](https://github.com/isdk/ai-to
|
|
|
34
34
|
|
|
35
35
|
> `optional` **description**: `string`
|
|
36
36
|
|
|
37
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:11](https://github.com/isdk/ai-tool.js/blob/
|
|
37
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:11](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L11)
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
@@ -42,7 +42,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:11](https://github.com/isdk/ai-to
|
|
|
42
42
|
|
|
43
43
|
> `optional` **name**: `string`
|
|
44
44
|
|
|
45
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
45
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:8](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L8)
|
|
46
46
|
|
|
47
47
|
***
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ Defined in: [packages/ai-tool/src/tool-func.ts:8](https://github.com/isdk/ai-too
|
|
|
50
50
|
|
|
51
51
|
> `optional` **required**: `boolean`
|
|
52
52
|
|
|
53
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:10](https://github.com/isdk/ai-tool.js/blob/
|
|
53
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:10](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L10)
|
|
54
54
|
|
|
55
55
|
***
|
|
56
56
|
|
|
@@ -58,4 +58,4 @@ Defined in: [packages/ai-tool/src/tool-func.ts:10](https://github.com/isdk/ai-to
|
|
|
58
58
|
|
|
59
59
|
> `optional` **type**: `string`
|
|
60
60
|
|
|
61
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:9](https://github.com/isdk/ai-tool.js/blob/
|
|
61
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:9](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L9)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: FuncParams
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:16](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:16](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L16)
|
|
10
10
|
|
|
11
11
|
## Indexable
|
|
12
12
|
|
package/docs/interfaces/Funcs.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: Funcs
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/ai-tool/src/tool-func.ts:42](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [packages/ai-tool/src/tool-func.ts:42](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/tool-func.ts#L42)
|
|
10
10
|
|
|
11
11
|
## Indexable
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: HashAlgoParams
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/ai-tool/src/utils/hash/hash.ts:10](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/hash/hash.ts:10](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/hash/hash.ts#L10)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [packages/ai-tool/src/utils/hash/hash.ts:10](https://github.com/isdk
|
|
|
14
14
|
|
|
15
15
|
> `optional` **hashAlgo**: [`HashAlgorithm`](../enumerations/HashAlgorithm.md)
|
|
16
16
|
|
|
17
|
-
Defined in: [packages/ai-tool/src/utils/hash/hash.ts:11](https://github.com/isdk/ai-tool.js/blob/
|
|
17
|
+
Defined in: [packages/ai-tool/src/utils/hash/hash.ts:11](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/hash/hash.ts#L11)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Defined in: [packages/ai-tool/src/utils/hash/hash.ts:11](https://github.com/isdk
|
|
|
22
22
|
|
|
23
23
|
> `optional` **outputType**: `"string"` \| `"hex"` \| `"binary"`
|
|
24
24
|
|
|
25
|
-
Defined in: [packages/ai-tool/src/utils/hash/hash.ts:13](https://github.com/isdk/ai-tool.js/blob/
|
|
25
|
+
Defined in: [packages/ai-tool/src/utils/hash/hash.ts:13](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/hash/hash.ts#L13)
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
@@ -30,4 +30,4 @@ Defined in: [packages/ai-tool/src/utils/hash/hash.ts:13](https://github.com/isdk
|
|
|
30
30
|
|
|
31
31
|
> `optional` **seed**: `number`
|
|
32
32
|
|
|
33
|
-
Defined in: [packages/ai-tool/src/utils/hash/hash.ts:12](https://github.com/isdk/ai-tool.js/blob/
|
|
33
|
+
Defined in: [packages/ai-tool/src/utils/hash/hash.ts:12](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/hash/hash.ts#L12)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: IFileMetaInfo
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:224](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/load-file-from-paths.ts#L224)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:210](https://git
|
|
|
14
14
|
|
|
15
15
|
> **ctime**: `Date`
|
|
16
16
|
|
|
17
|
-
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:
|
|
17
|
+
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:227](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/load-file-from-paths.ts#L227)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:213](https://git
|
|
|
22
22
|
|
|
23
23
|
> **hash**: `string`
|
|
24
24
|
|
|
25
|
-
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:
|
|
25
|
+
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:229](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/load-file-from-paths.ts#L229)
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:215](https://git
|
|
|
30
30
|
|
|
31
31
|
> **id**: `string`
|
|
32
32
|
|
|
33
|
-
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:
|
|
33
|
+
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:231](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/load-file-from-paths.ts#L231)
|
|
34
34
|
|
|
35
35
|
***
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:217](https://git
|
|
|
38
38
|
|
|
39
39
|
> **mimeType**: `string`
|
|
40
40
|
|
|
41
|
-
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:
|
|
41
|
+
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:230](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/load-file-from-paths.ts#L230)
|
|
42
42
|
|
|
43
43
|
***
|
|
44
44
|
|
|
@@ -46,7 +46,7 @@ Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:216](https://git
|
|
|
46
46
|
|
|
47
47
|
> **mtime**: `Date`
|
|
48
48
|
|
|
49
|
-
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:
|
|
49
|
+
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:226](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/load-file-from-paths.ts#L226)
|
|
50
50
|
|
|
51
51
|
***
|
|
52
52
|
|
|
@@ -54,7 +54,7 @@ Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:212](https://git
|
|
|
54
54
|
|
|
55
55
|
> **name**: `string`
|
|
56
56
|
|
|
57
|
-
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:
|
|
57
|
+
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:225](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/load-file-from-paths.ts#L225)
|
|
58
58
|
|
|
59
59
|
***
|
|
60
60
|
|
|
@@ -62,4 +62,4 @@ Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:211](https://git
|
|
|
62
62
|
|
|
63
63
|
> **size**: `number`
|
|
64
64
|
|
|
65
|
-
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:
|
|
65
|
+
Defined in: [packages/ai-tool/src/utils/load-file-from-paths.ts:228](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/load-file-from-paths.ts#L228)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: IReadTextFileChunksOptions
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/ai-tool/src/utils/read-text-file-chunks.ts:5](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/read-text-file-chunks.ts:5](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/read-text-file-chunks.ts#L5)
|
|
10
10
|
|
|
11
11
|
## Extends
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Defined in: [packages/ai-tool/src/utils/read-text-file-chunks.ts:5](https://gith
|
|
|
18
18
|
|
|
19
19
|
> `optional` **best**: `boolean`
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
21
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:8](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L8)
|
|
22
22
|
|
|
23
23
|
#### Inherited from
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:8](https://gi
|
|
|
30
30
|
|
|
31
31
|
> `optional` **bySentence**: `boolean`
|
|
32
32
|
|
|
33
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:4](https://github.com/isdk/ai-tool.js/blob/
|
|
33
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:4](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L4)
|
|
34
34
|
|
|
35
35
|
#### Inherited from
|
|
36
36
|
|
|
@@ -42,7 +42,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:4](https://gi
|
|
|
42
42
|
|
|
43
43
|
> `optional` **completeSentence**: `boolean`
|
|
44
44
|
|
|
45
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:9](https://github.com/isdk/ai-tool.js/blob/
|
|
45
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:9](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L9)
|
|
46
46
|
|
|
47
47
|
#### Inherited from
|
|
48
48
|
|
|
@@ -54,7 +54,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:9](https://gi
|
|
|
54
54
|
|
|
55
55
|
> `optional` **corrected**: `boolean`
|
|
56
56
|
|
|
57
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:10](https://github.com/isdk/ai-tool.js/blob/
|
|
57
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:10](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L10)
|
|
58
58
|
|
|
59
59
|
#### Inherited from
|
|
60
60
|
|
|
@@ -66,7 +66,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:10](https://g
|
|
|
66
66
|
|
|
67
67
|
> `optional` **countLLMTokens**: (`text`, `modelId`?) => `Promise`\<`number`\>
|
|
68
68
|
|
|
69
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:12](https://github.com/isdk/ai-tool.js/blob/
|
|
69
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:12](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L12)
|
|
70
70
|
|
|
71
71
|
#### Parameters
|
|
72
72
|
|
|
@@ -92,7 +92,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:12](https://g
|
|
|
92
92
|
|
|
93
93
|
> `optional` **metaInfo**: `RequireAtLeastOne`\<`Partial`\<[`IFileMetaInfo`](IFileMetaInfo.md)\>, `"size"`\>
|
|
94
94
|
|
|
95
|
-
Defined in: [packages/ai-tool/src/utils/read-text-file-chunks.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
95
|
+
Defined in: [packages/ai-tool/src/utils/read-text-file-chunks.ts:8](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/read-text-file-chunks.ts#L8)
|
|
96
96
|
|
|
97
97
|
***
|
|
98
98
|
|
|
@@ -100,7 +100,7 @@ Defined in: [packages/ai-tool/src/utils/read-text-file-chunks.ts:8](https://gith
|
|
|
100
100
|
|
|
101
101
|
> `optional` **modelId**: `string`
|
|
102
102
|
|
|
103
|
-
Defined in: [packages/ai-tool/src/utils/read-text-file-chunks.ts:7](https://github.com/isdk/ai-tool.js/blob/
|
|
103
|
+
Defined in: [packages/ai-tool/src/utils/read-text-file-chunks.ts:7](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/read-text-file-chunks.ts#L7)
|
|
104
104
|
|
|
105
105
|
#### Overrides
|
|
106
106
|
|
|
@@ -112,7 +112,7 @@ Defined in: [packages/ai-tool/src/utils/read-text-file-chunks.ts:7](https://gith
|
|
|
112
112
|
|
|
113
113
|
> `optional` **sentences**: `string`[]
|
|
114
114
|
|
|
115
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:7](https://github.com/isdk/ai-tool.js/blob/
|
|
115
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:7](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L7)
|
|
116
116
|
|
|
117
117
|
#### Inherited from
|
|
118
118
|
|
|
@@ -124,7 +124,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:7](https://gi
|
|
|
124
124
|
|
|
125
125
|
> `optional` **size**: `number`
|
|
126
126
|
|
|
127
|
-
Defined in: [packages/ai-tool/src/utils/read-text-file-chunks.ts:6](https://github.com/isdk/ai-tool.js/blob/
|
|
127
|
+
Defined in: [packages/ai-tool/src/utils/read-text-file-chunks.ts:6](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/read-text-file-chunks.ts#L6)
|
|
128
128
|
|
|
129
129
|
#### Overrides
|
|
130
130
|
|
|
@@ -136,7 +136,7 @@ Defined in: [packages/ai-tool/src/utils/read-text-file-chunks.ts:6](https://gith
|
|
|
136
136
|
|
|
137
137
|
> `optional` **truncLastSection**: `boolean`
|
|
138
138
|
|
|
139
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:11](https://github.com/isdk/ai-tool.js/blob/
|
|
139
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:11](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L11)
|
|
140
140
|
|
|
141
141
|
#### Inherited from
|
|
142
142
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: ITruncateToTokenLimitOptions
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:3](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:3](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L3)
|
|
10
10
|
|
|
11
11
|
## Extended by
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:3](https://gi
|
|
|
18
18
|
|
|
19
19
|
> `optional` **best**: `boolean`
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:8](https://github.com/isdk/ai-tool.js/blob/
|
|
21
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:8](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L8)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:8](https://gi
|
|
|
26
26
|
|
|
27
27
|
> `optional` **bySentence**: `boolean`
|
|
28
28
|
|
|
29
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:4](https://github.com/isdk/ai-tool.js/blob/
|
|
29
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:4](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L4)
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:4](https://gi
|
|
|
34
34
|
|
|
35
35
|
> `optional` **completeSentence**: `boolean`
|
|
36
36
|
|
|
37
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:9](https://github.com/isdk/ai-tool.js/blob/
|
|
37
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:9](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L9)
|
|
38
38
|
|
|
39
39
|
***
|
|
40
40
|
|
|
@@ -42,7 +42,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:9](https://gi
|
|
|
42
42
|
|
|
43
43
|
> `optional` **corrected**: `boolean`
|
|
44
44
|
|
|
45
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:10](https://github.com/isdk/ai-tool.js/blob/
|
|
45
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:10](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L10)
|
|
46
46
|
|
|
47
47
|
***
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:10](https://g
|
|
|
50
50
|
|
|
51
51
|
> `optional` **countLLMTokens**: (`text`, `modelId`?) => `Promise`\<`number`\>
|
|
52
52
|
|
|
53
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:12](https://github.com/isdk/ai-tool.js/blob/
|
|
53
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:12](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L12)
|
|
54
54
|
|
|
55
55
|
#### Parameters
|
|
56
56
|
|
|
@@ -72,7 +72,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:12](https://g
|
|
|
72
72
|
|
|
73
73
|
> `optional` **modelId**: `string`
|
|
74
74
|
|
|
75
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:6](https://github.com/isdk/ai-tool.js/blob/
|
|
75
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:6](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L6)
|
|
76
76
|
|
|
77
77
|
***
|
|
78
78
|
|
|
@@ -80,7 +80,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:6](https://gi
|
|
|
80
80
|
|
|
81
81
|
> `optional` **sentences**: `string`[]
|
|
82
82
|
|
|
83
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:7](https://github.com/isdk/ai-tool.js/blob/
|
|
83
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:7](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L7)
|
|
84
84
|
|
|
85
85
|
***
|
|
86
86
|
|
|
@@ -88,7 +88,7 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:7](https://gi
|
|
|
88
88
|
|
|
89
89
|
> `optional` **size**: `number`
|
|
90
90
|
|
|
91
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:5](https://github.com/isdk/ai-tool.js/blob/
|
|
91
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:5](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L5)
|
|
92
92
|
|
|
93
93
|
***
|
|
94
94
|
|
|
@@ -96,4 +96,4 @@ Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:5](https://gi
|
|
|
96
96
|
|
|
97
97
|
> `optional` **truncLastSection**: `boolean`
|
|
98
98
|
|
|
99
|
-
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:11](https://github.com/isdk/ai-tool.js/blob/
|
|
99
|
+
Defined in: [packages/ai-tool/src/utils/truncate-to-token-limit.ts:11](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/truncate-to-token-limit.ts#L11)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: JsonFilter
|
|
8
8
|
|
|
9
|
-
Defined in: [packages/ai-tool/src/utils/json-filter.ts:1](https://github.com/isdk/ai-tool.js/blob/
|
|
9
|
+
Defined in: [packages/ai-tool/src/utils/json-filter.ts:1](https://github.com/isdk/ai-tool.js/blob/b0ee9498dddfa5222989cf00502bb34c601df743/src/utils/json-filter.ts#L1)
|
|
10
10
|
|
|
11
11
|
## Indexable
|
|
12
12
|
|