@promptbook/core 0.100.0-21 → 0.100.0-23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.es.js +350 -1
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/book-2.0/commitments/ACTION/ACTION.d.ts +8 -0
- package/esm/typings/src/book-2.0/commitments/FORMAT/FORMAT.d.ts +8 -0
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +8 -0
- package/esm/typings/src/book-2.0/commitments/META_IMAGE/META_IMAGE.d.ts +8 -0
- package/esm/typings/src/book-2.0/commitments/META_LINK/META_LINK.d.ts +8 -0
- package/esm/typings/src/book-2.0/commitments/MODEL/MODEL.d.ts +8 -0
- package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +8 -0
- package/esm/typings/src/book-2.0/commitments/PERSONA/PERSONA.d.ts +8 -0
- package/esm/typings/src/book-2.0/commitments/RULE/RULE.d.ts +8 -0
- package/esm/typings/src/book-2.0/commitments/SAMPLE/SAMPLE.d.ts +8 -0
- package/esm/typings/src/book-2.0/commitments/STYLE/STYLE.d.ts +8 -0
- package/esm/typings/src/book-2.0/commitments/_base/BaseCommitmentDefinition.d.ts +10 -0
- package/esm/typings/src/book-2.0/commitments/_base/CommitmentDefinition.d.ts +11 -0
- package/esm/typings/src/book-2.0/commitments/_base/NotYetImplementedCommitmentDefinition.d.ts +8 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +350 -1
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -27,7 +27,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
27
27
|
* @generated
|
|
28
28
|
* @see https://github.com/webgptorg/promptbook
|
|
29
29
|
*/
|
|
30
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-
|
|
30
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-23';
|
|
31
31
|
/**
|
|
32
32
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
33
33
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -207,6 +207,32 @@ class ActionCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
207
207
|
constructor() {
|
|
208
208
|
super('ACTION');
|
|
209
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* Short one-line description of ACTION.
|
|
212
|
+
*/
|
|
213
|
+
get description() {
|
|
214
|
+
return 'Define agent capabilities and actions it can perform.';
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Markdown documentation for ACTION commitment.
|
|
218
|
+
*/
|
|
219
|
+
get documentation() {
|
|
220
|
+
return [
|
|
221
|
+
'# ACTION',
|
|
222
|
+
'',
|
|
223
|
+
'Defines specific actions or capabilities that the agent can perform.',
|
|
224
|
+
'',
|
|
225
|
+
'Effects on system message:',
|
|
226
|
+
'- Appends a "Capability: ..." line to the system message.',
|
|
227
|
+
'',
|
|
228
|
+
'Examples:',
|
|
229
|
+
'```book',
|
|
230
|
+
'ACTION Can generate code snippets and explain programming concepts',
|
|
231
|
+
'ACTION Able to analyze data and provide insights',
|
|
232
|
+
'```',
|
|
233
|
+
'',
|
|
234
|
+
].join('\n');
|
|
235
|
+
}
|
|
210
236
|
applyToAgentModelRequirements(requirements, content) {
|
|
211
237
|
const trimmedContent = content.trim();
|
|
212
238
|
if (!trimmedContent) {
|
|
@@ -247,6 +273,32 @@ class FormatCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
247
273
|
constructor() {
|
|
248
274
|
super('FORMAT');
|
|
249
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* Short one-line description of FORMAT.
|
|
278
|
+
*/
|
|
279
|
+
get description() {
|
|
280
|
+
return 'Specify output structure or formatting requirements.';
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Markdown documentation for FORMAT commitment.
|
|
284
|
+
*/
|
|
285
|
+
get documentation() {
|
|
286
|
+
return [
|
|
287
|
+
'# FORMAT',
|
|
288
|
+
'',
|
|
289
|
+
'Defines the specific output structure and formatting for responses (data formats, templates, structure).',
|
|
290
|
+
'',
|
|
291
|
+
'Effects on system message:',
|
|
292
|
+
'- Appends an "Output Format: ..." line to the system message.',
|
|
293
|
+
'',
|
|
294
|
+
'Examples:',
|
|
295
|
+
'```book',
|
|
296
|
+
"FORMAT Always respond in JSON format with 'status' and 'data' fields",
|
|
297
|
+
'FORMAT Use markdown formatting for all code blocks',
|
|
298
|
+
'```',
|
|
299
|
+
'',
|
|
300
|
+
].join('\n');
|
|
301
|
+
}
|
|
250
302
|
applyToAgentModelRequirements(requirements, content) {
|
|
251
303
|
const trimmedContent = content.trim();
|
|
252
304
|
if (!trimmedContent) {
|
|
@@ -999,6 +1051,38 @@ class KnowledgeCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
999
1051
|
super('KNOWLEDGE');
|
|
1000
1052
|
this.ragService = new FrontendRAGService();
|
|
1001
1053
|
}
|
|
1054
|
+
/**
|
|
1055
|
+
* Short one-line description of KNOWLEDGE.
|
|
1056
|
+
*/
|
|
1057
|
+
get description() {
|
|
1058
|
+
return 'Add domain **knowledge** via direct text or external sources (RAG).';
|
|
1059
|
+
}
|
|
1060
|
+
/**
|
|
1061
|
+
* Markdown documentation for KNOWLEDGE commitment.
|
|
1062
|
+
*/
|
|
1063
|
+
get documentation() {
|
|
1064
|
+
return [
|
|
1065
|
+
'# KNOWLEDGE',
|
|
1066
|
+
'',
|
|
1067
|
+
'Adds specific knowledge, facts, or context to the agent using a RAG (Retrieval-Augmented Generation) approach for external sources.',
|
|
1068
|
+
'',
|
|
1069
|
+
'Two modes:',
|
|
1070
|
+
'- Direct text knowledge: Appends a "Knowledge: ..." line to the system message.',
|
|
1071
|
+
'- URL knowledge source: Stores the URL in metadata.knowledgeSources and a ragService for retrieval at chat time, and appends an informational line to the system message.',
|
|
1072
|
+
'',
|
|
1073
|
+
'Metadata effects when URL is used:',
|
|
1074
|
+
'- metadata.ragService = FrontendRAGService instance',
|
|
1075
|
+
'- metadata.knowledgeSources += [url]',
|
|
1076
|
+
'',
|
|
1077
|
+
'Examples:',
|
|
1078
|
+
'```book',
|
|
1079
|
+
'KNOWLEDGE The company was founded in 2020 and specializes in AI-powered solutions',
|
|
1080
|
+
'KNOWLEDGE https://example.com/company-handbook.pdf',
|
|
1081
|
+
'KNOWLEDGE https://example.com/product-documentation.pdf',
|
|
1082
|
+
'```',
|
|
1083
|
+
'',
|
|
1084
|
+
].join('\n');
|
|
1085
|
+
}
|
|
1002
1086
|
applyToAgentModelRequirements(requirements, content) {
|
|
1003
1087
|
var _a;
|
|
1004
1088
|
const trimmedContent = content.trim();
|
|
@@ -1078,6 +1162,35 @@ class MetaImageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
1078
1162
|
constructor() {
|
|
1079
1163
|
super('META IMAGE');
|
|
1080
1164
|
}
|
|
1165
|
+
/**
|
|
1166
|
+
* Short one-line description of META IMAGE.
|
|
1167
|
+
*/
|
|
1168
|
+
get description() {
|
|
1169
|
+
return "Set the agent's profile image URL.";
|
|
1170
|
+
}
|
|
1171
|
+
/**
|
|
1172
|
+
* Markdown documentation for META IMAGE commitment.
|
|
1173
|
+
*/
|
|
1174
|
+
get documentation() {
|
|
1175
|
+
return [
|
|
1176
|
+
'# META IMAGE',
|
|
1177
|
+
'',
|
|
1178
|
+
"Sets the agent's avatar/profile image URL.",
|
|
1179
|
+
'',
|
|
1180
|
+
'Behavior:',
|
|
1181
|
+
'- Does not modify the system message.',
|
|
1182
|
+
'- Handled separately by parsing logic to extract and store a profile image URL.',
|
|
1183
|
+
'',
|
|
1184
|
+
'Examples:',
|
|
1185
|
+
'```book',
|
|
1186
|
+
'META IMAGE https://example.com/avatar.jpg',
|
|
1187
|
+
'META IMAGE /assets/agent-avatar.png',
|
|
1188
|
+
'```',
|
|
1189
|
+
'',
|
|
1190
|
+
]
|
|
1191
|
+
.join('\\n')
|
|
1192
|
+
.replace(/\\\\n/g, '\\n');
|
|
1193
|
+
}
|
|
1081
1194
|
applyToAgentModelRequirements(requirements, content) {
|
|
1082
1195
|
// META IMAGE doesn't modify the system message or model requirements
|
|
1083
1196
|
// It's handled separately in the parsing logic for profile image extraction
|
|
@@ -1131,6 +1244,37 @@ class MetaLinkCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
1131
1244
|
constructor() {
|
|
1132
1245
|
super('META LINK');
|
|
1133
1246
|
}
|
|
1247
|
+
/**
|
|
1248
|
+
* Short one-line description of META LINK.
|
|
1249
|
+
*/
|
|
1250
|
+
get description() {
|
|
1251
|
+
return 'Provide profile/source links for the person the agent models.';
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* Markdown documentation for META LINK commitment.
|
|
1255
|
+
*/
|
|
1256
|
+
get documentation() {
|
|
1257
|
+
return [
|
|
1258
|
+
'# META LINK',
|
|
1259
|
+
'',
|
|
1260
|
+
'Represents a profile or source link for the person the agent is modeled after.',
|
|
1261
|
+
'',
|
|
1262
|
+
'Behavior:',
|
|
1263
|
+
'- Does not modify the system message.',
|
|
1264
|
+
'- Parsing logic extracts and stores the link for profile display.',
|
|
1265
|
+
'- Multiple META LINK lines are allowed when there are multiple sources.',
|
|
1266
|
+
'',
|
|
1267
|
+
'Examples:',
|
|
1268
|
+
'```book',
|
|
1269
|
+
'META LINK https://twitter.com/username',
|
|
1270
|
+
'META LINK https://linkedin.com/in/profile',
|
|
1271
|
+
'META LINK https://github.com/username',
|
|
1272
|
+
'```',
|
|
1273
|
+
'',
|
|
1274
|
+
]
|
|
1275
|
+
.join('\\n')
|
|
1276
|
+
.replace(/\\\\n/g, '\\n');
|
|
1277
|
+
}
|
|
1134
1278
|
applyToAgentModelRequirements(requirements, content) {
|
|
1135
1279
|
// META LINK doesn't modify the system message or model requirements
|
|
1136
1280
|
// It's handled separately in the parsing logic for profile link extraction
|
|
@@ -1188,6 +1332,39 @@ class ModelCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
1188
1332
|
constructor() {
|
|
1189
1333
|
super('MODEL');
|
|
1190
1334
|
}
|
|
1335
|
+
/**
|
|
1336
|
+
* Short one-line description of MODEL.
|
|
1337
|
+
*/
|
|
1338
|
+
get description() {
|
|
1339
|
+
return 'Select the AI model and optional decoding parameters.';
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* Markdown documentation for MODEL commitment.
|
|
1343
|
+
*/
|
|
1344
|
+
get documentation() {
|
|
1345
|
+
return [
|
|
1346
|
+
'# MODEL',
|
|
1347
|
+
'',
|
|
1348
|
+
'Specifies which AI model to use and optional decoding parameters.',
|
|
1349
|
+
'',
|
|
1350
|
+
'Supported parameters:',
|
|
1351
|
+
'- temperature: number',
|
|
1352
|
+
'- topP (aka top_p): number',
|
|
1353
|
+
'- topK (aka top_k): integer',
|
|
1354
|
+
'',
|
|
1355
|
+
'Effects on requirements:',
|
|
1356
|
+
'- Sets modelName from the first token.',
|
|
1357
|
+
'- Parses optional parameters and assigns them to requirements (temperature, topP, topK).',
|
|
1358
|
+
'',
|
|
1359
|
+
'Examples:',
|
|
1360
|
+
'```book',
|
|
1361
|
+
'MODEL gpt-4',
|
|
1362
|
+
'MODEL claude-3-opus temperature=0.3',
|
|
1363
|
+
'MODEL gpt-3.5-turbo temperature=0.8 topP=0.9',
|
|
1364
|
+
'```',
|
|
1365
|
+
'',
|
|
1366
|
+
].join('\n');
|
|
1367
|
+
}
|
|
1191
1368
|
applyToAgentModelRequirements(requirements, content) {
|
|
1192
1369
|
const trimmedContent = content.trim();
|
|
1193
1370
|
if (!trimmedContent) {
|
|
@@ -1273,6 +1450,35 @@ class NoteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
1273
1450
|
constructor() {
|
|
1274
1451
|
super('NOTE');
|
|
1275
1452
|
}
|
|
1453
|
+
/**
|
|
1454
|
+
* Short one-line description of NOTE.
|
|
1455
|
+
*/
|
|
1456
|
+
get description() {
|
|
1457
|
+
return 'Add developer-facing notes without changing behavior or output.';
|
|
1458
|
+
}
|
|
1459
|
+
/**
|
|
1460
|
+
* Markdown documentation for NOTE commitment.
|
|
1461
|
+
*/
|
|
1462
|
+
get documentation() {
|
|
1463
|
+
return [
|
|
1464
|
+
'# NOTE',
|
|
1465
|
+
'',
|
|
1466
|
+
'Adds comments for documentation without changing system message or model requirements.',
|
|
1467
|
+
'',
|
|
1468
|
+
'Key behaviors:',
|
|
1469
|
+
'- Makes no changes to the system message.',
|
|
1470
|
+
'- Makes no changes to requirements.',
|
|
1471
|
+
'- Aggregates multiple NOTE lines into metadata.NOTE.',
|
|
1472
|
+
'',
|
|
1473
|
+
'Examples:',
|
|
1474
|
+
'```book',
|
|
1475
|
+
'NOTE This agent was designed for customer support scenarios',
|
|
1476
|
+
'NOTE Remember to update the knowledge base monthly',
|
|
1477
|
+
'NOTE Performance optimized for quick response times',
|
|
1478
|
+
'```',
|
|
1479
|
+
'',
|
|
1480
|
+
].join('\n');
|
|
1481
|
+
}
|
|
1276
1482
|
applyToAgentModelRequirements(requirements, content) {
|
|
1277
1483
|
var _a;
|
|
1278
1484
|
// The NOTE commitment makes no changes to the system message or model requirements
|
|
@@ -1335,6 +1541,43 @@ class PersonaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
1335
1541
|
constructor() {
|
|
1336
1542
|
super('PERSONA');
|
|
1337
1543
|
}
|
|
1544
|
+
/**
|
|
1545
|
+
* Short one-line description of PERSONA.
|
|
1546
|
+
*/
|
|
1547
|
+
get description() {
|
|
1548
|
+
return 'Define who the agent is: background, expertise, and personality.';
|
|
1549
|
+
}
|
|
1550
|
+
/**
|
|
1551
|
+
* Markdown documentation for PERSONA commitment.
|
|
1552
|
+
*/
|
|
1553
|
+
get documentation() {
|
|
1554
|
+
return [
|
|
1555
|
+
'# PERSONA',
|
|
1556
|
+
'',
|
|
1557
|
+
'Defines who the agent is, their background, expertise, and personality traits.',
|
|
1558
|
+
'',
|
|
1559
|
+
'Key behaviors:',
|
|
1560
|
+
'- Multiple PERSONA commitments are merged together.',
|
|
1561
|
+
'- The merged content is placed at the beginning of the system message.',
|
|
1562
|
+
'- Original PERSONA lines are preserved in metadata.PERSONA.',
|
|
1563
|
+
'- Comment lines (# PERSONA) are removed from the final system message.',
|
|
1564
|
+
'',
|
|
1565
|
+
'Effects on system message:',
|
|
1566
|
+
'- Creates a section:',
|
|
1567
|
+
' ```',
|
|
1568
|
+
' # PERSONA',
|
|
1569
|
+
' You are {agentName}',
|
|
1570
|
+
' {merged persona content}',
|
|
1571
|
+
' ```',
|
|
1572
|
+
'',
|
|
1573
|
+
'Examples:',
|
|
1574
|
+
'```book',
|
|
1575
|
+
'PERSONA You are a helpful programming assistant with expertise in TypeScript and React',
|
|
1576
|
+
'PERSONA You have deep knowledge of modern web development practices',
|
|
1577
|
+
'```',
|
|
1578
|
+
'',
|
|
1579
|
+
].join('\n');
|
|
1580
|
+
}
|
|
1338
1581
|
applyToAgentModelRequirements(requirements, content) {
|
|
1339
1582
|
var _a, _b;
|
|
1340
1583
|
// The PERSONA commitment aggregates all persona content and places it at the beginning
|
|
@@ -1435,6 +1678,32 @@ class RuleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
1435
1678
|
constructor(type = 'RULE') {
|
|
1436
1679
|
super(type);
|
|
1437
1680
|
}
|
|
1681
|
+
/**
|
|
1682
|
+
* Short one-line description of RULE/RULES.
|
|
1683
|
+
*/
|
|
1684
|
+
get description() {
|
|
1685
|
+
return 'Add behavioral rules the agent must follow.';
|
|
1686
|
+
}
|
|
1687
|
+
/**
|
|
1688
|
+
* Markdown documentation for RULE/RULES commitment.
|
|
1689
|
+
*/
|
|
1690
|
+
get documentation() {
|
|
1691
|
+
return [
|
|
1692
|
+
`# ${this.type}`,
|
|
1693
|
+
'',
|
|
1694
|
+
'Adds behavioral constraints and guidelines that the agent must follow.',
|
|
1695
|
+
'',
|
|
1696
|
+
'Effects on system message:',
|
|
1697
|
+
'- Appends a "Rule: ..." line to the system message.',
|
|
1698
|
+
'',
|
|
1699
|
+
'Examples:',
|
|
1700
|
+
'```book',
|
|
1701
|
+
"RULE Always ask for clarification if the user's request is ambiguous",
|
|
1702
|
+
'RULES Never provide medical advice, always refer to healthcare professionals',
|
|
1703
|
+
'```',
|
|
1704
|
+
'',
|
|
1705
|
+
].join('\n');
|
|
1706
|
+
}
|
|
1438
1707
|
applyToAgentModelRequirements(requirements, content) {
|
|
1439
1708
|
const trimmedContent = content.trim();
|
|
1440
1709
|
if (!trimmedContent) {
|
|
@@ -1480,6 +1749,34 @@ class SampleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
1480
1749
|
constructor(type = 'SAMPLE') {
|
|
1481
1750
|
super(type);
|
|
1482
1751
|
}
|
|
1752
|
+
/**
|
|
1753
|
+
* Short one-line description of SAMPLE/EXAMPLE.
|
|
1754
|
+
*/
|
|
1755
|
+
get description() {
|
|
1756
|
+
return 'Provide example responses to guide behavior.';
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* Markdown documentation for SAMPLE/EXAMPLE commitment.
|
|
1760
|
+
*/
|
|
1761
|
+
get documentation() {
|
|
1762
|
+
return [
|
|
1763
|
+
`# ${this.type}`,
|
|
1764
|
+
'',
|
|
1765
|
+
'Provides examples of how the agent should respond or behave in certain situations.',
|
|
1766
|
+
'',
|
|
1767
|
+
'Effects on system message:',
|
|
1768
|
+
'- Appends an "Example: ..." line to the system message.',
|
|
1769
|
+
'',
|
|
1770
|
+
'Examples:',
|
|
1771
|
+
'```book',
|
|
1772
|
+
'SAMPLE When asked about pricing, respond: "Our basic plan starts at $10/month..."',
|
|
1773
|
+
'EXAMPLE For code questions, always include working code snippets',
|
|
1774
|
+
'```',
|
|
1775
|
+
'',
|
|
1776
|
+
]
|
|
1777
|
+
.join('\\n')
|
|
1778
|
+
.replace(/\\\\n/g, '\\n');
|
|
1779
|
+
}
|
|
1483
1780
|
applyToAgentModelRequirements(requirements, content) {
|
|
1484
1781
|
const trimmedContent = content.trim();
|
|
1485
1782
|
if (!trimmedContent) {
|
|
@@ -1525,6 +1822,32 @@ class StyleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
1525
1822
|
constructor() {
|
|
1526
1823
|
super('STYLE');
|
|
1527
1824
|
}
|
|
1825
|
+
/**
|
|
1826
|
+
* Short one-line description of STYLE.
|
|
1827
|
+
*/
|
|
1828
|
+
get description() {
|
|
1829
|
+
return 'Control the tone and writing style of responses.';
|
|
1830
|
+
}
|
|
1831
|
+
/**
|
|
1832
|
+
* Markdown documentation for STYLE commitment.
|
|
1833
|
+
*/
|
|
1834
|
+
get documentation() {
|
|
1835
|
+
return [
|
|
1836
|
+
'# STYLE',
|
|
1837
|
+
'',
|
|
1838
|
+
'Defines how the agent should format and present its responses (tone, writing style, formatting).',
|
|
1839
|
+
'',
|
|
1840
|
+
'Effects on system message:',
|
|
1841
|
+
'- Appends a "Style: ..." line to the system message.',
|
|
1842
|
+
'',
|
|
1843
|
+
'Examples:',
|
|
1844
|
+
'```book',
|
|
1845
|
+
'STYLE Write in a professional but friendly tone, use bullet points for lists',
|
|
1846
|
+
'STYLE Always provide code examples when explaining programming concepts',
|
|
1847
|
+
'```',
|
|
1848
|
+
'',
|
|
1849
|
+
].join('\n');
|
|
1850
|
+
}
|
|
1528
1851
|
applyToAgentModelRequirements(requirements, content) {
|
|
1529
1852
|
const trimmedContent = content.trim();
|
|
1530
1853
|
if (!trimmedContent) {
|
|
@@ -1557,6 +1880,32 @@ class NotYetImplementedCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
1557
1880
|
constructor(type) {
|
|
1558
1881
|
super(type);
|
|
1559
1882
|
}
|
|
1883
|
+
/**
|
|
1884
|
+
* Short one-line description of a placeholder commitment.
|
|
1885
|
+
*/
|
|
1886
|
+
get description() {
|
|
1887
|
+
return 'Placeholder commitment that appends content verbatim to the system message.';
|
|
1888
|
+
}
|
|
1889
|
+
/**
|
|
1890
|
+
* Markdown documentation available at runtime.
|
|
1891
|
+
*/
|
|
1892
|
+
get documentation() {
|
|
1893
|
+
return [
|
|
1894
|
+
`# ${this.type}`,
|
|
1895
|
+
``,
|
|
1896
|
+
`This commitment is not yet fully implemented.`,
|
|
1897
|
+
`Until it is, its content is appended 1:1 to the system message, preserving current behavior.`,
|
|
1898
|
+
``,
|
|
1899
|
+
`- Status: Placeholder`,
|
|
1900
|
+
`- Effect: Appends a line to the system message prefixed by the commitment type`,
|
|
1901
|
+
``,
|
|
1902
|
+
`Example:`,
|
|
1903
|
+
`\`\`\`book`,
|
|
1904
|
+
`${this.type} Your content here`,
|
|
1905
|
+
`\`\`\``,
|
|
1906
|
+
``,
|
|
1907
|
+
].join('\n');
|
|
1908
|
+
}
|
|
1560
1909
|
applyToAgentModelRequirements(requirements, content) {
|
|
1561
1910
|
const trimmedContent = content.trim();
|
|
1562
1911
|
if (!trimmedContent) {
|