@isdk/ai-tool 0.2.0 → 0.2.2

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.
Files changed (248) hide show
  1. package/dist/chunk-PY6NRGZE.mjs +1 -0
  2. package/dist/funcs.d.mts +1 -1
  3. package/dist/funcs.d.ts +1 -1
  4. package/dist/funcs.js +1 -1
  5. package/dist/funcs.mjs +1 -1
  6. package/dist/{index-nP9lSU6E.d.mts → index-DUEs7T8M.d.mts} +2 -2
  7. package/dist/{index-nP9lSU6E.d.ts → index-DUEs7T8M.d.ts} +2 -2
  8. package/dist/index.d.mts +5 -4
  9. package/dist/index.d.ts +5 -4
  10. package/dist/index.js +1 -1
  11. package/dist/index.mjs +1 -1
  12. package/docs/README.md +5 -3
  13. package/docs/_media/CONTRIBUTING.md +18 -0
  14. package/docs/_media/LICENSE-MIT +22 -0
  15. package/docs/classes/AbortError.md +108 -129
  16. package/docs/classes/AlreadyExistsError.md +105 -126
  17. package/docs/classes/BaseError.md +112 -125
  18. package/docs/classes/CancelableAbility.md +136 -188
  19. package/docs/classes/ClientTools.md +1005 -1107
  20. package/docs/classes/CommonError.md +115 -136
  21. package/docs/classes/ConfigFile.md +150 -163
  22. package/docs/classes/EventClient.md +1128 -1282
  23. package/docs/classes/EventServer.md +1165 -1303
  24. package/docs/classes/EventToolFunc.md +958 -1028
  25. package/docs/classes/FStringPromptTemplate.md +352 -438
  26. package/docs/classes/FewShotPromptTemplate.md +364 -464
  27. package/docs/classes/GolangPromptTemplate.md +352 -438
  28. package/docs/classes/HFEnvironment.md +53 -79
  29. package/docs/classes/HFInterpreter.md +20 -377
  30. package/docs/classes/HFTemplate.md +21 -33
  31. package/docs/classes/HfPromptTemplate.md +352 -438
  32. package/docs/classes/IntSet.md +67 -100
  33. package/docs/classes/NotFoundError.md +105 -126
  34. package/docs/classes/NotImplementationError.md +105 -126
  35. package/docs/classes/PromptExampleSelector.md +58 -70
  36. package/docs/classes/PromptTemplate.md +338 -422
  37. package/docs/classes/ReadableStreamError.md +108 -129
  38. package/docs/classes/ResClientTools.md +916 -1026
  39. package/docs/classes/ResServerTools.md +919 -1026
  40. package/docs/classes/SSEChannel.md +93 -112
  41. package/docs/classes/Semaphore.md +44 -140
  42. package/docs/classes/ServerTools.md +981 -1072
  43. package/docs/classes/TaskAbortController.md +46 -66
  44. package/docs/classes/ToolFunc.md +840 -910
  45. package/docs/enumerations/AsyncFeatureBits.md +37 -0
  46. package/docs/enumerations/AsyncFeatures.md +37 -0
  47. package/docs/enumerations/ErrorCode.md +217 -0
  48. package/docs/enumerations/XXHashAlgorithm.md +27 -0
  49. package/docs/functions/AIArgProcessor.md +27 -0
  50. package/docs/functions/AIStream.md +50 -0
  51. package/docs/functions/ChoiceArgProcessor.md +27 -0
  52. package/docs/functions/RateLimit.md +33 -0
  53. package/docs/functions/TemplateArgProcessor.md +27 -0
  54. package/docs/functions/backendEventable.md +23 -0
  55. package/docs/functions/canonicalize.md +21 -0
  56. package/docs/functions/countRegexMatches.md +33 -0
  57. package/docs/functions/createAbilityInjector.md +87 -0
  58. package/docs/functions/createCallbacksTransformer.md +49 -0
  59. package/docs/functions/createEmptyReadableStream.md +23 -0
  60. package/docs/functions/createEndWithRepetitionDetector.md +29 -0
  61. package/docs/functions/createError.md +35 -0
  62. package/docs/functions/createEventStreamTransformer.md +33 -0
  63. package/docs/functions/createHfValueFunc.md +29 -0
  64. package/docs/functions/createLRUCache.md +23 -0
  65. package/docs/functions/dateToText.md +23 -0
  66. package/docs/functions/expandEnv.md +40 -0
  67. package/docs/functions/expandObjEnv.md +54 -0
  68. package/docs/functions/extNameLevel.md +43 -0
  69. package/docs/functions/fileIsExists.md +34 -0
  70. package/docs/functions/filenameReservedRegex.md +22 -0
  71. package/docs/functions/filterValidFnScope.md +21 -0
  72. package/docs/functions/findPort.md +23 -0
  73. package/docs/functions/formatISO.md +71 -0
  74. package/docs/functions/getAllEnumKeys.md +31 -0
  75. package/docs/functions/getConfigFileNames.md +23 -0
  76. package/docs/functions/getConfigs.md +23 -0
  77. package/docs/functions/getKeysPath.md +38 -0
  78. package/docs/functions/getMultiLevelExtname.md +31 -0
  79. package/docs/functions/getPackageDir.md +39 -0
  80. package/docs/functions/getRealFilepath.md +34 -0
  81. package/docs/functions/getResponseErrorReadableStream.md +21 -0
  82. package/docs/functions/hfParse.md +24 -0
  83. package/docs/functions/hfTokenize.md +25 -0
  84. package/docs/functions/interpolateEnv.md +25 -0
  85. package/docs/functions/interpolateFString.md +27 -0
  86. package/docs/functions/interpolateGolangTemplate.md +31 -0
  87. package/docs/functions/isModelNameMatched.md +45 -0
  88. package/docs/functions/isValidFilename.md +38 -0
  89. package/docs/functions/isValidFilepath.md +27 -0
  90. package/docs/functions/isWebStream.md +21 -0
  91. package/docs/functions/jsonFilterToWhere.md +45 -0
  92. package/docs/functions/jsonToMarkdownStr.md +31 -0
  93. package/docs/functions/loadFileFromPaths.md +54 -0
  94. package/docs/functions/loadTextFromPaths.md +29 -0
  95. package/docs/functions/lrucache.md +29 -0
  96. package/docs/functions/makeToolFuncCancelable.md +23 -0
  97. package/docs/functions/matchUrlProtocol.md +48 -0
  98. package/docs/functions/memoize.md +27 -0
  99. package/docs/functions/messagesToText.md +21 -0
  100. package/docs/functions/paramsSizeToScaleStr.md +32 -0
  101. package/docs/functions/parseCommand.md +33 -0
  102. package/docs/functions/parseDateFormat.md +360 -0
  103. package/docs/functions/parseFString.md +26 -0
  104. package/docs/functions/parseISO.md +72 -0
  105. package/docs/functions/parseJsJson.md +38 -0
  106. package/docs/functions/parseObjectArgInfo.md +27 -0
  107. package/docs/functions/parseObjectArgumentInfos.md +25 -0
  108. package/docs/functions/parseObjectArguments.md +68 -0
  109. package/docs/functions/parseObjectArgumentsAsArgInfos.md +42 -0
  110. package/docs/functions/parseYaml.md +21 -0
  111. package/docs/functions/quoteStr.md +21 -0
  112. package/docs/functions/reControlCharsRegex.md +21 -0
  113. package/docs/functions/readFilenamesRecursiveSync.md +47 -0
  114. package/docs/functions/readableFromAsyncIterable.md +28 -0
  115. package/docs/functions/registerCoreTools.md +17 -0
  116. package/docs/functions/registerYamlTag.md +21 -0
  117. package/docs/functions/sanitizeFilename.md +37 -0
  118. package/docs/functions/sanitizeFilepath.md +31 -0
  119. package/docs/functions/saveConfigFile.md +25 -0
  120. package/docs/functions/scaleStrToParamsSize.md +27 -0
  121. package/docs/functions/simplifyObjectArguments.md +21 -0
  122. package/docs/functions/sortedValues.md +25 -0
  123. package/docs/functions/splitSentence.md +37 -0
  124. package/docs/functions/stringifyYaml.md +49 -0
  125. package/docs/functions/textToDate.md +23 -0
  126. package/docs/functions/throwError.md +37 -0
  127. package/docs/functions/toDate.md +76 -0
  128. package/docs/functions/toDateTime.md +21 -0
  129. package/docs/functions/trimStartOfStreamHelper.md +41 -0
  130. package/docs/functions/truncTo.md +47 -0
  131. package/docs/functions/uuid.md +23 -0
  132. package/docs/functions/uuidParse.md +21 -0
  133. package/docs/functions/uuidStringify.md +23 -0
  134. package/docs/functions/uuidValidate.md +21 -0
  135. package/docs/functions/uuidVersion.md +21 -0
  136. package/docs/functions/uuidv1.md +47 -0
  137. package/docs/functions/uuidv4.md +47 -0
  138. package/docs/functions/uuidv5.md +51 -0
  139. package/docs/functions/wait.md +21 -0
  140. package/docs/functions/xxhash.md +25 -0
  141. package/docs/functions/xxhash32.md +23 -0
  142. package/docs/functions/xxhash64.md +23 -0
  143. package/docs/functions/xxhashAsStr.md +25 -0
  144. package/docs/globals.md +236 -0
  145. package/docs/interfaces/AIChatAssistantMessageParam.md +29 -38
  146. package/docs/interfaces/AIChatContentPartImage.md +11 -16
  147. package/docs/interfaces/AIChatContentPartText.md +9 -12
  148. package/docs/interfaces/AIChatMessageParamBase.md +12 -19
  149. package/docs/interfaces/AIChatMessageToolCall.md +18 -21
  150. package/docs/interfaces/AIChatSystemMessageParam.md +16 -22
  151. package/docs/interfaces/AIChatToolMessageParam.md +19 -26
  152. package/docs/interfaces/AIChatUserMessageParam.md +32 -42
  153. package/docs/interfaces/AIChoiceConfig.md +31 -39
  154. package/docs/interfaces/AIResult.md +29 -32
  155. package/docs/interfaces/AIStreamParser.md +24 -18
  156. package/docs/interfaces/AIStreamParserOptions.md +8 -10
  157. package/docs/interfaces/BaseFunc.md +55 -75
  158. package/docs/interfaces/BaseFuncItem.md +43 -61
  159. package/docs/interfaces/CancelableAbilityOptions.md +43 -54
  160. package/docs/interfaces/ClientFuncItem.md +66 -83
  161. package/docs/interfaces/DotenvExpandOptions.md +15 -19
  162. package/docs/interfaces/DotenvExpandOutput.md +11 -14
  163. package/docs/interfaces/DotenvParseInput.md +6 -2
  164. package/docs/interfaces/DotenvParseOutput.md +6 -2
  165. package/docs/interfaces/DotenvPopulateInput.md +6 -2
  166. package/docs/interfaces/EventClientFuncParams.md +22 -33
  167. package/docs/interfaces/EventServerFuncParams.md +27 -35
  168. package/docs/interfaces/FewShotPromptTemplateOptions.md +58 -74
  169. package/docs/interfaces/FuncItem.md +53 -70
  170. package/docs/interfaces/FuncParam.md +29 -36
  171. package/docs/interfaces/FuncParams.md +6 -2
  172. package/docs/interfaces/Funcs.md +6 -2
  173. package/docs/interfaces/JsonFilter.md +6 -2
  174. package/docs/interfaces/ParseObjectArgumentOptions.md +23 -29
  175. package/docs/interfaces/PromptExampleSelectorOptions.md +13 -16
  176. package/docs/interfaces/PromptTemplateOptions.md +31 -40
  177. package/docs/interfaces/RemoteFuncItem.md +64 -82
  178. package/docs/interfaces/ResClientFuncParams.md +14 -19
  179. package/docs/interfaces/ResServerFuncParams.md +28 -36
  180. package/docs/interfaces/SanitizeFilenameOptions.md +11 -14
  181. package/docs/interfaces/ServerFuncItem.md +70 -88
  182. package/docs/interfaces/ServerFuncParams.md +15 -20
  183. package/docs/interfaces/StreamCallbacksAndOptions.md +36 -65
  184. package/docs/interfaces/TaskAbortControllers.md +6 -2
  185. package/docs/interfaces/TaskPromise.md +48 -61
  186. package/docs/interfaces/ToolFuncPackage.md +18 -32
  187. package/docs/type-aliases/AIChatContentPart.md +13 -0
  188. package/docs/type-aliases/AIChatMessageParam.md +13 -0
  189. package/docs/type-aliases/AIChatRole.md +13 -0
  190. package/docs/type-aliases/AIMessageType.md +13 -0
  191. package/docs/type-aliases/AIModelNameRule.md +13 -0
  192. package/docs/type-aliases/AIModelNameRuleFn.md +21 -0
  193. package/docs/type-aliases/AIModelNameRules.md +13 -0
  194. package/docs/type-aliases/AITextGenerationFinishReason.md +13 -0
  195. package/docs/type-aliases/ActionName.md +13 -0
  196. package/docs/type-aliases/AsyncTaskId.md +13 -0
  197. package/docs/type-aliases/EventErrorListenerFn.md +27 -0
  198. package/docs/type-aliases/EventListenerFn.md +25 -0
  199. package/docs/type-aliases/FStringPromptTemplateNode.md +16 -0
  200. package/docs/type-aliases/FuncParamType.md +13 -0
  201. package/docs/type-aliases/PromptExamples.md +17 -0
  202. package/docs/type-aliases/PromptTemplateType.md +13 -0
  203. package/docs/type-aliases/PromptType.md +13 -0
  204. package/docs/type-aliases/TFunc.md +23 -0
  205. package/docs/variables/AIChatRoles.md +13 -0
  206. package/docs/variables/AIMessageTypes.md +13 -0
  207. package/docs/variables/AITextGenerationFinishReasons.md +13 -0
  208. package/docs/variables/AbortErrorCode.md +13 -0
  209. package/docs/variables/ActionNames.md +13 -0
  210. package/docs/variables/AlreadyExistsErrorCode.md +13 -0
  211. package/docs/variables/ClientToolFuncSchema.md +87 -0
  212. package/docs/variables/DefaultAsyncSemaphoreCapacity.md +13 -0
  213. package/docs/variables/EventBusName.md +13 -0
  214. package/docs/variables/EventName.md +13 -0
  215. package/docs/variables/FilenameReservedRegex.md +16 -0
  216. package/docs/variables/HFBuiltins.md +92 -0
  217. package/docs/variables/InternalErrorCode.md +13 -0
  218. package/docs/variables/NotFoundErrorCode.md +13 -0
  219. package/docs/variables/NotImplementedErrorCode.md +13 -0
  220. package/docs/variables/PASSING_SCORE.md +13 -0
  221. package/docs/variables/PromptTemplateTypes.md +13 -0
  222. package/docs/variables/PromptTypes.md +16 -0
  223. package/docs/variables/RStreamErrCode.md +13 -0
  224. package/docs/variables/RemoteToolFuncSchema.md +87 -0
  225. package/docs/variables/ResponseRStreamErrCode.md +13 -0
  226. package/docs/variables/SSEChannelAlreadyClosedErrCode.md +13 -0
  227. package/docs/variables/ServerToolFuncSchema.md +87 -0
  228. package/docs/variables/ToolAsyncCancelableBit.md +13 -0
  229. package/docs/variables/ToolAsyncMultiTaskBit.md +13 -0
  230. package/docs/variables/ToolAsyncPriorityBit.md +13 -0
  231. package/docs/variables/ToolFuncSchema.md +125 -0
  232. package/docs/variables/WindowsReservedNameRegex.md +15 -0
  233. package/docs/variables/base32768.md +13 -0
  234. package/docs/variables/defaultTemplateFormat.md +13 -0
  235. package/docs/variables/event.md +13 -0
  236. package/docs/variables/eventClient.md +13 -0
  237. package/docs/variables/eventServer.md +13 -0
  238. package/docs/variables/lrucache.md +13 -0
  239. package/docs/variables/mimeType.md +13 -0
  240. package/docs/variables/uuidNIL.md +13 -0
  241. package/package.json +26 -27
  242. package/dist/chunk-W2LO3HZT.mjs +0 -1
  243. package/docs/.nojekyll +0 -1
  244. package/docs/enums/AsyncFeatureBits.md +0 -41
  245. package/docs/enums/AsyncFeatures.md +0 -41
  246. package/docs/enums/ErrorCode.md +0 -239
  247. package/docs/enums/XXHashAlgorithm.md +0 -30
  248. package/docs/modules.md +0 -4062
@@ -1,85 +1,26 @@
1
- [@isdk/ai-tool](../README.md) / [Exports](../modules.md) / FStringPromptTemplate
1
+ [**@isdk/ai-tool**](../README.md) **Docs**
2
+
3
+ ***
4
+
5
+ [@isdk/ai-tool](../globals.md) / FStringPromptTemplate
2
6
 
3
7
  # Class: FStringPromptTemplate
4
8
 
5
- ## Hierarchy
9
+ ## Extends
6
10
 
7
11
  - [`PromptTemplate`](PromptTemplate.md)
8
12
 
9
- ↳ **`FStringPromptTemplate`**
10
-
11
- ## Table of contents
12
-
13
- ### Constructors
14
-
15
- - [constructor](FStringPromptTemplate.md#constructor)
16
-
17
- ### Properties
18
-
19
- - [compiledTemplate](FStringPromptTemplate.md#compiledtemplate)
20
- - [data](FStringPromptTemplate.md#data)
21
- - [inputVariables](FStringPromptTemplate.md#inputvariables)
22
- - [template](FStringPromptTemplate.md#template)
23
- - [templateFormat](FStringPromptTemplate.md#templateformat)
24
- - [\_Factory](FStringPromptTemplate.md#_factory)
25
- - [\_aliases](FStringPromptTemplate.md#_aliases)
26
- - [\_baseNameOnly](FStringPromptTemplate.md#_basenameonly)
27
- - [\_children](FStringPromptTemplate.md#_children)
28
-
29
- ### Accessors
30
-
31
- - [Factory](FStringPromptTemplate.md#factory)
32
- - [aliases](FStringPromptTemplate.md#aliases)
33
-
34
- ### Methods
35
-
36
- - [\_format](FStringPromptTemplate.md#_format)
37
- - [\_initialize](FStringPromptTemplate.md#_initialize)
38
- - [filterData](FStringPromptTemplate.md#filterdata)
39
- - [format](FStringPromptTemplate.md#format)
40
- - [getVariables](FStringPromptTemplate.md#getvariables)
41
- - [initialize](FStringPromptTemplate.md#initialize)
42
- - [partial](FStringPromptTemplate.md#partial)
43
- - [toJSON](FStringPromptTemplate.md#tojson)
44
- - [\_findRootFactory](FStringPromptTemplate.md#_findrootfactory)
45
- - [\_get](FStringPromptTemplate.md#_get)
46
- - [\_register](FStringPromptTemplate.md#_register)
47
- - [cleanAliases](FStringPromptTemplate.md#cleanaliases)
48
- - [createObject](FStringPromptTemplate.md#createobject)
49
- - [findRootFactory](FStringPromptTemplate.md#findrootfactory)
50
- - [forEach](FStringPromptTemplate.md#foreach)
51
- - [format](FStringPromptTemplate.md#format-1)
52
- - [formatIf](FStringPromptTemplate.md#formatif)
53
- - [formatName](FStringPromptTemplate.md#formatname)
54
- - [formatNameFromClass](FStringPromptTemplate.md#formatnamefromclass)
55
- - [from](FStringPromptTemplate.md#from)
56
- - [get](FStringPromptTemplate.md#get)
57
- - [getAliases](FStringPromptTemplate.md#getaliases)
58
- - [getDisplayName](FStringPromptTemplate.md#getdisplayname)
59
- - [getNameFrom](FStringPromptTemplate.md#getnamefrom)
60
- - [getRealName](FStringPromptTemplate.md#getrealname)
61
- - [getRealNameFromAlias](FStringPromptTemplate.md#getrealnamefromalias)
62
- - [isTemplate](FStringPromptTemplate.md#istemplate)
63
- - [register](FStringPromptTemplate.md#register)
64
- - [registeredClass](FStringPromptTemplate.md#registeredclass)
65
- - [removeAlias](FStringPromptTemplate.md#removealias)
66
- - [setAlias](FStringPromptTemplate.md#setalias)
67
- - [setAliases](FStringPromptTemplate.md#setaliases)
68
- - [setDisplayName](FStringPromptTemplate.md#setdisplayname)
69
- - [unregister](FStringPromptTemplate.md#unregister)
70
-
71
13
  ## Constructors
72
14
 
73
- ### constructor
15
+ ### new FStringPromptTemplate()
74
16
 
75
- **new FStringPromptTemplate**(`template?`, `options?`): [`FStringPromptTemplate`](FStringPromptTemplate.md)
17
+ > **new FStringPromptTemplate**(`template`?, `options`?): [`FStringPromptTemplate`](FStringPromptTemplate.md)
76
18
 
77
19
  #### Parameters
78
20
 
79
- | Name | Type |
80
- | :------ | :------ |
81
- | `template?` | `string` \| [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md) |
82
- | `options?` | [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md) |
21
+ **template?**: `string` \| [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md)
22
+
23
+ **options?**: [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md)
83
24
 
84
25
  #### Returns
85
26
 
@@ -87,128 +28,108 @@
87
28
 
88
29
  #### Inherited from
89
30
 
90
- [PromptTemplate](PromptTemplate.md).[constructor](PromptTemplate.md#constructor)
31
+ [`PromptTemplate`](PromptTemplate.md).[`constructor`](PromptTemplate.md#constructors)
91
32
 
92
33
  #### Defined in
93
34
 
94
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:69](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L69)
35
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:69](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L69)
95
36
 
96
37
  ## Properties
97
38
 
98
39
  ### compiledTemplate
99
40
 
100
- **compiledTemplate**: [`FStringPromptTemplateNode`](../modules.md#fstringprompttemplatenode)[]
41
+ > **compiledTemplate**: [`FStringPromptTemplateNode`](../type-aliases/FStringPromptTemplateNode.md)[]
101
42
 
102
43
  #### Overrides
103
44
 
104
- [PromptTemplate](PromptTemplate.md).[compiledTemplate](PromptTemplate.md#compiledtemplate)
45
+ [`PromptTemplate`](PromptTemplate.md).[`compiledTemplate`](PromptTemplate.md#compiledtemplate)
105
46
 
106
47
  #### Defined in
107
48
 
108
- [packages/ai-tool/src/utils/prompt/f-string-prompt-template.ts:16](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/f-string-prompt-template.ts#L16)
49
+ [packages/ai-tool/src/utils/prompt/f-string-prompt-template.ts:16](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/f-string-prompt-template.ts#L16)
109
50
 
110
- ___
51
+ ***
111
52
 
112
53
  ### data
113
54
 
114
- **data**: `undefined` \| `Record`\<`string`, `any`\>
55
+ > **data**: `undefined` \| `Record`\<`string`, `any`\>
115
56
 
116
57
  #### Inherited from
117
58
 
118
- [PromptTemplate](PromptTemplate.md).[data](PromptTemplate.md#data)
59
+ [`PromptTemplate`](PromptTemplate.md).[`data`](PromptTemplate.md#data)
119
60
 
120
61
  #### Defined in
121
62
 
122
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:24](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L24)
63
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:24](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L24)
123
64
 
124
- ___
65
+ ***
125
66
 
126
67
  ### inputVariables
127
68
 
128
- **inputVariables**: `undefined` \| `string`[]
69
+ > **inputVariables**: `undefined` \| `string`[]
129
70
 
130
71
  #### Inherited from
131
72
 
132
- [PromptTemplate](PromptTemplate.md).[inputVariables](PromptTemplate.md#inputvariables)
73
+ [`PromptTemplate`](PromptTemplate.md).[`inputVariables`](PromptTemplate.md#inputvariables)
133
74
 
134
75
  #### Defined in
135
76
 
136
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:25](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L25)
77
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:25](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L25)
137
78
 
138
- ___
79
+ ***
139
80
 
140
81
  ### template
141
82
 
142
- **template**: `string`
83
+ > **template**: `string`
143
84
 
144
85
  #### Inherited from
145
86
 
146
- [PromptTemplate](PromptTemplate.md).[template](PromptTemplate.md#template)
87
+ [`PromptTemplate`](PromptTemplate.md).[`template`](PromptTemplate.md#template)
147
88
 
148
89
  #### Defined in
149
90
 
150
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:22](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L22)
91
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:22](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L22)
151
92
 
152
- ___
93
+ ***
153
94
 
154
95
  ### templateFormat
155
96
 
156
- **templateFormat**: `undefined` \| `string`
157
-
158
- #### Inherited from
159
-
160
- [PromptTemplate](PromptTemplate.md).[templateFormat](PromptTemplate.md#templateformat)
161
-
162
- #### Defined in
163
-
164
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:23](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L23)
165
-
166
- ___
167
-
168
- ### \_Factory
169
-
170
- ▪ `Static` **\_Factory**: typeof `BaseFactory`
171
-
172
- The Root Factory class
173
-
174
- **`Name`**
175
-
176
- _Factory
177
-
178
- **`Abstract`**
97
+ > **templateFormat**: `undefined` \| `string`
179
98
 
180
99
  #### Inherited from
181
100
 
182
- [PromptTemplate](PromptTemplate.md).[_Factory](PromptTemplate.md#_factory)
101
+ [`PromptTemplate`](PromptTemplate.md).[`templateFormat`](PromptTemplate.md#templateformat)
183
102
 
184
103
  #### Defined in
185
104
 
186
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:41
105
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:23](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L23)
187
106
 
188
- ___
107
+ ***
189
108
 
190
109
  ### \_aliases
191
110
 
192
- `Static` **\_aliases**: [alias: string]
111
+ > `abstract` `static` **\_aliases**: [`string`]
112
+
113
+ **`Internal`**
193
114
 
194
115
  the registered alias items object.
195
116
  the key is alias name, the value is the registered name
196
117
 
197
- **`Abstract`**
198
-
199
118
  #### Inherited from
200
119
 
201
- [PromptTemplate](PromptTemplate.md).[_aliases](PromptTemplate.md#_aliases)
120
+ [`PromptTemplate`](PromptTemplate.md).[`_aliases`](PromptTemplate.md#_aliases)
202
121
 
203
122
  #### Defined in
204
123
 
205
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:59
124
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:59
206
125
 
207
- ___
126
+ ***
208
127
 
209
128
  ### \_baseNameOnly
210
129
 
211
- `Static` **\_baseNameOnly**: `number`
130
+ > `static` **\_baseNameOnly**: `number`
131
+
132
+ **`Internal`**
212
133
 
213
134
  Extracts a specified number of words from a PascalCase class name to use as a base name for registration,
214
135
  only if no `name` is specified. The parameter value indicates the maximum depth of the word extraction.
@@ -218,7 +139,7 @@ The baseNameOnly parameter is a number that specifies which words to extract fro
218
139
  If the value is 1, it extracts the first word, 2 extracts the first two words, and 0 uses the entire class name.
219
140
  The base name is used to register the class to the factory.
220
141
 
221
- **`Example`**
142
+ #### Example
222
143
 
223
144
  ```ts
224
145
  such as "JsonTextCodec" if baseNameOnly is 1, the first word "Json" will be extracted from "JsonTextCodec" as
@@ -226,11 +147,11 @@ such as "JsonTextCodec" if baseNameOnly is 1, the first word "Json" will be extr
226
147
  baseNameOnly is 0, the entire class name "JsonTextCodec" will be used as the base name.
227
148
  ```
228
149
 
229
- **`Name`**
150
+ #### Name
230
151
 
231
152
  _baseNameOnly
232
153
 
233
- **`Default`**
154
+ #### Default
234
155
 
235
156
  ```ts
236
157
  1
@@ -239,109 +160,115 @@ _baseNameOnly
239
160
 
240
161
  #### Inherited from
241
162
 
242
- [PromptTemplate](PromptTemplate.md).[_baseNameOnly](PromptTemplate.md#_basenameonly)
163
+ [`PromptTemplate`](PromptTemplate.md).[`_baseNameOnly`](PromptTemplate.md#_basenameonly)
243
164
 
244
165
  #### Defined in
245
166
 
246
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:82
167
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:82
247
168
 
248
- ___
169
+ ***
249
170
 
250
171
  ### \_children
251
172
 
252
- `Static` **\_children**: `Object`
173
+ > `abstract` `static` **\_children**: `object`
253
174
 
254
- The registered classes in the Factory
175
+ **`Internal`**
255
176
 
256
- **`Name`**
177
+ The registered classes in the Factory
257
178
 
258
- _children
179
+ #### Index Signature
259
180
 
260
- **`Abstract`**
181
+ \[`name`: `string`\]: `any`
261
182
 
262
- #### Index signature
183
+ #### Name
263
184
 
264
- ▪ [name: `string`]: `any`
185
+ _children
265
186
 
266
187
  #### Inherited from
267
188
 
268
- [PromptTemplate](PromptTemplate.md).[_children](PromptTemplate.md#_children)
189
+ [`PromptTemplate`](PromptTemplate.md).[`_children`](PromptTemplate.md#_children)
269
190
 
270
191
  #### Defined in
271
192
 
272
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:49
193
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:49
273
194
 
274
- ## Accessors
195
+ ***
275
196
 
276
- ### Factory
197
+ ### \_Factory
198
+
199
+ > `abstract` `static` **\_Factory**: *typeof* `BaseFactory`
277
200
 
278
- • `get` **Factory**(): typeof `BaseFactory`
201
+ **`Internal`**
279
202
 
280
203
  The Root Factory class
281
204
 
282
- #### Returns
205
+ #### Name
283
206
 
284
- typeof `BaseFactory`
207
+ _Factory
285
208
 
286
209
  #### Inherited from
287
210
 
288
- PromptTemplate.Factory
211
+ [`PromptTemplate`](PromptTemplate.md).[`_Factory`](PromptTemplate.md#_factory)
289
212
 
290
213
  #### Defined in
291
214
 
292
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:63
215
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:41
293
216
 
294
- ___
217
+ ## Accessors
295
218
 
296
219
  ### aliases
297
220
 
298
- `get` **aliases**(): `string`[]
221
+ > `get` `static` **aliases**(): `string`[]
299
222
 
300
223
  the aliases of itself
301
224
 
225
+ > `set` `static` **aliases**(`value`): `void`
226
+
227
+ #### Parameters
228
+
229
+ • **value**: `string`[]
230
+
302
231
  #### Returns
303
232
 
304
233
  `string`[]
305
234
 
306
235
  #### Inherited from
307
236
 
308
- PromptTemplate.aliases
237
+ [`PromptTemplate`](PromptTemplate.md).[`aliases`](PromptTemplate.md#aliases)
309
238
 
310
239
  #### Defined in
311
240
 
312
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:200
241
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:200
313
242
 
314
- • `set` **aliases**(`value`): `void`
243
+ ***
315
244
 
316
- #### Parameters
245
+ ### Factory
317
246
 
318
- | Name | Type |
319
- | :------ | :------ |
320
- | `value` | `string`[] |
247
+ > `get` `static` **Factory**(): *typeof* `BaseFactory`
248
+
249
+ The Root Factory class
321
250
 
322
251
  #### Returns
323
252
 
324
- `void`
253
+ *typeof* `BaseFactory`
325
254
 
326
255
  #### Inherited from
327
256
 
328
- PromptTemplate.aliases
257
+ [`PromptTemplate`](PromptTemplate.md).[`Factory`](PromptTemplate.md#factory)
329
258
 
330
259
  #### Defined in
331
260
 
332
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:196
261
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:63
333
262
 
334
263
  ## Methods
335
264
 
336
- ### \_format
265
+ ### \_format()
337
266
 
338
- **_format**(`data`): `string`
267
+ > **\_format**(`data`): `string`
339
268
 
340
269
  #### Parameters
341
270
 
342
- | Name | Type |
343
- | :------ | :------ |
344
- | `data` | `Record`\<`string`, `any`\> |
271
+ **data**: `Record`\<`string`, `any`\>
345
272
 
346
273
  #### Returns
347
274
 
@@ -349,23 +276,21 @@ node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-fac
349
276
 
350
277
  #### Overrides
351
278
 
352
- [PromptTemplate](PromptTemplate.md).[_format](PromptTemplate.md#_format)
279
+ [`PromptTemplate`](PromptTemplate.md).[`_format`](PromptTemplate.md#_format)
353
280
 
354
281
  #### Defined in
355
282
 
356
- [packages/ai-tool/src/utils/prompt/f-string-prompt-template.ts:56](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/f-string-prompt-template.ts#L56)
283
+ [packages/ai-tool/src/utils/prompt/f-string-prompt-template.ts:56](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/f-string-prompt-template.ts#L56)
357
284
 
358
- ___
285
+ ***
359
286
 
360
- ### \_initialize
287
+ ### \_initialize()
361
288
 
362
- **_initialize**(`options?`): `void`
289
+ > **\_initialize**(`options`?): `void`
363
290
 
364
291
  #### Parameters
365
292
 
366
- | Name | Type |
367
- | :------ | :------ |
368
- | `options?` | [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md) |
293
+ **options?**: [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md)
369
294
 
370
295
  #### Returns
371
296
 
@@ -373,25 +298,23 @@ ___
373
298
 
374
299
  #### Overrides
375
300
 
376
- [PromptTemplate](PromptTemplate.md).[_initialize](PromptTemplate.md#_initialize)
301
+ [`PromptTemplate`](PromptTemplate.md).[`_initialize`](PromptTemplate.md#_initialize)
377
302
 
378
303
  #### Defined in
379
304
 
380
- [packages/ai-tool/src/utils/prompt/f-string-prompt-template.ts:47](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/f-string-prompt-template.ts#L47)
305
+ [packages/ai-tool/src/utils/prompt/f-string-prompt-template.ts:47](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/f-string-prompt-template.ts#L47)
381
306
 
382
- ___
307
+ ***
383
308
 
384
- ### filterData
309
+ ### filterData()
385
310
 
386
- **filterData**(`data`): `Record`\<`string`, `any`\>
311
+ > **filterData**(`data`): `Record`\<`string`, `any`\>
387
312
 
388
313
  Validate/filter the data in inputVariables
389
314
 
390
315
  #### Parameters
391
316
 
392
- | Name | Type |
393
- | :------ | :------ |
394
- | `data` | `Record`\<`string`, `any`\> |
317
+ **data**: `Record`\<`string`, `any`\>
395
318
 
396
319
  #### Returns
397
320
 
@@ -399,23 +322,21 @@ Validate/filter the data in inputVariables
399
322
 
400
323
  #### Inherited from
401
324
 
402
- [PromptTemplate](PromptTemplate.md).[filterData](PromptTemplate.md#filterdata)
325
+ [`PromptTemplate`](PromptTemplate.md).[`filterData`](PromptTemplate.md#filterdata)
403
326
 
404
327
  #### Defined in
405
328
 
406
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:62](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L62)
329
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:62](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L62)
407
330
 
408
- ___
331
+ ***
409
332
 
410
- ### format
333
+ ### format()
411
334
 
412
- **format**(`data?`): `Promise`\<`string`\>
335
+ > **format**(`data`?): `Promise`\<`string`\>
413
336
 
414
337
  #### Parameters
415
338
 
416
- | Name | Type |
417
- | :------ | :------ |
418
- | `data?` | `Record`\<`string`, `any`\> |
339
+ **data?**: `Record`\<`string`, `any`\>
419
340
 
420
341
  #### Returns
421
342
 
@@ -423,23 +344,21 @@ ___
423
344
 
424
345
  #### Inherited from
425
346
 
426
- [PromptTemplate](PromptTemplate.md).[format](PromptTemplate.md#format)
347
+ [`PromptTemplate`](PromptTemplate.md).[`format`](PromptTemplate.md#format)
427
348
 
428
349
  #### Defined in
429
350
 
430
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:109](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L109)
351
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:109](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L109)
431
352
 
432
- ___
353
+ ***
433
354
 
434
- ### getVariables
355
+ ### getVariables()
435
356
 
436
- **getVariables**(`template?`): `string`[]
357
+ > **getVariables**(`template`): `string`[]
437
358
 
438
359
  #### Parameters
439
360
 
440
- | Name | Type |
441
- | :------ | :------ |
442
- | `template` | [`FStringPromptTemplateNode`](../modules.md#fstringprompttemplatenode)[] |
361
+ **template**: [`FStringPromptTemplateNode`](../type-aliases/FStringPromptTemplateNode.md)[] = `...`
443
362
 
444
363
  #### Returns
445
364
 
@@ -447,19 +366,21 @@ ___
447
366
 
448
367
  #### Defined in
449
368
 
450
- [packages/ai-tool/src/utils/prompt/f-string-prompt-template.ts:43](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/f-string-prompt-template.ts#L43)
369
+ [packages/ai-tool/src/utils/prompt/f-string-prompt-template.ts:43](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/f-string-prompt-template.ts#L43)
451
370
 
452
- ___
371
+ ***
453
372
 
454
- ### initialize
373
+ ### initialize()
455
374
 
456
- **initialize**(`options?`): `void`
375
+ > `abstract` **initialize**(`options`?): `void`
376
+
377
+ **`Internal`**
378
+
379
+ initialize instance method
457
380
 
458
381
  #### Parameters
459
382
 
460
- | Name | Type |
461
- | :------ | :------ |
462
- | `options?` | [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md) |
383
+ **options?**: [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md)
463
384
 
464
385
  #### Returns
465
386
 
@@ -467,25 +388,25 @@ ___
467
388
 
468
389
  #### Inherited from
469
390
 
470
- [PromptTemplate](PromptTemplate.md).[initialize](PromptTemplate.md#initialize)
391
+ [`PromptTemplate`](PromptTemplate.md).[`initialize`](PromptTemplate.md#initialize)
471
392
 
472
393
  #### Defined in
473
394
 
474
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:96](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L96)
395
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:96](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L96)
475
396
 
476
- ___
397
+ ***
477
398
 
478
- ### partial
399
+ ### partial()
479
400
 
480
- **partial**(`data`): [`PromptTemplate`](PromptTemplate.md)
401
+ > **partial**(`data`): [`PromptTemplate`](PromptTemplate.md)
481
402
 
482
403
  it can make sense to "partial" a prompt template - eg pass in a subset of the required values, as to create a new prompt template which expects only the remaining subset of values.
483
404
 
484
405
  #### Parameters
485
406
 
486
- | Name | Type | Description |
487
- | :------ | :------ | :------ |
488
- | `data` | `Record`\<`string`, `any`\> | the partial data |
407
+ **data**: `Record`\<`string`, `any`\>
408
+
409
+ the partial data
489
410
 
490
411
  #### Returns
491
412
 
@@ -495,23 +416,21 @@ the new partial PromptTemplate instance
495
416
 
496
417
  #### Inherited from
497
418
 
498
- [PromptTemplate](PromptTemplate.md).[partial](PromptTemplate.md#partial)
419
+ [`PromptTemplate`](PromptTemplate.md).[`partial`](PromptTemplate.md#partial)
499
420
 
500
421
  #### Defined in
501
422
 
502
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:139](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L139)
423
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:139](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L139)
503
424
 
504
- ___
425
+ ***
505
426
 
506
- ### toJSON
427
+ ### toJSON()
507
428
 
508
- **toJSON**(`options?`): [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md)
429
+ > **toJSON**(`options`): [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md)
509
430
 
510
431
  #### Parameters
511
432
 
512
- | Name | Type |
513
- | :------ | :------ |
514
- | `options` | [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md) |
433
+ **options**: [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md) = `...`
515
434
 
516
435
  #### Returns
517
436
 
@@ -519,49 +438,49 @@ ___
519
438
 
520
439
  #### Inherited from
521
440
 
522
- [PromptTemplate](PromptTemplate.md).[toJSON](PromptTemplate.md#tojson)
441
+ [`PromptTemplate`](PromptTemplate.md).[`toJSON`](PromptTemplate.md#tojson)
523
442
 
524
443
  #### Defined in
525
444
 
526
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:147](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L147)
445
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:147](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L147)
527
446
 
528
- ___
447
+ ***
529
448
 
530
- ### \_findRootFactory
449
+ ### \_findRootFactory()
531
450
 
532
- **_findRootFactory**(`aClass`): `undefined` \| typeof `BaseFactory`
451
+ > `static` **\_findRootFactory**(`aClass`): `undefined` \| *typeof* `BaseFactory`
452
+
453
+ **`Internal`**
533
454
 
534
455
  find the real root factory
535
456
 
536
457
  #### Parameters
537
458
 
538
- | Name | Type | Description |
539
- | :------ | :------ | :------ |
540
- | `aClass` | typeof `BaseFactory` | the abstract root factory class |
459
+ **aClass**: *typeof* `BaseFactory`
460
+
461
+ the abstract root factory class
541
462
 
542
463
  #### Returns
543
464
 
544
- `undefined` \| typeof `BaseFactory`
465
+ `undefined` \| *typeof* `BaseFactory`
545
466
 
546
467
  #### Inherited from
547
468
 
548
- [PromptTemplate](PromptTemplate.md).[_findRootFactory](PromptTemplate.md#_findrootfactory)
469
+ [`PromptTemplate`](PromptTemplate.md).[`_findRootFactory`](PromptTemplate.md#_findrootfactory)
549
470
 
550
471
  #### Defined in
551
472
 
552
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:99
473
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:99
553
474
 
554
- ___
475
+ ***
555
476
 
556
- ### \_get
477
+ ### \_get()
557
478
 
558
- **_get**(`name`): `any`
479
+ > `static` **\_get**(`name`): `any`
559
480
 
560
481
  #### Parameters
561
482
 
562
- | Name | Type |
563
- | :------ | :------ |
564
- | `name` | `any` |
483
+ **name**: `any`
565
484
 
566
485
  #### Returns
567
486
 
@@ -569,26 +488,31 @@ ___
569
488
 
570
489
  #### Inherited from
571
490
 
572
- [PromptTemplate](PromptTemplate.md).[_get](PromptTemplate.md#_get)
491
+ [`PromptTemplate`](PromptTemplate.md).[`_get`](PromptTemplate.md#_get)
573
492
 
574
493
  #### Defined in
575
494
 
576
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:234
495
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:234
577
496
 
578
- ___
497
+ ***
579
498
 
580
- ### \_register
499
+ ### \_register()
581
500
 
582
- **_register**(`aClass`, `aOptions?`): `boolean`
501
+ > `static` **\_register**(`aClass`, `aOptions`?): `boolean`
502
+
503
+ **`Internal`**
583
504
 
584
505
  register the aClass to the factory
585
506
 
586
507
  #### Parameters
587
508
 
588
- | Name | Type | Description |
589
- | :------ | :------ | :------ |
590
- | `aClass` | typeof `BaseFactory` | the class to register the Factory |
591
- | `aOptions?` | `any` | the options for the class and the factory |
509
+ **aClass**: *typeof* `BaseFactory`
510
+
511
+ the class to register the Factory
512
+
513
+ • **aOptions?**: `any`
514
+
515
+ the options for the class and the factory
592
516
 
593
517
  #### Returns
594
518
 
@@ -598,25 +522,25 @@ return true if successful.
598
522
 
599
523
  #### Inherited from
600
524
 
601
- [PromptTemplate](PromptTemplate.md).[_register](PromptTemplate.md#_register)
525
+ [`PromptTemplate`](PromptTemplate.md).[`_register`](PromptTemplate.md#_register)
602
526
 
603
527
  #### Defined in
604
528
 
605
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:145
529
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:145
606
530
 
607
- ___
531
+ ***
608
532
 
609
- ### cleanAliases
533
+ ### cleanAliases()
610
534
 
611
- **cleanAliases**(`aName`): `void`
535
+ > `static` **cleanAliases**(`aName`): `void`
612
536
 
613
537
  remove all aliases of the registered item or itself
614
538
 
615
539
  #### Parameters
616
540
 
617
- | Name | Type | Description |
618
- | :------ | :------ | :------ |
619
- | `aName` | `undefined` \| `string` \| typeof `BaseFactory` | the registered item or name |
541
+ **aName**: `undefined` \| `string` \| *typeof* `BaseFactory`
542
+
543
+ the registered item or name
620
544
 
621
545
  #### Returns
622
546
 
@@ -624,26 +548,25 @@ remove all aliases of the registered item or itself
624
548
 
625
549
  #### Inherited from
626
550
 
627
- [PromptTemplate](PromptTemplate.md).[cleanAliases](PromptTemplate.md#cleanaliases)
551
+ [`PromptTemplate`](PromptTemplate.md).[`cleanAliases`](PromptTemplate.md#cleanaliases)
628
552
 
629
553
  #### Defined in
630
554
 
631
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:162
555
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:162
632
556
 
633
- ___
557
+ ***
634
558
 
635
- ### createObject
559
+ ### createObject()
636
560
 
637
- **createObject**(`aName`, `aOptions`): `undefined` \| `BaseFactory`
561
+ > `static` **createObject**(`aName`, `aOptions`): `undefined` \| `BaseFactory`
638
562
 
639
563
  Create a new object instance of Factory
640
564
 
641
565
  #### Parameters
642
566
 
643
- | Name | Type |
644
- | :------ | :------ |
645
- | `aName` | `string` \| `BaseFactory` |
646
- | `aOptions` | `any` |
567
+ **aName**: `string` \| `BaseFactory`
568
+
569
+ **aOptions**: `any`
647
570
 
648
571
  #### Returns
649
572
 
@@ -651,17 +574,19 @@ Create a new object instance of Factory
651
574
 
652
575
  #### Inherited from
653
576
 
654
- [PromptTemplate](PromptTemplate.md).[createObject](PromptTemplate.md#createobject)
577
+ [`PromptTemplate`](PromptTemplate.md).[`createObject`](PromptTemplate.md#createobject)
655
578
 
656
579
  #### Defined in
657
580
 
658
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:241
581
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:241
582
+
583
+ ***
659
584
 
660
- ___
585
+ ### findRootFactory()
661
586
 
662
- ### findRootFactory
587
+ > `abstract` `static` **findRootFactory**(): `undefined` \| *typeof* `BaseFactory`
663
588
 
664
- ▸ **findRootFactory**(): `undefined` \| typeof `BaseFactory`
589
+ **`Internal`**
665
590
 
666
591
  find the real root factory
667
592
 
@@ -670,33 +595,31 @@ or set _Factory directly.
670
595
 
671
596
  #### Returns
672
597
 
673
- `undefined` \| typeof `BaseFactory`
598
+ `undefined` \| *typeof* `BaseFactory`
674
599
 
675
600
  the root factory class
676
601
 
677
- **`Abstract`**
678
-
679
602
  #### Inherited from
680
603
 
681
- [PromptTemplate](PromptTemplate.md).[findRootFactory](PromptTemplate.md#findrootfactory)
604
+ [`PromptTemplate`](PromptTemplate.md).[`findRootFactory`](PromptTemplate.md#findrootfactory)
682
605
 
683
606
  #### Defined in
684
607
 
685
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:92
608
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:92
686
609
 
687
- ___
610
+ ***
688
611
 
689
- ### forEach
612
+ ### forEach()
690
613
 
691
- **forEach**(`cb`): `any`
614
+ > `static` **forEach**(`cb`): `any`
692
615
 
693
616
  executes a provided callback function once for each registered element.
694
617
 
695
618
  #### Parameters
696
619
 
697
- | Name | Type | Description |
698
- | :------ | :------ | :------ |
699
- | `cb` | (`ctor`: typeof `BaseFactory`, `name`: `string`) => `undefined` \| `string` | the forEach callback function |
620
+ **cb**
621
+
622
+ the forEach callback function
700
623
 
701
624
  #### Returns
702
625
 
@@ -704,23 +627,21 @@ executes a provided callback function once for each registered element.
704
627
 
705
628
  #### Inherited from
706
629
 
707
- [PromptTemplate](PromptTemplate.md).[forEach](PromptTemplate.md#foreach)
630
+ [`PromptTemplate`](PromptTemplate.md).[`forEach`](PromptTemplate.md#foreach)
708
631
 
709
632
  #### Defined in
710
633
 
711
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:227
634
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:227
712
635
 
713
- ___
636
+ ***
714
637
 
715
- ### format
638
+ ### format()
716
639
 
717
- **format**(`options`): `Promise`\<`string`\>
640
+ > `static` **format**(`options`): `Promise`\<`string`\>
718
641
 
719
642
  #### Parameters
720
643
 
721
- | Name | Type |
722
- | :------ | :------ |
723
- | `options` | [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md) |
644
+ **options**: [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md)
724
645
 
725
646
  #### Returns
726
647
 
@@ -728,25 +649,25 @@ ___
728
649
 
729
650
  #### Inherited from
730
651
 
731
- [PromptTemplate](PromptTemplate.md).[format](PromptTemplate.md#format-1)
652
+ [`PromptTemplate`](PromptTemplate.md).[`format`](PromptTemplate.md#format-1)
732
653
 
733
654
  #### Defined in
734
655
 
735
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:31](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L31)
656
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:31](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L31)
736
657
 
737
- ___
658
+ ***
738
659
 
739
- ### formatIf
660
+ ### formatIf()
740
661
 
741
- **formatIf**(`options`): `Promise`\<`undefined` \| `string`\>
662
+ > `static` **formatIf**(`options`): `Promise`\<`undefined` \| `string`\>
742
663
 
743
664
  If the given options.template is the template, perform formatting using that template.
744
665
 
745
666
  #### Parameters
746
667
 
747
- | Name | Type | Description |
748
- | :------ | :------ | :------ |
749
- | `options` | [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md) | The options object to check for being a template and to format. |
668
+ **options**: [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md)
669
+
670
+ The options object to check for being a template and to format.
750
671
 
751
672
  #### Returns
752
673
 
@@ -756,17 +677,19 @@ A Promise that resolves to the formatted result if options is a template; otherw
756
677
 
757
678
  #### Inherited from
758
679
 
759
- [PromptTemplate](PromptTemplate.md).[formatIf](PromptTemplate.md#formatif)
680
+ [`PromptTemplate`](PromptTemplate.md).[`formatIf`](PromptTemplate.md#formatif)
760
681
 
761
682
  #### Defined in
762
683
 
763
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:41](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L41)
684
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:41](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L41)
685
+
686
+ ***
764
687
 
765
- ___
688
+ ### formatName()
766
689
 
767
- ### formatName
690
+ > `abstract` `static` **formatName**(`aName`): `string`
768
691
 
769
- ▸ **formatName**(`aName`): `string`
692
+ **`Internal`**
770
693
 
771
694
  format(transform) the name to be registered.
772
695
 
@@ -774,38 +697,35 @@ defaults to returning the name unchanged. By overloading this method, case-insen
774
697
 
775
698
  #### Parameters
776
699
 
777
- | Name | Type |
778
- | :------ | :------ |
779
- | `aName` | `string` |
700
+ **aName**: `string`
780
701
 
781
702
  #### Returns
782
703
 
783
704
  `string`
784
705
 
785
- **`Abstract`**
786
-
787
706
  #### Inherited from
788
707
 
789
- [PromptTemplate](PromptTemplate.md).[formatName](PromptTemplate.md#formatname)
708
+ [`PromptTemplate`](PromptTemplate.md).[`formatName`](PromptTemplate.md#formatname)
790
709
 
791
710
  #### Defined in
792
711
 
793
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:116
712
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:116
794
713
 
795
- ___
714
+ ***
796
715
 
797
- ### formatNameFromClass
716
+ ### formatNameFromClass()
798
717
 
799
- **formatNameFromClass**(`aClass`, `aBaseNameOnly?`): `string`
718
+ > `static` **formatNameFromClass**(`aClass`, `aBaseNameOnly`?): `string`
719
+
720
+ **`Internal`**
800
721
 
801
722
  format(transform) the name to be registered for the aClass
802
723
 
803
724
  #### Parameters
804
725
 
805
- | Name | Type |
806
- | :------ | :------ |
807
- | `aClass` | `any` |
808
- | `aBaseNameOnly?` | `number` |
726
+ **aClass**: `any`
727
+
728
+ **aBaseNameOnly?**: `number`
809
729
 
810
730
  #### Returns
811
731
 
@@ -815,24 +735,23 @@ the name to register
815
735
 
816
736
  #### Inherited from
817
737
 
818
- [PromptTemplate](PromptTemplate.md).[formatNameFromClass](PromptTemplate.md#formatnamefromclass)
738
+ [`PromptTemplate`](PromptTemplate.md).[`formatNameFromClass`](PromptTemplate.md#formatnamefromclass)
819
739
 
820
740
  #### Defined in
821
741
 
822
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:130
742
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:130
823
743
 
824
- ___
744
+ ***
825
745
 
826
- ### from
746
+ ### from()
827
747
 
828
- **from**(`template?`, `options?`): [`PromptTemplate`](PromptTemplate.md)
748
+ > `static` **from**(`template`?, `options`?): [`PromptTemplate`](PromptTemplate.md)
829
749
 
830
750
  #### Parameters
831
751
 
832
- | Name | Type |
833
- | :------ | :------ |
834
- | `template?` | `string` \| [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md) |
835
- | `options?` | [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md) |
752
+ **template?**: `string` \| [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md)
753
+
754
+ **options?**: [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md)
836
755
 
837
756
  #### Returns
838
757
 
@@ -840,53 +759,51 @@ ___
840
759
 
841
760
  #### Inherited from
842
761
 
843
- [PromptTemplate](PromptTemplate.md).[from](PromptTemplate.md#from)
762
+ [`PromptTemplate`](PromptTemplate.md).[`from`](PromptTemplate.md#from)
844
763
 
845
764
  #### Defined in
846
765
 
847
- [packages/ai-tool/src/utils/prompt/prompt-template.ts:27](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/prompt-template.ts#L27)
766
+ [packages/ai-tool/src/utils/prompt/prompt-template.ts:27](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/prompt-template.ts#L27)
848
767
 
849
- ___
768
+ ***
850
769
 
851
- ### get
770
+ ### get()
852
771
 
853
- **get**(`name`): `undefined` \| typeof `BaseFactory`
772
+ > `static` **get**(`name`): `undefined` \| *typeof* `BaseFactory`
854
773
 
855
774
  Get the registered class via name
856
775
 
857
776
  #### Parameters
858
777
 
859
- | Name | Type |
860
- | :------ | :------ |
861
- | `name` | `any` |
778
+ **name**: `any`
862
779
 
863
780
  #### Returns
864
781
 
865
- `undefined` \| typeof `BaseFactory`
782
+ `undefined` \| *typeof* `BaseFactory`
866
783
 
867
784
  return the registered class if found the name
868
785
 
869
786
  #### Inherited from
870
787
 
871
- [PromptTemplate](PromptTemplate.md).[get](PromptTemplate.md#get)
788
+ [`PromptTemplate`](PromptTemplate.md).[`get`](PromptTemplate.md#get)
872
789
 
873
790
  #### Defined in
874
791
 
875
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:233
792
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:233
876
793
 
877
- ___
794
+ ***
878
795
 
879
- ### getAliases
796
+ ### getAliases()
880
797
 
881
- **getAliases**(`aClass`): `string`[]
798
+ > `static` **getAliases**(`aClass`): `string`[]
882
799
 
883
800
  get the aliases of the aClass
884
801
 
885
802
  #### Parameters
886
803
 
887
- | Name | Type | Description |
888
- | :------ | :------ | :------ |
889
- | `aClass` | `undefined` \| `string` \| typeof `BaseFactory` | the class or name to get aliases, means itself if no aClass specified |
804
+ **aClass**: `undefined` \| `string` \| *typeof* `BaseFactory`
805
+
806
+ the class or name to get aliases, means itself if no aClass specified
890
807
 
891
808
  #### Returns
892
809
 
@@ -896,25 +813,25 @@ aliases
896
813
 
897
814
  #### Inherited from
898
815
 
899
- [PromptTemplate](PromptTemplate.md).[getAliases](PromptTemplate.md#getaliases)
816
+ [`PromptTemplate`](PromptTemplate.md).[`getAliases`](PromptTemplate.md#getaliases)
900
817
 
901
818
  #### Defined in
902
819
 
903
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:195
820
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:195
904
821
 
905
- ___
822
+ ***
906
823
 
907
- ### getDisplayName
824
+ ### getDisplayName()
908
825
 
909
- **getDisplayName**(`aClass`): `undefined` \| `string`
826
+ > `static` **getDisplayName**(`aClass`): `undefined` \| `string`
910
827
 
911
828
  Get the display name from aClass
912
829
 
913
830
  #### Parameters
914
831
 
915
- | Name | Type | Description |
916
- | :------ | :------ | :------ |
917
- | `aClass` | `undefined` \| `string` \| `Function` | the class, name or itself, means itself if no aClass |
832
+ **aClass**: `undefined` \| `string` \| `Function`
833
+
834
+ the class, name or itself, means itself if no aClass
918
835
 
919
836
  #### Returns
920
837
 
@@ -922,25 +839,23 @@ Get the display name from aClass
922
839
 
923
840
  #### Inherited from
924
841
 
925
- [PromptTemplate](PromptTemplate.md).[getDisplayName](PromptTemplate.md#getdisplayname)
842
+ [`PromptTemplate`](PromptTemplate.md).[`getDisplayName`](PromptTemplate.md#getdisplayname)
926
843
 
927
844
  #### Defined in
928
845
 
929
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:206
846
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:206
930
847
 
931
- ___
848
+ ***
932
849
 
933
- ### getNameFrom
850
+ ### getNameFrom()
934
851
 
935
- **getNameFrom**(`aClass`): `string`
852
+ > `static` **getNameFrom**(`aClass`): `string`
936
853
 
937
854
  Get the unique(registered) name in the factory
938
855
 
939
856
  #### Parameters
940
857
 
941
- | Name | Type |
942
- | :------ | :------ |
943
- | `aClass` | `string` \| `Function` |
858
+ **aClass**: `string` \| `Function`
944
859
 
945
860
  #### Returns
946
861
 
@@ -950,23 +865,21 @@ the unique name in the factory
950
865
 
951
866
  #### Inherited from
952
867
 
953
- [PromptTemplate](PromptTemplate.md).[getNameFrom](PromptTemplate.md#getnamefrom)
868
+ [`PromptTemplate`](PromptTemplate.md).[`getNameFrom`](PromptTemplate.md#getnamefrom)
954
869
 
955
870
  #### Defined in
956
871
 
957
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:122
872
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:122
958
873
 
959
- ___
874
+ ***
960
875
 
961
- ### getRealName
876
+ ### getRealName()
962
877
 
963
- **getRealName**(`name`): `any`
878
+ > `static` **getRealName**(`name`): `any`
964
879
 
965
880
  #### Parameters
966
881
 
967
- | Name | Type |
968
- | :------ | :------ |
969
- | `name` | `any` |
882
+ **name**: `any`
970
883
 
971
884
  #### Returns
972
885
 
@@ -974,25 +887,25 @@ ___
974
887
 
975
888
  #### Inherited from
976
889
 
977
- [PromptTemplate](PromptTemplate.md).[getRealName](PromptTemplate.md#getrealname)
890
+ [`PromptTemplate`](PromptTemplate.md).[`getRealName`](PromptTemplate.md#getrealname)
978
891
 
979
892
  #### Defined in
980
893
 
981
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:100
894
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:100
982
895
 
983
- ___
896
+ ***
984
897
 
985
- ### getRealNameFromAlias
898
+ ### getRealNameFromAlias()
986
899
 
987
- **getRealNameFromAlias**(`alias`): `undefined` \| `string`
900
+ > `static` **getRealNameFromAlias**(`alias`): `undefined` \| `string`
988
901
 
989
902
  get the unique name in the factory from an alias name
990
903
 
991
904
  #### Parameters
992
905
 
993
- | Name | Type | Description |
994
- | :------ | :------ | :------ |
995
- | `alias` | `string` | the alias name |
906
+ **alias**: `string`
907
+
908
+ the alias name
996
909
 
997
910
  #### Returns
998
911
 
@@ -1002,23 +915,21 @@ the unique name in the factory
1002
915
 
1003
916
  #### Inherited from
1004
917
 
1005
- [PromptTemplate](PromptTemplate.md).[getRealNameFromAlias](PromptTemplate.md#getrealnamefromalias)
918
+ [`PromptTemplate`](PromptTemplate.md).[`getRealNameFromAlias`](PromptTemplate.md#getrealnamefromalias)
1006
919
 
1007
920
  #### Defined in
1008
921
 
1009
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:106
922
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:106
1010
923
 
1011
- ___
924
+ ***
1012
925
 
1013
- ### isTemplate
926
+ ### isTemplate()
1014
927
 
1015
- **isTemplate**(`templateOpt`): `boolean`
928
+ > `static` **isTemplate**(`templateOpt`): `boolean`
1016
929
 
1017
930
  #### Parameters
1018
931
 
1019
- | Name | Type |
1020
- | :------ | :------ |
1021
- | `templateOpt` | `string` \| [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md) |
932
+ **templateOpt**: `string` \| [`PromptTemplateOptions`](../interfaces/PromptTemplateOptions.md)
1022
933
 
1023
934
  #### Returns
1024
935
 
@@ -1026,25 +937,23 @@ ___
1026
937
 
1027
938
  #### Overrides
1028
939
 
1029
- [PromptTemplate](PromptTemplate.md).[isTemplate](PromptTemplate.md#istemplate)
940
+ [`PromptTemplate`](PromptTemplate.md).[`isTemplate`](PromptTemplate.md#istemplate)
1030
941
 
1031
942
  #### Defined in
1032
943
 
1033
- [packages/ai-tool/src/utils/prompt/f-string-prompt-template.ts:18](https://github.com/isdk/ai-tool.js/blob/c5e620338f3b80d6ef09148577c5087098896d8b/src/utils/prompt/f-string-prompt-template.ts#L18)
944
+ [packages/ai-tool/src/utils/prompt/f-string-prompt-template.ts:18](https://github.com/isdk/ai-tool.js/blob/37ada542a786fbbc770f2d61beb564f6e603941d/src/utils/prompt/f-string-prompt-template.ts#L18)
1034
945
 
1035
- ___
946
+ ***
1036
947
 
1037
- ### register
948
+ ### register()
1038
949
 
1039
- **register**(`...args`): `boolean`
950
+ > `static` **register**(...`args`): `boolean`
1040
951
 
1041
952
  register the aClass to the factory
1042
953
 
1043
954
  #### Parameters
1044
955
 
1045
- | Name | Type |
1046
- | :------ | :------ |
1047
- | `...args` | `any`[] |
956
+ ...**args**: `any`[]
1048
957
 
1049
958
  #### Returns
1050
959
 
@@ -1054,53 +963,53 @@ return true if successful.
1054
963
 
1055
964
  #### Inherited from
1056
965
 
1057
- [PromptTemplate](PromptTemplate.md).[register](PromptTemplate.md#register)
966
+ [`PromptTemplate`](PromptTemplate.md).[`register`](PromptTemplate.md#register)
1058
967
 
1059
968
  #### Defined in
1060
969
 
1061
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:137
970
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:137
1062
971
 
1063
- ___
972
+ ***
1064
973
 
1065
- ### registeredClass
974
+ ### registeredClass()
1066
975
 
1067
- **registeredClass**(`aName`): ``false`` \| typeof `BaseFactory`
976
+ > `static` **registeredClass**(`aName`): `false` \| *typeof* `BaseFactory`
1068
977
 
1069
978
  Check the name, alias or itself whether registered.
1070
979
 
1071
980
  #### Parameters
1072
981
 
1073
- | Name | Type | Description |
1074
- | :------ | :------ | :------ |
1075
- | `aName` | `undefined` \| `string` | the class name |
982
+ **aName**: `undefined` \| `string`
983
+
984
+ the class name
1076
985
 
1077
986
  #### Returns
1078
987
 
1079
- ``false`` \| typeof `BaseFactory`
988
+ `false` \| *typeof* `BaseFactory`
1080
989
 
1081
990
  the registered class if registered, otherwise returns false
1082
991
 
1083
992
  #### Inherited from
1084
993
 
1085
- [PromptTemplate](PromptTemplate.md).[registeredClass](PromptTemplate.md#registeredclass)
994
+ [`PromptTemplate`](PromptTemplate.md).[`registeredClass`](PromptTemplate.md#registeredclass)
1086
995
 
1087
996
  #### Defined in
1088
997
 
1089
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:151
998
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:151
1090
999
 
1091
- ___
1000
+ ***
1092
1001
 
1093
- ### removeAlias
1002
+ ### removeAlias()
1094
1003
 
1095
- **removeAlias**(`...aliases`): `void`
1004
+ > `static` **removeAlias**(...`aliases`): `void`
1096
1005
 
1097
1006
  remove specified aliases
1098
1007
 
1099
1008
  #### Parameters
1100
1009
 
1101
- | Name | Type | Description |
1102
- | :------ | :------ | :------ |
1103
- | `...aliases` | `string`[] | the aliases to remove |
1010
+ ...**aliases**: `string`[]
1011
+
1012
+ the aliases to remove
1104
1013
 
1105
1014
  #### Returns
1106
1015
 
@@ -1108,26 +1017,27 @@ remove specified aliases
1108
1017
 
1109
1018
  #### Inherited from
1110
1019
 
1111
- [PromptTemplate](PromptTemplate.md).[removeAlias](PromptTemplate.md#removealias)
1020
+ [`PromptTemplate`](PromptTemplate.md).[`removeAlias`](PromptTemplate.md#removealias)
1112
1021
 
1113
1022
  #### Defined in
1114
1023
 
1115
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:167
1024
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:167
1116
1025
 
1117
- ___
1026
+ ***
1118
1027
 
1119
- ### setAlias
1028
+ ### setAlias()
1120
1029
 
1121
- **setAlias**(`aClass`, `alias`): `void`
1030
+ > `static` **setAlias**(`aClass`, `alias`): `void`
1122
1031
 
1123
1032
  set alias to a class
1124
1033
 
1125
1034
  #### Parameters
1126
1035
 
1127
- | Name | Type | Description |
1128
- | :------ | :------ | :------ |
1129
- | `aClass` | `undefined` \| `string` \| typeof `BaseFactory` | the class to set alias |
1130
- | `alias` | `string` | |
1036
+ **aClass**: `undefined` \| `string` \| *typeof* `BaseFactory`
1037
+
1038
+ the class to set alias
1039
+
1040
+ • **alias**: `string`
1131
1041
 
1132
1042
  #### Returns
1133
1043
 
@@ -1135,32 +1045,33 @@ set alias to a class
1135
1045
 
1136
1046
  #### Inherited from
1137
1047
 
1138
- [PromptTemplate](PromptTemplate.md).[setAlias](PromptTemplate.md#setalias)
1048
+ [`PromptTemplate`](PromptTemplate.md).[`setAlias`](PromptTemplate.md#setalias)
1139
1049
 
1140
1050
  #### Defined in
1141
1051
 
1142
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:189
1052
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:189
1143
1053
 
1144
- ___
1054
+ ***
1145
1055
 
1146
- ### setAliases
1056
+ ### setAliases()
1147
1057
 
1148
- **setAliases**(`aClass`, `...aAliases`): `void`
1058
+ > `static` **setAliases**(`aClass`, ...`aAliases`): `void`
1149
1059
 
1150
1060
  set aliases to a class
1151
1061
 
1152
1062
  #### Parameters
1153
1063
 
1154
- | Name | Type | Description |
1155
- | :------ | :------ | :------ |
1156
- | `aClass` | `undefined` \| `string` \| typeof `BaseFactory` | the class to set aliases |
1157
- | `...aAliases` | `any`[] | - |
1064
+ **aClass**: `undefined` \| `string` \| *typeof* `BaseFactory`
1065
+
1066
+ the class to set aliases
1067
+
1068
+ • ...**aAliases**: `any`[]
1158
1069
 
1159
1070
  #### Returns
1160
1071
 
1161
1072
  `void`
1162
1073
 
1163
- **`Example`**
1074
+ #### Example
1164
1075
 
1165
1076
  ```ts
1166
1077
  import { BaseFactory } from 'custom-factory'
@@ -1174,26 +1085,29 @@ import { BaseFactory } from 'custom-factory'
1174
1085
 
1175
1086
  #### Inherited from
1176
1087
 
1177
- [PromptTemplate](PromptTemplate.md).[setAliases](PromptTemplate.md#setaliases)
1088
+ [`PromptTemplate`](PromptTemplate.md).[`setAliases`](PromptTemplate.md#setaliases)
1178
1089
 
1179
1090
  #### Defined in
1180
1091
 
1181
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:183
1092
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:183
1182
1093
 
1183
- ___
1094
+ ***
1184
1095
 
1185
- ### setDisplayName
1096
+ ### setDisplayName()
1186
1097
 
1187
- **setDisplayName**(`aClass`, `aDisplayName`): `void`
1098
+ > `static` **setDisplayName**(`aClass`, `aDisplayName`): `void`
1188
1099
 
1189
1100
  Set the display name to the aClass
1190
1101
 
1191
1102
  #### Parameters
1192
1103
 
1193
- | Name | Type | Description |
1194
- | :------ | :------ | :------ |
1195
- | `aClass` | `undefined` \| `string` \| `Function` | the class, name or itself, means itself if no aClass |
1196
- | `aDisplayName` | `string` \| \{ `displayName`: `string` } | the display name to set |
1104
+ **aClass**: `undefined` \| `string` \| `Function`
1105
+
1106
+ the class, name or itself, means itself if no aClass
1107
+
1108
+ • **aDisplayName**: `string` \| `object`
1109
+
1110
+ the display name to set
1197
1111
 
1198
1112
  #### Returns
1199
1113
 
@@ -1201,25 +1115,25 @@ Set the display name to the aClass
1201
1115
 
1202
1116
  #### Inherited from
1203
1117
 
1204
- [PromptTemplate](PromptTemplate.md).[setDisplayName](PromptTemplate.md#setdisplayname)
1118
+ [`PromptTemplate`](PromptTemplate.md).[`setDisplayName`](PromptTemplate.md#setdisplayname)
1205
1119
 
1206
1120
  #### Defined in
1207
1121
 
1208
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:212
1122
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:212
1209
1123
 
1210
- ___
1124
+ ***
1211
1125
 
1212
- ### unregister
1126
+ ### unregister()
1213
1127
 
1214
- **unregister**(`aName`): `boolean`
1128
+ > `static` **unregister**(`aName`): `boolean`
1215
1129
 
1216
1130
  unregister this class in the factory
1217
1131
 
1218
1132
  #### Parameters
1219
1133
 
1220
- | Name | Type | Description |
1221
- | :------ | :------ | :------ |
1222
- | `aName` | `undefined` \| `string` \| `Function` | the registered name or class, no name means unregister itself. |
1134
+ **aName**: `undefined` \| `string` \| `Function`
1135
+
1136
+ the registered name or class, no name means unregister itself.
1223
1137
 
1224
1138
  #### Returns
1225
1139
 
@@ -1229,8 +1143,8 @@ true means successful
1229
1143
 
1230
1144
  #### Inherited from
1231
1145
 
1232
- [PromptTemplate](PromptTemplate.md).[unregister](PromptTemplate.md#unregister)
1146
+ [`PromptTemplate`](PromptTemplate.md).[`unregister`](PromptTemplate.md#unregister)
1233
1147
 
1234
1148
  #### Defined in
1235
1149
 
1236
- node_modules/.pnpm/custom-factory@2.3.0/node_modules/custom-factory/lib/base-factory.d.ts:157
1150
+ node\_modules/.pnpm/custom-factory@2.3.0/node\_modules/custom-factory/lib/base-factory.d.ts:157