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