@isdk/ai-tool 0.2.0 → 0.2.1
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-TOUPOZHH.mjs +1 -0
- package/dist/funcs.d.mts +1 -1
- package/dist/funcs.d.ts +1 -1
- package/dist/funcs.js +1 -1
- package/dist/funcs.mjs +1 -1
- package/dist/{index-nP9lSU6E.d.mts → index-DUEs7T8M.d.mts} +2 -2
- package/dist/{index-nP9lSU6E.d.ts → index-DUEs7T8M.d.ts} +2 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/docs/README.md +5 -3
- package/docs/_media/CONTRIBUTING.md +18 -0
- package/docs/_media/LICENSE-MIT +22 -0
- package/docs/classes/AbortError.md +108 -129
- package/docs/classes/AlreadyExistsError.md +105 -126
- package/docs/classes/BaseError.md +112 -125
- package/docs/classes/CancelableAbility.md +136 -188
- package/docs/classes/ClientTools.md +1005 -1107
- package/docs/classes/CommonError.md +115 -136
- package/docs/classes/ConfigFile.md +150 -163
- package/docs/classes/EventClient.md +1128 -1282
- package/docs/classes/EventServer.md +1165 -1303
- package/docs/classes/EventToolFunc.md +958 -1028
- package/docs/classes/FStringPromptTemplate.md +352 -438
- package/docs/classes/FewShotPromptTemplate.md +364 -464
- package/docs/classes/GolangPromptTemplate.md +352 -438
- package/docs/classes/HFEnvironment.md +53 -79
- package/docs/classes/HFInterpreter.md +20 -377
- package/docs/classes/HFTemplate.md +21 -33
- package/docs/classes/HfPromptTemplate.md +352 -438
- package/docs/classes/IntSet.md +67 -100
- package/docs/classes/NotFoundError.md +105 -126
- package/docs/classes/NotImplementationError.md +105 -126
- package/docs/classes/PromptExampleSelector.md +58 -70
- package/docs/classes/PromptTemplate.md +338 -422
- package/docs/classes/ReadableStreamError.md +108 -129
- package/docs/classes/ResClientTools.md +916 -1026
- package/docs/classes/ResServerTools.md +919 -1026
- package/docs/classes/SSEChannel.md +93 -112
- package/docs/classes/Semaphore.md +44 -140
- package/docs/classes/ServerTools.md +981 -1072
- package/docs/classes/TaskAbortController.md +46 -66
- package/docs/classes/ToolFunc.md +840 -910
- package/docs/enumerations/AsyncFeatureBits.md +37 -0
- package/docs/enumerations/AsyncFeatures.md +37 -0
- package/docs/enumerations/ErrorCode.md +217 -0
- package/docs/enumerations/XXHashAlgorithm.md +27 -0
- package/docs/functions/AIArgProcessor.md +27 -0
- package/docs/functions/AIStream.md +50 -0
- package/docs/functions/ChoiceArgProcessor.md +27 -0
- package/docs/functions/RateLimit.md +33 -0
- package/docs/functions/TemplateArgProcessor.md +27 -0
- package/docs/functions/backendEventable.md +23 -0
- package/docs/functions/canonicalize.md +21 -0
- package/docs/functions/countRegexMatches.md +33 -0
- package/docs/functions/createAbilityInjector.md +87 -0
- package/docs/functions/createCallbacksTransformer.md +49 -0
- package/docs/functions/createEmptyReadableStream.md +23 -0
- package/docs/functions/createEndWithRepetitionDetector.md +29 -0
- package/docs/functions/createError.md +35 -0
- package/docs/functions/createEventStreamTransformer.md +33 -0
- package/docs/functions/createHfValueFunc.md +29 -0
- package/docs/functions/createLRUCache.md +23 -0
- package/docs/functions/dateToText.md +23 -0
- package/docs/functions/expandEnv.md +40 -0
- package/docs/functions/expandObjEnv.md +54 -0
- package/docs/functions/extNameLevel.md +43 -0
- package/docs/functions/fileIsExists.md +34 -0
- package/docs/functions/filenameReservedRegex.md +22 -0
- package/docs/functions/filterValidFnScope.md +21 -0
- package/docs/functions/findPort.md +23 -0
- package/docs/functions/formatISO.md +71 -0
- package/docs/functions/getAllEnumKeys.md +31 -0
- package/docs/functions/getConfigFileNames.md +23 -0
- package/docs/functions/getConfigs.md +23 -0
- package/docs/functions/getKeysPath.md +38 -0
- package/docs/functions/getMultiLevelExtname.md +31 -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/hfParse.md +24 -0
- package/docs/functions/hfTokenize.md +25 -0
- package/docs/functions/interpolateEnv.md +25 -0
- package/docs/functions/interpolateFString.md +27 -0
- package/docs/functions/interpolateGolangTemplate.md +31 -0
- package/docs/functions/isModelNameMatched.md +45 -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 +45 -0
- package/docs/functions/jsonToMarkdownStr.md +31 -0
- package/docs/functions/loadFileFromPaths.md +54 -0
- package/docs/functions/loadTextFromPaths.md +29 -0
- package/docs/functions/lrucache.md +29 -0
- package/docs/functions/makeToolFuncCancelable.md +23 -0
- package/docs/functions/matchUrlProtocol.md +48 -0
- package/docs/functions/memoize.md +27 -0
- package/docs/functions/messagesToText.md +21 -0
- package/docs/functions/paramsSizeToScaleStr.md +32 -0
- package/docs/functions/parseCommand.md +33 -0
- package/docs/functions/parseDateFormat.md +360 -0
- package/docs/functions/parseFString.md +26 -0
- package/docs/functions/parseISO.md +72 -0
- package/docs/functions/parseJsJson.md +38 -0
- package/docs/functions/parseObjectArgInfo.md +27 -0
- package/docs/functions/parseObjectArgumentInfos.md +25 -0
- package/docs/functions/parseObjectArguments.md +68 -0
- package/docs/functions/parseObjectArgumentsAsArgInfos.md +42 -0
- package/docs/functions/parseYaml.md +21 -0
- package/docs/functions/quoteStr.md +21 -0
- package/docs/functions/reControlCharsRegex.md +21 -0
- package/docs/functions/readFilenamesRecursiveSync.md +47 -0
- package/docs/functions/readableFromAsyncIterable.md +28 -0
- package/docs/functions/registerCoreTools.md +17 -0
- package/docs/functions/registerYamlTag.md +21 -0
- package/docs/functions/sanitizeFilename.md +37 -0
- package/docs/functions/sanitizeFilepath.md +31 -0
- package/docs/functions/saveConfigFile.md +25 -0
- package/docs/functions/scaleStrToParamsSize.md +27 -0
- package/docs/functions/simplifyObjectArguments.md +21 -0
- package/docs/functions/sortedValues.md +25 -0
- package/docs/functions/splitSentence.md +37 -0
- package/docs/functions/stringifyYaml.md +49 -0
- package/docs/functions/textToDate.md +23 -0
- package/docs/functions/throwError.md +37 -0
- package/docs/functions/toDate.md +76 -0
- package/docs/functions/toDateTime.md +21 -0
- package/docs/functions/trimStartOfStreamHelper.md +41 -0
- package/docs/functions/truncTo.md +47 -0
- package/docs/functions/uuid.md +23 -0
- package/docs/functions/uuidParse.md +21 -0
- package/docs/functions/uuidStringify.md +23 -0
- package/docs/functions/uuidValidate.md +21 -0
- package/docs/functions/uuidVersion.md +21 -0
- package/docs/functions/uuidv1.md +47 -0
- package/docs/functions/uuidv4.md +47 -0
- package/docs/functions/uuidv5.md +51 -0
- package/docs/functions/wait.md +21 -0
- package/docs/functions/xxhash.md +25 -0
- package/docs/functions/xxhash32.md +23 -0
- package/docs/functions/xxhash64.md +23 -0
- package/docs/functions/xxhashAsStr.md +25 -0
- package/docs/globals.md +236 -0
- package/docs/interfaces/AIChatAssistantMessageParam.md +29 -38
- package/docs/interfaces/AIChatContentPartImage.md +11 -16
- package/docs/interfaces/AIChatContentPartText.md +9 -12
- package/docs/interfaces/AIChatMessageParamBase.md +12 -19
- package/docs/interfaces/AIChatMessageToolCall.md +18 -21
- package/docs/interfaces/AIChatSystemMessageParam.md +16 -22
- package/docs/interfaces/AIChatToolMessageParam.md +19 -26
- package/docs/interfaces/AIChatUserMessageParam.md +32 -42
- package/docs/interfaces/AIChoiceConfig.md +31 -39
- package/docs/interfaces/AIResult.md +26 -33
- package/docs/interfaces/AIStreamParser.md +24 -18
- package/docs/interfaces/AIStreamParserOptions.md +8 -10
- package/docs/interfaces/BaseFunc.md +55 -75
- package/docs/interfaces/BaseFuncItem.md +43 -61
- package/docs/interfaces/CancelableAbilityOptions.md +43 -54
- package/docs/interfaces/ClientFuncItem.md +66 -83
- package/docs/interfaces/DotenvExpandOptions.md +15 -19
- package/docs/interfaces/DotenvExpandOutput.md +11 -14
- package/docs/interfaces/DotenvParseInput.md +6 -2
- package/docs/interfaces/DotenvParseOutput.md +6 -2
- package/docs/interfaces/DotenvPopulateInput.md +6 -2
- package/docs/interfaces/EventClientFuncParams.md +22 -33
- package/docs/interfaces/EventServerFuncParams.md +27 -35
- package/docs/interfaces/FewShotPromptTemplateOptions.md +58 -74
- package/docs/interfaces/FuncItem.md +53 -70
- package/docs/interfaces/FuncParam.md +29 -36
- package/docs/interfaces/FuncParams.md +6 -2
- package/docs/interfaces/Funcs.md +6 -2
- package/docs/interfaces/JsonFilter.md +6 -2
- package/docs/interfaces/ParseObjectArgumentOptions.md +23 -29
- package/docs/interfaces/PromptExampleSelectorOptions.md +13 -16
- package/docs/interfaces/PromptTemplateOptions.md +31 -40
- package/docs/interfaces/RemoteFuncItem.md +64 -82
- package/docs/interfaces/ResClientFuncParams.md +14 -19
- package/docs/interfaces/ResServerFuncParams.md +28 -36
- package/docs/interfaces/SanitizeFilenameOptions.md +11 -14
- package/docs/interfaces/ServerFuncItem.md +70 -88
- package/docs/interfaces/ServerFuncParams.md +15 -20
- package/docs/interfaces/StreamCallbacksAndOptions.md +36 -65
- package/docs/interfaces/TaskAbortControllers.md +6 -2
- package/docs/interfaces/TaskPromise.md +48 -61
- package/docs/interfaces/ToolFuncPackage.md +18 -32
- package/docs/type-aliases/AIChatContentPart.md +13 -0
- package/docs/type-aliases/AIChatMessageParam.md +13 -0
- package/docs/type-aliases/AIChatRole.md +13 -0
- package/docs/type-aliases/AIMessageType.md +13 -0
- package/docs/type-aliases/AIModelNameRule.md +13 -0
- package/docs/type-aliases/AIModelNameRuleFn.md +21 -0
- package/docs/type-aliases/AIModelNameRules.md +13 -0
- package/docs/type-aliases/AITextGenerationFinishReason.md +13 -0
- package/docs/type-aliases/ActionName.md +13 -0
- package/docs/type-aliases/AsyncTaskId.md +13 -0
- package/docs/type-aliases/EventErrorListenerFn.md +27 -0
- package/docs/type-aliases/EventListenerFn.md +25 -0
- package/docs/type-aliases/FStringPromptTemplateNode.md +16 -0
- package/docs/type-aliases/FuncParamType.md +13 -0
- package/docs/type-aliases/PromptExamples.md +17 -0
- package/docs/type-aliases/PromptTemplateType.md +13 -0
- package/docs/type-aliases/PromptType.md +13 -0
- package/docs/type-aliases/TFunc.md +23 -0
- package/docs/variables/AIChatRoles.md +13 -0
- package/docs/variables/AIMessageTypes.md +13 -0
- package/docs/variables/AITextGenerationFinishReasons.md +13 -0
- package/docs/variables/AbortErrorCode.md +13 -0
- package/docs/variables/ActionNames.md +13 -0
- package/docs/variables/AlreadyExistsErrorCode.md +13 -0
- package/docs/variables/ClientToolFuncSchema.md +87 -0
- package/docs/variables/DefaultAsyncSemaphoreCapacity.md +13 -0
- package/docs/variables/EventBusName.md +13 -0
- package/docs/variables/EventName.md +13 -0
- package/docs/variables/FilenameReservedRegex.md +16 -0
- package/docs/variables/HFBuiltins.md +92 -0
- package/docs/variables/InternalErrorCode.md +13 -0
- package/docs/variables/NotFoundErrorCode.md +13 -0
- package/docs/variables/NotImplementedErrorCode.md +13 -0
- package/docs/variables/PASSING_SCORE.md +13 -0
- package/docs/variables/PromptTemplateTypes.md +13 -0
- package/docs/variables/PromptTypes.md +16 -0
- package/docs/variables/RStreamErrCode.md +13 -0
- package/docs/variables/RemoteToolFuncSchema.md +87 -0
- package/docs/variables/ResponseRStreamErrCode.md +13 -0
- package/docs/variables/SSEChannelAlreadyClosedErrCode.md +13 -0
- package/docs/variables/ServerToolFuncSchema.md +87 -0
- package/docs/variables/ToolAsyncCancelableBit.md +13 -0
- package/docs/variables/ToolAsyncMultiTaskBit.md +13 -0
- package/docs/variables/ToolAsyncPriorityBit.md +13 -0
- package/docs/variables/ToolFuncSchema.md +125 -0
- package/docs/variables/WindowsReservedNameRegex.md +15 -0
- package/docs/variables/base32768.md +13 -0
- package/docs/variables/defaultTemplateFormat.md +13 -0
- package/docs/variables/event.md +13 -0
- package/docs/variables/eventClient.md +13 -0
- package/docs/variables/eventServer.md +13 -0
- package/docs/variables/lrucache.md +13 -0
- package/docs/variables/mimeType.md +13 -0
- package/docs/variables/uuidNIL.md +13 -0
- package/package.json +26 -27
- package/dist/chunk-W2LO3HZT.mjs +0 -1
- package/docs/.nojekyll +0 -1
- package/docs/enums/AsyncFeatureBits.md +0 -41
- package/docs/enums/AsyncFeatures.md +0 -41
- package/docs/enums/ErrorCode.md +0 -239
- package/docs/enums/XXHashAlgorithm.md +0 -30
- package/docs/modules.md +0 -4062
package/docs/globals.md
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
[**@isdk/ai-tool**](README.md) • **Docs**
|
|
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
|
+
- [AsyncFeatureBits](enumerations/AsyncFeatureBits.md)
|
|
17
|
+
- [AsyncFeatures](enumerations/AsyncFeatures.md)
|
|
18
|
+
- [ErrorCode](enumerations/ErrorCode.md)
|
|
19
|
+
- [XXHashAlgorithm](enumerations/XXHashAlgorithm.md)
|
|
20
|
+
- [AbortError](classes/AbortError.md)
|
|
21
|
+
- [AlreadyExistsError](classes/AlreadyExistsError.md)
|
|
22
|
+
- [BaseError](classes/BaseError.md)
|
|
23
|
+
- [CancelableAbility](classes/CancelableAbility.md)
|
|
24
|
+
- [ClientTools](classes/ClientTools.md)
|
|
25
|
+
- [CommonError](classes/CommonError.md)
|
|
26
|
+
- [ConfigFile](classes/ConfigFile.md)
|
|
27
|
+
- [EventClient](classes/EventClient.md)
|
|
28
|
+
- [EventServer](classes/EventServer.md)
|
|
29
|
+
- [EventToolFunc](classes/EventToolFunc.md)
|
|
30
|
+
- [FewShotPromptTemplate](classes/FewShotPromptTemplate.md)
|
|
31
|
+
- [FStringPromptTemplate](classes/FStringPromptTemplate.md)
|
|
32
|
+
- [GolangPromptTemplate](classes/GolangPromptTemplate.md)
|
|
33
|
+
- [HFEnvironment](classes/HFEnvironment.md)
|
|
34
|
+
- [HFInterpreter](classes/HFInterpreter.md)
|
|
35
|
+
- [HfPromptTemplate](classes/HfPromptTemplate.md)
|
|
36
|
+
- [HFTemplate](classes/HFTemplate.md)
|
|
37
|
+
- [IntSet](classes/IntSet.md)
|
|
38
|
+
- [NotFoundError](classes/NotFoundError.md)
|
|
39
|
+
- [NotImplementationError](classes/NotImplementationError.md)
|
|
40
|
+
- [PromptExampleSelector](classes/PromptExampleSelector.md)
|
|
41
|
+
- [PromptTemplate](classes/PromptTemplate.md)
|
|
42
|
+
- [ReadableStreamError](classes/ReadableStreamError.md)
|
|
43
|
+
- [ResClientTools](classes/ResClientTools.md)
|
|
44
|
+
- [ResServerTools](classes/ResServerTools.md)
|
|
45
|
+
- [Semaphore](classes/Semaphore.md)
|
|
46
|
+
- [ServerTools](classes/ServerTools.md)
|
|
47
|
+
- [SSEChannel](classes/SSEChannel.md)
|
|
48
|
+
- [TaskAbortController](classes/TaskAbortController.md)
|
|
49
|
+
- [ToolFunc](classes/ToolFunc.md)
|
|
50
|
+
- [AIChatAssistantMessageParam](interfaces/AIChatAssistantMessageParam.md)
|
|
51
|
+
- [AIChatContentPartImage](interfaces/AIChatContentPartImage.md)
|
|
52
|
+
- [AIChatContentPartText](interfaces/AIChatContentPartText.md)
|
|
53
|
+
- [AIChatMessageParamBase](interfaces/AIChatMessageParamBase.md)
|
|
54
|
+
- [AIChatMessageToolCall](interfaces/AIChatMessageToolCall.md)
|
|
55
|
+
- [AIChatSystemMessageParam](interfaces/AIChatSystemMessageParam.md)
|
|
56
|
+
- [AIChatToolMessageParam](interfaces/AIChatToolMessageParam.md)
|
|
57
|
+
- [AIChatUserMessageParam](interfaces/AIChatUserMessageParam.md)
|
|
58
|
+
- [AIChoiceConfig](interfaces/AIChoiceConfig.md)
|
|
59
|
+
- [AIResult](interfaces/AIResult.md)
|
|
60
|
+
- [AIStreamParser](interfaces/AIStreamParser.md)
|
|
61
|
+
- [AIStreamParserOptions](interfaces/AIStreamParserOptions.md)
|
|
62
|
+
- [BaseFunc](interfaces/BaseFunc.md)
|
|
63
|
+
- [BaseFuncItem](interfaces/BaseFuncItem.md)
|
|
64
|
+
- [CancelableAbilityOptions](interfaces/CancelableAbilityOptions.md)
|
|
65
|
+
- [ClientFuncItem](interfaces/ClientFuncItem.md)
|
|
66
|
+
- [DotenvExpandOptions](interfaces/DotenvExpandOptions.md)
|
|
67
|
+
- [DotenvExpandOutput](interfaces/DotenvExpandOutput.md)
|
|
68
|
+
- [DotenvParseInput](interfaces/DotenvParseInput.md)
|
|
69
|
+
- [DotenvParseOutput](interfaces/DotenvParseOutput.md)
|
|
70
|
+
- [DotenvPopulateInput](interfaces/DotenvPopulateInput.md)
|
|
71
|
+
- [EventClientFuncParams](interfaces/EventClientFuncParams.md)
|
|
72
|
+
- [EventServerFuncParams](interfaces/EventServerFuncParams.md)
|
|
73
|
+
- [FewShotPromptTemplateOptions](interfaces/FewShotPromptTemplateOptions.md)
|
|
74
|
+
- [FuncItem](interfaces/FuncItem.md)
|
|
75
|
+
- [FuncParam](interfaces/FuncParam.md)
|
|
76
|
+
- [FuncParams](interfaces/FuncParams.md)
|
|
77
|
+
- [Funcs](interfaces/Funcs.md)
|
|
78
|
+
- [JsonFilter](interfaces/JsonFilter.md)
|
|
79
|
+
- [ParseObjectArgumentOptions](interfaces/ParseObjectArgumentOptions.md)
|
|
80
|
+
- [PromptExampleSelectorOptions](interfaces/PromptExampleSelectorOptions.md)
|
|
81
|
+
- [PromptTemplateOptions](interfaces/PromptTemplateOptions.md)
|
|
82
|
+
- [RemoteFuncItem](interfaces/RemoteFuncItem.md)
|
|
83
|
+
- [ResClientFuncParams](interfaces/ResClientFuncParams.md)
|
|
84
|
+
- [ResServerFuncParams](interfaces/ResServerFuncParams.md)
|
|
85
|
+
- [SanitizeFilenameOptions](interfaces/SanitizeFilenameOptions.md)
|
|
86
|
+
- [ServerFuncItem](interfaces/ServerFuncItem.md)
|
|
87
|
+
- [ServerFuncParams](interfaces/ServerFuncParams.md)
|
|
88
|
+
- [StreamCallbacksAndOptions](interfaces/StreamCallbacksAndOptions.md)
|
|
89
|
+
- [TaskAbortControllers](interfaces/TaskAbortControllers.md)
|
|
90
|
+
- [TaskPromise](interfaces/TaskPromise.md)
|
|
91
|
+
- [ToolFuncPackage](interfaces/ToolFuncPackage.md)
|
|
92
|
+
- [ActionName](type-aliases/ActionName.md)
|
|
93
|
+
- [AIChatContentPart](type-aliases/AIChatContentPart.md)
|
|
94
|
+
- [AIChatMessageParam](type-aliases/AIChatMessageParam.md)
|
|
95
|
+
- [AIChatRole](type-aliases/AIChatRole.md)
|
|
96
|
+
- [AIMessageType](type-aliases/AIMessageType.md)
|
|
97
|
+
- [AIModelNameRule](type-aliases/AIModelNameRule.md)
|
|
98
|
+
- [AIModelNameRuleFn](type-aliases/AIModelNameRuleFn.md)
|
|
99
|
+
- [AIModelNameRules](type-aliases/AIModelNameRules.md)
|
|
100
|
+
- [AITextGenerationFinishReason](type-aliases/AITextGenerationFinishReason.md)
|
|
101
|
+
- [AsyncTaskId](type-aliases/AsyncTaskId.md)
|
|
102
|
+
- [EventErrorListenerFn](type-aliases/EventErrorListenerFn.md)
|
|
103
|
+
- [EventListenerFn](type-aliases/EventListenerFn.md)
|
|
104
|
+
- [FStringPromptTemplateNode](type-aliases/FStringPromptTemplateNode.md)
|
|
105
|
+
- [FuncParamType](type-aliases/FuncParamType.md)
|
|
106
|
+
- [PromptExamples](type-aliases/PromptExamples.md)
|
|
107
|
+
- [PromptTemplateType](type-aliases/PromptTemplateType.md)
|
|
108
|
+
- [PromptType](type-aliases/PromptType.md)
|
|
109
|
+
- [TFunc](type-aliases/TFunc.md)
|
|
110
|
+
- [AbortErrorCode](variables/AbortErrorCode.md)
|
|
111
|
+
- [ActionNames](variables/ActionNames.md)
|
|
112
|
+
- [AIChatRoles](variables/AIChatRoles.md)
|
|
113
|
+
- [AIMessageTypes](variables/AIMessageTypes.md)
|
|
114
|
+
- [AITextGenerationFinishReasons](variables/AITextGenerationFinishReasons.md)
|
|
115
|
+
- [AlreadyExistsErrorCode](variables/AlreadyExistsErrorCode.md)
|
|
116
|
+
- [base32768](variables/base32768.md)
|
|
117
|
+
- [ClientToolFuncSchema](variables/ClientToolFuncSchema.md)
|
|
118
|
+
- [DefaultAsyncSemaphoreCapacity](variables/DefaultAsyncSemaphoreCapacity.md)
|
|
119
|
+
- [defaultTemplateFormat](variables/defaultTemplateFormat.md)
|
|
120
|
+
- [event](variables/event.md)
|
|
121
|
+
- [EventBusName](variables/EventBusName.md)
|
|
122
|
+
- [eventClient](variables/eventClient.md)
|
|
123
|
+
- [EventName](variables/EventName.md)
|
|
124
|
+
- [eventServer](variables/eventServer.md)
|
|
125
|
+
- [FilenameReservedRegex](variables/FilenameReservedRegex.md)
|
|
126
|
+
- [HFBuiltins](variables/HFBuiltins.md)
|
|
127
|
+
- [InternalErrorCode](variables/InternalErrorCode.md)
|
|
128
|
+
- [lrucache](variables/lrucache.md)
|
|
129
|
+
- [mimeType](variables/mimeType.md)
|
|
130
|
+
- [NotFoundErrorCode](variables/NotFoundErrorCode.md)
|
|
131
|
+
- [NotImplementedErrorCode](variables/NotImplementedErrorCode.md)
|
|
132
|
+
- [PASSING\_SCORE](variables/PASSING_SCORE.md)
|
|
133
|
+
- [PromptTemplateTypes](variables/PromptTemplateTypes.md)
|
|
134
|
+
- [PromptTypes](variables/PromptTypes.md)
|
|
135
|
+
- [RemoteToolFuncSchema](variables/RemoteToolFuncSchema.md)
|
|
136
|
+
- [ResponseRStreamErrCode](variables/ResponseRStreamErrCode.md)
|
|
137
|
+
- [RStreamErrCode](variables/RStreamErrCode.md)
|
|
138
|
+
- [ServerToolFuncSchema](variables/ServerToolFuncSchema.md)
|
|
139
|
+
- [SSEChannelAlreadyClosedErrCode](variables/SSEChannelAlreadyClosedErrCode.md)
|
|
140
|
+
- [ToolAsyncCancelableBit](variables/ToolAsyncCancelableBit.md)
|
|
141
|
+
- [ToolAsyncMultiTaskBit](variables/ToolAsyncMultiTaskBit.md)
|
|
142
|
+
- [ToolAsyncPriorityBit](variables/ToolAsyncPriorityBit.md)
|
|
143
|
+
- [ToolFuncSchema](variables/ToolFuncSchema.md)
|
|
144
|
+
- [uuidNIL](variables/uuidNIL.md)
|
|
145
|
+
- [WindowsReservedNameRegex](variables/WindowsReservedNameRegex.md)
|
|
146
|
+
- [\_lrucache](functions/lrucache.md)
|
|
147
|
+
- [AIArgProcessor](functions/AIArgProcessor.md)
|
|
148
|
+
- [AIStream](functions/AIStream.md)
|
|
149
|
+
- [backendEventable](functions/backendEventable.md)
|
|
150
|
+
- [canonicalize](functions/canonicalize.md)
|
|
151
|
+
- [ChoiceArgProcessor](functions/ChoiceArgProcessor.md)
|
|
152
|
+
- [countRegexMatches](functions/countRegexMatches.md)
|
|
153
|
+
- [createAbilityInjector](functions/createAbilityInjector.md)
|
|
154
|
+
- [createCallbacksTransformer](functions/createCallbacksTransformer.md)
|
|
155
|
+
- [createEmptyReadableStream](functions/createEmptyReadableStream.md)
|
|
156
|
+
- [createEndWithRepetitionDetector](functions/createEndWithRepetitionDetector.md)
|
|
157
|
+
- [createError](functions/createError.md)
|
|
158
|
+
- [createEventStreamTransformer](functions/createEventStreamTransformer.md)
|
|
159
|
+
- [createHfValueFunc](functions/createHfValueFunc.md)
|
|
160
|
+
- [createLRUCache](functions/createLRUCache.md)
|
|
161
|
+
- [dateToText](functions/dateToText.md)
|
|
162
|
+
- [expandEnv](functions/expandEnv.md)
|
|
163
|
+
- [expandObjEnv](functions/expandObjEnv.md)
|
|
164
|
+
- [extNameLevel](functions/extNameLevel.md)
|
|
165
|
+
- [fileIsExists](functions/fileIsExists.md)
|
|
166
|
+
- [filenameReservedRegex](functions/filenameReservedRegex.md)
|
|
167
|
+
- [filterValidFnScope](functions/filterValidFnScope.md)
|
|
168
|
+
- [findPort](functions/findPort.md)
|
|
169
|
+
- [getAllEnumKeys](functions/getAllEnumKeys.md)
|
|
170
|
+
- [getConfigFileNames](functions/getConfigFileNames.md)
|
|
171
|
+
- [getConfigs](functions/getConfigs.md)
|
|
172
|
+
- [getKeysPath](functions/getKeysPath.md)
|
|
173
|
+
- [getMultiLevelExtname](functions/getMultiLevelExtname.md)
|
|
174
|
+
- [getPackageDir](functions/getPackageDir.md)
|
|
175
|
+
- [getRealFilepath](functions/getRealFilepath.md)
|
|
176
|
+
- [getResponseErrorReadableStream](functions/getResponseErrorReadableStream.md)
|
|
177
|
+
- [hfParse](functions/hfParse.md)
|
|
178
|
+
- [hfTokenize](functions/hfTokenize.md)
|
|
179
|
+
- [interpolateEnv](functions/interpolateEnv.md)
|
|
180
|
+
- [interpolateFString](functions/interpolateFString.md)
|
|
181
|
+
- [interpolateGolangTemplate](functions/interpolateGolangTemplate.md)
|
|
182
|
+
- [isModelNameMatched](functions/isModelNameMatched.md)
|
|
183
|
+
- [isValidFilename](functions/isValidFilename.md)
|
|
184
|
+
- [isValidFilepath](functions/isValidFilepath.md)
|
|
185
|
+
- [isWebStream](functions/isWebStream.md)
|
|
186
|
+
- [jsonFilterToWhere](functions/jsonFilterToWhere.md)
|
|
187
|
+
- [jsonToMarkdownStr](functions/jsonToMarkdownStr.md)
|
|
188
|
+
- [loadFileFromPaths](functions/loadFileFromPaths.md)
|
|
189
|
+
- [loadTextFromPaths](functions/loadTextFromPaths.md)
|
|
190
|
+
- [makeToolFuncCancelable](functions/makeToolFuncCancelable.md)
|
|
191
|
+
- [matchUrlProtocol](functions/matchUrlProtocol.md)
|
|
192
|
+
- [memoize](functions/memoize.md)
|
|
193
|
+
- [messagesToText](functions/messagesToText.md)
|
|
194
|
+
- [paramsSizeToScaleStr](functions/paramsSizeToScaleStr.md)
|
|
195
|
+
- [parseCommand](functions/parseCommand.md)
|
|
196
|
+
- [parseFString](functions/parseFString.md)
|
|
197
|
+
- [parseJsJson](functions/parseJsJson.md)
|
|
198
|
+
- [parseObjectArgInfo](functions/parseObjectArgInfo.md)
|
|
199
|
+
- [parseObjectArgumentInfos](functions/parseObjectArgumentInfos.md)
|
|
200
|
+
- [parseObjectArguments](functions/parseObjectArguments.md)
|
|
201
|
+
- [parseObjectArgumentsAsArgInfos](functions/parseObjectArgumentsAsArgInfos.md)
|
|
202
|
+
- [parseYaml](functions/parseYaml.md)
|
|
203
|
+
- [quoteStr](functions/quoteStr.md)
|
|
204
|
+
- [RateLimit](functions/RateLimit.md)
|
|
205
|
+
- [readableFromAsyncIterable](functions/readableFromAsyncIterable.md)
|
|
206
|
+
- [readFilenamesRecursiveSync](functions/readFilenamesRecursiveSync.md)
|
|
207
|
+
- [reControlCharsRegex](functions/reControlCharsRegex.md)
|
|
208
|
+
- [registerCoreTools](functions/registerCoreTools.md)
|
|
209
|
+
- [registerYamlTag](functions/registerYamlTag.md)
|
|
210
|
+
- [sanitizeFilename](functions/sanitizeFilename.md)
|
|
211
|
+
- [sanitizeFilepath](functions/sanitizeFilepath.md)
|
|
212
|
+
- [saveConfigFile](functions/saveConfigFile.md)
|
|
213
|
+
- [scaleStrToParamsSize](functions/scaleStrToParamsSize.md)
|
|
214
|
+
- [simplifyObjectArguments](functions/simplifyObjectArguments.md)
|
|
215
|
+
- [sortedValues](functions/sortedValues.md)
|
|
216
|
+
- [splitSentence](functions/splitSentence.md)
|
|
217
|
+
- [stringifyYaml](functions/stringifyYaml.md)
|
|
218
|
+
- [TemplateArgProcessor](functions/TemplateArgProcessor.md)
|
|
219
|
+
- [textToDate](functions/textToDate.md)
|
|
220
|
+
- [throwError](functions/throwError.md)
|
|
221
|
+
- [toDateTime](functions/toDateTime.md)
|
|
222
|
+
- [trimStartOfStreamHelper](functions/trimStartOfStreamHelper.md)
|
|
223
|
+
- [truncTo](functions/truncTo.md)
|
|
224
|
+
- [uuid](functions/uuid.md)
|
|
225
|
+
- [uuidParse](functions/uuidParse.md)
|
|
226
|
+
- [uuidStringify](functions/uuidStringify.md)
|
|
227
|
+
- [uuidv1](functions/uuidv1.md)
|
|
228
|
+
- [uuidv4](functions/uuidv4.md)
|
|
229
|
+
- [uuidv5](functions/uuidv5.md)
|
|
230
|
+
- [uuidValidate](functions/uuidValidate.md)
|
|
231
|
+
- [uuidVersion](functions/uuidVersion.md)
|
|
232
|
+
- [wait](functions/wait.md)
|
|
233
|
+
- [xxhash](functions/xxhash.md)
|
|
234
|
+
- [xxhash32](functions/xxhash32.md)
|
|
235
|
+
- [xxhash64](functions/xxhash64.md)
|
|
236
|
+
- [xxhashAsStr](functions/xxhashAsStr.md)
|
|
@@ -1,84 +1,75 @@
|
|
|
1
|
-
[
|
|
1
|
+
[**@isdk/ai-tool**](../README.md) • **Docs**
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Hierarchy
|
|
6
|
-
|
|
7
|
-
- [`AIChatMessageParamBase`](AIChatMessageParamBase.md)
|
|
3
|
+
***
|
|
8
4
|
|
|
9
|
-
|
|
5
|
+
[@isdk/ai-tool](../globals.md) / AIChatAssistantMessageParam
|
|
10
6
|
|
|
11
|
-
|
|
7
|
+
# Interface: AIChatAssistantMessageParam
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
## Extends
|
|
14
10
|
|
|
15
|
-
- [
|
|
16
|
-
- [createdAt](AIChatAssistantMessageParam.md#createdat)
|
|
17
|
-
- [role](AIChatAssistantMessageParam.md#role)
|
|
18
|
-
- [templateFormat](AIChatAssistantMessageParam.md#templateformat)
|
|
19
|
-
- [tool\_calls](AIChatAssistantMessageParam.md#tool_calls)
|
|
20
|
-
- [updatedAt](AIChatAssistantMessageParam.md#updatedat)
|
|
11
|
+
- [`AIChatMessageParamBase`](AIChatMessageParamBase.md)
|
|
21
12
|
|
|
22
13
|
## Properties
|
|
23
14
|
|
|
24
|
-
### content
|
|
15
|
+
### content?
|
|
25
16
|
|
|
26
|
-
|
|
17
|
+
> `optional` **content**: `null` \| `string`
|
|
27
18
|
|
|
28
19
|
#### Defined in
|
|
29
20
|
|
|
30
|
-
[packages/ai-tool/src/utils/chat.ts:92](https://github.com/isdk/ai-tool.js/blob/
|
|
21
|
+
[packages/ai-tool/src/utils/chat.ts:92](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L92)
|
|
31
22
|
|
|
32
|
-
|
|
23
|
+
***
|
|
33
24
|
|
|
34
|
-
### createdAt
|
|
25
|
+
### createdAt?
|
|
35
26
|
|
|
36
|
-
|
|
27
|
+
> `optional` **createdAt**: `string` \| `Date`
|
|
37
28
|
|
|
38
29
|
#### Defined in
|
|
39
30
|
|
|
40
|
-
[packages/ai-tool/src/utils/chat.ts:95](https://github.com/isdk/ai-tool.js/blob/
|
|
31
|
+
[packages/ai-tool/src/utils/chat.ts:95](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L95)
|
|
41
32
|
|
|
42
|
-
|
|
33
|
+
***
|
|
43
34
|
|
|
44
35
|
### role
|
|
45
36
|
|
|
46
|
-
|
|
37
|
+
> **role**: `"assistant"`
|
|
47
38
|
|
|
48
39
|
#### Overrides
|
|
49
40
|
|
|
50
|
-
[AIChatMessageParamBase](AIChatMessageParamBase.md).[role](AIChatMessageParamBase.md#role)
|
|
41
|
+
[`AIChatMessageParamBase`](AIChatMessageParamBase.md).[`role`](AIChatMessageParamBase.md#role)
|
|
51
42
|
|
|
52
43
|
#### Defined in
|
|
53
44
|
|
|
54
|
-
[packages/ai-tool/src/utils/chat.ts:91](https://github.com/isdk/ai-tool.js/blob/
|
|
45
|
+
[packages/ai-tool/src/utils/chat.ts:91](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L91)
|
|
55
46
|
|
|
56
|
-
|
|
47
|
+
***
|
|
57
48
|
|
|
58
|
-
### templateFormat
|
|
49
|
+
### templateFormat?
|
|
59
50
|
|
|
60
|
-
|
|
51
|
+
> `optional` **templateFormat**: `string`
|
|
61
52
|
|
|
62
53
|
#### Defined in
|
|
63
54
|
|
|
64
|
-
[packages/ai-tool/src/utils/chat.ts:97](https://github.com/isdk/ai-tool.js/blob/
|
|
55
|
+
[packages/ai-tool/src/utils/chat.ts:97](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L97)
|
|
65
56
|
|
|
66
|
-
|
|
57
|
+
***
|
|
67
58
|
|
|
68
|
-
### tool\_calls
|
|
59
|
+
### tool\_calls?
|
|
69
60
|
|
|
70
|
-
|
|
61
|
+
> `optional` **tool\_calls**: [`AIChatMessageToolCall`](AIChatMessageToolCall.md)[]
|
|
71
62
|
|
|
72
63
|
#### Defined in
|
|
73
64
|
|
|
74
|
-
[packages/ai-tool/src/utils/chat.ts:93](https://github.com/isdk/ai-tool.js/blob/
|
|
65
|
+
[packages/ai-tool/src/utils/chat.ts:93](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L93)
|
|
75
66
|
|
|
76
|
-
|
|
67
|
+
***
|
|
77
68
|
|
|
78
|
-
### updatedAt
|
|
69
|
+
### updatedAt?
|
|
79
70
|
|
|
80
|
-
|
|
71
|
+
> `optional` **updatedAt**: `string` \| `Date`
|
|
81
72
|
|
|
82
73
|
#### Defined in
|
|
83
74
|
|
|
84
|
-
[packages/ai-tool/src/utils/chat.ts:96](https://github.com/isdk/ai-tool.js/blob/
|
|
75
|
+
[packages/ai-tool/src/utils/chat.ts:96](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L96)
|
|
@@ -1,36 +1,31 @@
|
|
|
1
|
-
[
|
|
1
|
+
[**@isdk/ai-tool**](../README.md) • **Docs**
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
3
|
+
***
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
[@isdk/ai-tool](../globals.md) / AIChatContentPartImage
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
- [type](AIChatContentPartImage.md#type)
|
|
7
|
+
# Interface: AIChatContentPartImage
|
|
11
8
|
|
|
12
9
|
## Properties
|
|
13
10
|
|
|
14
11
|
### image\_url
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
> **image\_url**: `object`
|
|
17
14
|
|
|
18
|
-
####
|
|
15
|
+
#### url
|
|
19
16
|
|
|
20
|
-
|
|
21
|
-
| :------ | :------ |
|
|
22
|
-
| `url` | `string` |
|
|
17
|
+
> **url**: `string`
|
|
23
18
|
|
|
24
19
|
#### Defined in
|
|
25
20
|
|
|
26
|
-
[packages/ai-tool/src/utils/chat.ts:80](https://github.com/isdk/ai-tool.js/blob/
|
|
21
|
+
[packages/ai-tool/src/utils/chat.ts:80](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L80)
|
|
27
22
|
|
|
28
|
-
|
|
23
|
+
***
|
|
29
24
|
|
|
30
25
|
### type
|
|
31
26
|
|
|
32
|
-
|
|
27
|
+
> **type**: `"image_url"`
|
|
33
28
|
|
|
34
29
|
#### Defined in
|
|
35
30
|
|
|
36
|
-
[packages/ai-tool/src/utils/chat.ts:79](https://github.com/isdk/ai-tool.js/blob/
|
|
31
|
+
[packages/ai-tool/src/utils/chat.ts:79](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L79)
|
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
[
|
|
1
|
+
[**@isdk/ai-tool**](../README.md) • **Docs**
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
3
|
+
***
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
[@isdk/ai-tool](../globals.md) / AIChatContentPartText
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
- [type](AIChatContentPartText.md#type)
|
|
7
|
+
# Interface: AIChatContentPartText
|
|
11
8
|
|
|
12
9
|
## Properties
|
|
13
10
|
|
|
14
11
|
### text
|
|
15
12
|
|
|
16
|
-
|
|
13
|
+
> **text**: `string`
|
|
17
14
|
|
|
18
15
|
#### Defined in
|
|
19
16
|
|
|
20
|
-
[packages/ai-tool/src/utils/chat.ts:87](https://github.com/isdk/ai-tool.js/blob/
|
|
17
|
+
[packages/ai-tool/src/utils/chat.ts:87](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L87)
|
|
21
18
|
|
|
22
|
-
|
|
19
|
+
***
|
|
23
20
|
|
|
24
21
|
### type
|
|
25
22
|
|
|
26
|
-
|
|
23
|
+
> **type**: `"text"`
|
|
27
24
|
|
|
28
25
|
#### Defined in
|
|
29
26
|
|
|
30
|
-
[packages/ai-tool/src/utils/chat.ts:86](https://github.com/isdk/ai-tool.js/blob/
|
|
27
|
+
[packages/ai-tool/src/utils/chat.ts:86](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L86)
|
|
@@ -1,35 +1,28 @@
|
|
|
1
|
-
[
|
|
1
|
+
[**@isdk/ai-tool**](../README.md) • **Docs**
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Hierarchy
|
|
3
|
+
***
|
|
6
4
|
|
|
7
|
-
-
|
|
5
|
+
[@isdk/ai-tool](../globals.md) / AIChatMessageParamBase
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
↳ [`AIChatUserMessageParam`](AIChatUserMessageParam.md)
|
|
7
|
+
# Interface: AIChatMessageParamBase
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
## Extended by
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
- [`AIChatSystemMessageParam`](AIChatSystemMessageParam.md)
|
|
12
|
+
- [`AIChatUserMessageParam`](AIChatUserMessageParam.md)
|
|
13
|
+
- [`AIChatAssistantMessageParam`](AIChatAssistantMessageParam.md)
|
|
14
|
+
- [`AIChatToolMessageParam`](AIChatToolMessageParam.md)
|
|
16
15
|
|
|
17
16
|
## Indexable
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
## Table of contents
|
|
22
|
-
|
|
23
|
-
### Properties
|
|
24
|
-
|
|
25
|
-
- [role](AIChatMessageParamBase.md#role)
|
|
18
|
+
\[`name`: `string`\]: `any`
|
|
26
19
|
|
|
27
20
|
## Properties
|
|
28
21
|
|
|
29
22
|
### role
|
|
30
23
|
|
|
31
|
-
|
|
24
|
+
> **role**: `string`
|
|
32
25
|
|
|
33
26
|
#### Defined in
|
|
34
27
|
|
|
35
|
-
[packages/ai-tool/src/utils/chat.ts:51](https://github.com/isdk/ai-tool.js/blob/
|
|
28
|
+
[packages/ai-tool/src/utils/chat.ts:51](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L51)
|
|
@@ -1,48 +1,45 @@
|
|
|
1
|
-
[
|
|
1
|
+
[**@isdk/ai-tool**](../README.md) • **Docs**
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Table of contents
|
|
3
|
+
***
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
[@isdk/ai-tool](../globals.md) / AIChatMessageToolCall
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
- [id](AIChatMessageToolCall.md#id)
|
|
11
|
-
- [type](AIChatMessageToolCall.md#type)
|
|
7
|
+
# Interface: AIChatMessageToolCall
|
|
12
8
|
|
|
13
9
|
## Properties
|
|
14
10
|
|
|
15
11
|
### function
|
|
16
12
|
|
|
17
|
-
|
|
13
|
+
> **function**: `object`
|
|
14
|
+
|
|
15
|
+
#### arguments
|
|
16
|
+
|
|
17
|
+
> **arguments**: `string`
|
|
18
18
|
|
|
19
|
-
####
|
|
19
|
+
#### name
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
| :------ | :------ |
|
|
23
|
-
| `arguments` | `string` |
|
|
24
|
-
| `name` | `string` |
|
|
21
|
+
> **name**: `string`
|
|
25
22
|
|
|
26
23
|
#### Defined in
|
|
27
24
|
|
|
28
|
-
[packages/ai-tool/src/utils/chat.ts:103](https://github.com/isdk/ai-tool.js/blob/
|
|
25
|
+
[packages/ai-tool/src/utils/chat.ts:103](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L103)
|
|
29
26
|
|
|
30
|
-
|
|
27
|
+
***
|
|
31
28
|
|
|
32
29
|
### id
|
|
33
30
|
|
|
34
|
-
|
|
31
|
+
> **id**: `string`
|
|
35
32
|
|
|
36
33
|
#### Defined in
|
|
37
34
|
|
|
38
|
-
[packages/ai-tool/src/utils/chat.ts:102](https://github.com/isdk/ai-tool.js/blob/
|
|
35
|
+
[packages/ai-tool/src/utils/chat.ts:102](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L102)
|
|
39
36
|
|
|
40
|
-
|
|
37
|
+
***
|
|
41
38
|
|
|
42
39
|
### type
|
|
43
40
|
|
|
44
|
-
|
|
41
|
+
> **type**: `"function"`
|
|
45
42
|
|
|
46
43
|
#### Defined in
|
|
47
44
|
|
|
48
|
-
[packages/ai-tool/src/utils/chat.ts:101](https://github.com/isdk/ai-tool.js/blob/
|
|
45
|
+
[packages/ai-tool/src/utils/chat.ts:101](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L101)
|
|
@@ -1,51 +1,45 @@
|
|
|
1
|
-
[
|
|
1
|
+
[**@isdk/ai-tool**](../README.md) • **Docs**
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Hierarchy
|
|
6
|
-
|
|
7
|
-
- [`AIChatMessageParamBase`](AIChatMessageParamBase.md)
|
|
3
|
+
***
|
|
8
4
|
|
|
9
|
-
|
|
5
|
+
[@isdk/ai-tool](../globals.md) / AIChatSystemMessageParam
|
|
10
6
|
|
|
11
|
-
|
|
7
|
+
# Interface: AIChatSystemMessageParam
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
## Extends
|
|
14
10
|
|
|
15
|
-
- [
|
|
16
|
-
- [role](AIChatSystemMessageParam.md#role)
|
|
17
|
-
- [templateFormat](AIChatSystemMessageParam.md#templateformat)
|
|
11
|
+
- [`AIChatMessageParamBase`](AIChatMessageParamBase.md)
|
|
18
12
|
|
|
19
13
|
## Properties
|
|
20
14
|
|
|
21
15
|
### content
|
|
22
16
|
|
|
23
|
-
|
|
17
|
+
> **content**: `string`
|
|
24
18
|
|
|
25
19
|
#### Defined in
|
|
26
20
|
|
|
27
|
-
[packages/ai-tool/src/utils/chat.ts:57](https://github.com/isdk/ai-tool.js/blob/
|
|
21
|
+
[packages/ai-tool/src/utils/chat.ts:57](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L57)
|
|
28
22
|
|
|
29
|
-
|
|
23
|
+
***
|
|
30
24
|
|
|
31
25
|
### role
|
|
32
26
|
|
|
33
|
-
|
|
27
|
+
> **role**: `"system"`
|
|
34
28
|
|
|
35
29
|
#### Overrides
|
|
36
30
|
|
|
37
|
-
[AIChatMessageParamBase](AIChatMessageParamBase.md).[role](AIChatMessageParamBase.md#role)
|
|
31
|
+
[`AIChatMessageParamBase`](AIChatMessageParamBase.md).[`role`](AIChatMessageParamBase.md#role)
|
|
38
32
|
|
|
39
33
|
#### Defined in
|
|
40
34
|
|
|
41
|
-
[packages/ai-tool/src/utils/chat.ts:56](https://github.com/isdk/ai-tool.js/blob/
|
|
35
|
+
[packages/ai-tool/src/utils/chat.ts:56](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L56)
|
|
42
36
|
|
|
43
|
-
|
|
37
|
+
***
|
|
44
38
|
|
|
45
|
-
### templateFormat
|
|
39
|
+
### templateFormat?
|
|
46
40
|
|
|
47
|
-
|
|
41
|
+
> `optional` **templateFormat**: `string`
|
|
48
42
|
|
|
49
43
|
#### Defined in
|
|
50
44
|
|
|
51
|
-
[packages/ai-tool/src/utils/chat.ts:58](https://github.com/isdk/ai-tool.js/blob/
|
|
45
|
+
[packages/ai-tool/src/utils/chat.ts:58](https://github.com/isdk/ai-tool.js/blob/5f9f0083c734722103ff5468e424b48c212a55f0/src/utils/chat.ts#L58)
|