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