@promptbook/wizard 0.103.0-52 â 0.103.0-54
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 +279 -2
- package/esm/index.es.js.map +1 -1
- package/esm/typings/servers.d.ts +8 -1
- package/esm/typings/src/_packages/components.index.d.ts +2 -0
- package/esm/typings/src/_packages/core.index.d.ts +6 -0
- package/esm/typings/src/_packages/types.index.d.ts +2 -0
- package/esm/typings/src/_packages/utils.index.d.ts +2 -0
- package/esm/typings/src/book-2.0/agent-source/AgentModelRequirements.d.ts +7 -0
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +4 -0
- package/esm/typings/src/book-components/_common/HamburgerMenu/HamburgerMenu.d.ts +12 -0
- package/esm/typings/src/book-components/icons/MicIcon.d.ts +8 -0
- package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +17 -0
- package/esm/typings/src/commitments/ACTION/ACTION.d.ts +4 -0
- package/esm/typings/src/commitments/DELETE/DELETE.d.ts +4 -0
- package/esm/typings/src/commitments/FORMAT/FORMAT.d.ts +4 -0
- package/esm/typings/src/commitments/GOAL/GOAL.d.ts +4 -0
- package/esm/typings/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +4 -0
- package/esm/typings/src/commitments/MEMORY/MEMORY.d.ts +4 -0
- package/esm/typings/src/commitments/MESSAGE/AgentMessageCommitmentDefinition.d.ts +32 -0
- package/esm/typings/src/commitments/MESSAGE/InitialMessageCommitmentDefinition.d.ts +4 -0
- package/esm/typings/src/commitments/MESSAGE/MESSAGE.d.ts +4 -0
- package/esm/typings/src/commitments/MESSAGE/UserMessageCommitmentDefinition.d.ts +32 -0
- package/esm/typings/src/commitments/META/META.d.ts +4 -0
- package/esm/typings/src/commitments/META_COLOR/META_COLOR.d.ts +4 -0
- package/esm/typings/src/commitments/META_IMAGE/META_IMAGE.d.ts +4 -0
- package/esm/typings/src/commitments/META_LINK/META_LINK.d.ts +4 -0
- package/esm/typings/src/commitments/MODEL/MODEL.d.ts +4 -0
- package/esm/typings/src/commitments/NOTE/NOTE.d.ts +4 -0
- package/esm/typings/src/commitments/PERSONA/PERSONA.d.ts +4 -0
- package/esm/typings/src/commitments/RULE/RULE.d.ts +4 -0
- package/esm/typings/src/commitments/SAMPLE/SAMPLE.d.ts +4 -0
- package/esm/typings/src/commitments/SCENARIO/SCENARIO.d.ts +4 -0
- package/esm/typings/src/commitments/STYLE/STYLE.d.ts +4 -0
- package/esm/typings/src/commitments/_base/BaseCommitmentDefinition.d.ts +5 -0
- package/esm/typings/src/commitments/_base/CommitmentDefinition.d.ts +5 -0
- package/esm/typings/src/commitments/_base/NotYetImplementedCommitmentDefinition.d.ts +4 -0
- package/esm/typings/src/commitments/index.d.ts +20 -1
- package/esm/typings/src/execution/LlmExecutionTools.d.ts +9 -0
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +2 -1
- package/esm/typings/src/llm-providers/agent/RemoteAgent.d.ts +10 -1
- package/esm/typings/src/utils/normalization/normalizeMessageText.d.ts +9 -0
- package/esm/typings/src/utils/normalization/normalizeMessageText.test.d.ts +1 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +3 -3
- package/umd/index.umd.js +279 -2
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -36,12 +36,23 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
36
36
|
* @generated
|
|
37
37
|
* @see https://github.com/webgptorg/promptbook
|
|
38
38
|
*/
|
|
39
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
39
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-54';
|
|
40
40
|
/**
|
|
41
41
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
42
42
|
* Note: [đ] Ignore a discrepancy between file name and entity name
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
|
+
/**
|
|
46
|
+
* Core Promptbook server configuration.
|
|
47
|
+
*
|
|
48
|
+
* This server is also used for auto-federation in the Agents Server.
|
|
49
|
+
*/
|
|
50
|
+
const CORE_SERVER = {
|
|
51
|
+
title: 'Promptbook Core',
|
|
52
|
+
description: `Core Promptbook server used for auto-federation`,
|
|
53
|
+
owner: 'AI Web, LLC <legal@ptbk.io> (https://www.ptbk.io/)',
|
|
54
|
+
urls: ['https://core.ptbk.io/'],
|
|
55
|
+
};
|
|
45
56
|
/**
|
|
46
57
|
* Available remote servers for the Promptbook
|
|
47
58
|
*
|
|
@@ -63,6 +74,7 @@ const REMOTE_SERVER_URLS = [
|
|
|
63
74
|
owner: 'AI Web, LLC <legal@ptbk.io> (https://www.ptbk.io/)',
|
|
64
75
|
urls: ['https://s6.ptbk.io/'],
|
|
65
76
|
},
|
|
77
|
+
CORE_SERVER,
|
|
66
78
|
/*
|
|
67
79
|
Note: Working on older version of Promptbook and not supported anymore
|
|
68
80
|
{
|
|
@@ -75,7 +87,6 @@ const REMOTE_SERVER_URLS = [
|
|
|
75
87
|
*/
|
|
76
88
|
];
|
|
77
89
|
/**
|
|
78
|
-
* TODO: [đąâđ] Auto-federated server from url in here
|
|
79
90
|
* Note: [đ] Ignore a discrepancy between file name and entity name
|
|
80
91
|
*/
|
|
81
92
|
|
|
@@ -7062,12 +7073,15 @@ class OpenAiAssistantExecutionTools extends OpenAiExecutionTools {
|
|
|
7062
7073
|
fileStreams.push(file);
|
|
7063
7074
|
}
|
|
7064
7075
|
else {
|
|
7076
|
+
/*
|
|
7077
|
+
TODO: [đąâđ] Resolve problem with browser environment
|
|
7065
7078
|
// Assume it's a local file path
|
|
7066
7079
|
// Note: This will work in Node.js environment
|
|
7067
7080
|
// For browser environments, this would need different handling
|
|
7068
7081
|
const fs = await import('fs');
|
|
7069
7082
|
const fileStream = fs.createReadStream(source);
|
|
7070
7083
|
fileStreams.push(fileStream);
|
|
7084
|
+
*/
|
|
7071
7085
|
}
|
|
7072
7086
|
}
|
|
7073
7087
|
catch (error) {
|
|
@@ -7156,12 +7170,15 @@ class OpenAiAssistantExecutionTools extends OpenAiExecutionTools {
|
|
|
7156
7170
|
fileStreams.push(file);
|
|
7157
7171
|
}
|
|
7158
7172
|
else {
|
|
7173
|
+
/*
|
|
7174
|
+
TODO: [đąâđ] Resolve problem with browser environment
|
|
7159
7175
|
// Assume it's a local file path
|
|
7160
7176
|
// Note: This will work in Node.js environment
|
|
7161
7177
|
// For browser environments, this would need different handling
|
|
7162
7178
|
const fs = await import('fs');
|
|
7163
7179
|
const fileStream = fs.createReadStream(source);
|
|
7164
7180
|
fileStreams.push(fileStream);
|
|
7181
|
+
*/
|
|
7165
7182
|
}
|
|
7166
7183
|
}
|
|
7167
7184
|
catch (error) {
|
|
@@ -13541,6 +13558,12 @@ class ActionCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
13541
13558
|
get description() {
|
|
13542
13559
|
return 'Define agent capabilities and actions it can perform.';
|
|
13543
13560
|
}
|
|
13561
|
+
/**
|
|
13562
|
+
* Icon for this commitment.
|
|
13563
|
+
*/
|
|
13564
|
+
get icon() {
|
|
13565
|
+
return 'âĄ';
|
|
13566
|
+
}
|
|
13544
13567
|
/**
|
|
13545
13568
|
* Markdown documentation for ACTION commitment.
|
|
13546
13569
|
*/
|
|
@@ -13620,6 +13643,12 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
13620
13643
|
get description() {
|
|
13621
13644
|
return 'Remove or **disregard** certain information, context, or previous commitments.';
|
|
13622
13645
|
}
|
|
13646
|
+
/**
|
|
13647
|
+
* Icon for this commitment.
|
|
13648
|
+
*/
|
|
13649
|
+
get icon() {
|
|
13650
|
+
return 'đī¸';
|
|
13651
|
+
}
|
|
13623
13652
|
/**
|
|
13624
13653
|
* Markdown documentation for DELETE commitment.
|
|
13625
13654
|
*/
|
|
@@ -13736,6 +13765,12 @@ class FormatCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
13736
13765
|
get description() {
|
|
13737
13766
|
return 'Specify output structure or formatting requirements.';
|
|
13738
13767
|
}
|
|
13768
|
+
/**
|
|
13769
|
+
* Icon for this commitment.
|
|
13770
|
+
*/
|
|
13771
|
+
get icon() {
|
|
13772
|
+
return 'đ';
|
|
13773
|
+
}
|
|
13739
13774
|
/**
|
|
13740
13775
|
* Markdown documentation for FORMAT commitment.
|
|
13741
13776
|
*/
|
|
@@ -13811,6 +13846,12 @@ class GoalCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
13811
13846
|
get description() {
|
|
13812
13847
|
return 'Define main **goals** the AI assistant should achieve, with later goals having higher priority.';
|
|
13813
13848
|
}
|
|
13849
|
+
/**
|
|
13850
|
+
* Icon for this commitment.
|
|
13851
|
+
*/
|
|
13852
|
+
get icon() {
|
|
13853
|
+
return 'đ¯';
|
|
13854
|
+
}
|
|
13814
13855
|
/**
|
|
13815
13856
|
* Markdown documentation for GOAL commitment.
|
|
13816
13857
|
*/
|
|
@@ -13907,6 +13948,12 @@ class KnowledgeCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
13907
13948
|
get description() {
|
|
13908
13949
|
return 'Add domain **knowledge** via direct text or external sources (RAG).';
|
|
13909
13950
|
}
|
|
13951
|
+
/**
|
|
13952
|
+
* Icon for this commitment.
|
|
13953
|
+
*/
|
|
13954
|
+
get icon() {
|
|
13955
|
+
return 'đ§ ';
|
|
13956
|
+
}
|
|
13910
13957
|
/**
|
|
13911
13958
|
* Markdown documentation for KNOWLEDGE commitment.
|
|
13912
13959
|
*/
|
|
@@ -14008,6 +14055,12 @@ class MemoryCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14008
14055
|
get description() {
|
|
14009
14056
|
return 'Remember past interactions and user **preferences** for personalized responses.';
|
|
14010
14057
|
}
|
|
14058
|
+
/**
|
|
14059
|
+
* Icon for this commitment.
|
|
14060
|
+
*/
|
|
14061
|
+
get icon() {
|
|
14062
|
+
return 'đ§ ';
|
|
14063
|
+
}
|
|
14011
14064
|
/**
|
|
14012
14065
|
* Markdown documentation for MEMORY commitment.
|
|
14013
14066
|
*/
|
|
@@ -14082,6 +14135,83 @@ class MemoryCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14082
14135
|
* Note: [đ] Ignore a discrepancy between file name and entity name
|
|
14083
14136
|
*/
|
|
14084
14137
|
|
|
14138
|
+
/**
|
|
14139
|
+
* AGENT MESSAGE commitment definition
|
|
14140
|
+
*
|
|
14141
|
+
* The AGENT MESSAGE commitment defines a message from the agent in the conversation history.
|
|
14142
|
+
* It is used to pre-fill the chat with a conversation history or to provide few-shot examples.
|
|
14143
|
+
*
|
|
14144
|
+
* Example usage in agent source:
|
|
14145
|
+
*
|
|
14146
|
+
* ```book
|
|
14147
|
+
* AGENT MESSAGE What seems to be the issue?
|
|
14148
|
+
* ```
|
|
14149
|
+
*
|
|
14150
|
+
* @private [đĒ] Maybe export the commitments through some package
|
|
14151
|
+
*/
|
|
14152
|
+
class AgentMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
14153
|
+
constructor() {
|
|
14154
|
+
super('AGENT MESSAGE');
|
|
14155
|
+
}
|
|
14156
|
+
/**
|
|
14157
|
+
* Short one-line description of AGENT MESSAGE.
|
|
14158
|
+
*/
|
|
14159
|
+
get description() {
|
|
14160
|
+
return 'Defines a **message from the agent** in the conversation history.';
|
|
14161
|
+
}
|
|
14162
|
+
/**
|
|
14163
|
+
* Icon for this commitment.
|
|
14164
|
+
*/
|
|
14165
|
+
get icon() {
|
|
14166
|
+
return 'đ¤';
|
|
14167
|
+
}
|
|
14168
|
+
/**
|
|
14169
|
+
* Markdown documentation for AGENT MESSAGE commitment.
|
|
14170
|
+
*/
|
|
14171
|
+
get documentation() {
|
|
14172
|
+
return spaceTrim$1(`
|
|
14173
|
+
# ${this.type}
|
|
14174
|
+
|
|
14175
|
+
Defines a message from the agent in the conversation history. This is used to pre-fill the chat with a conversation history or to provide few-shot examples.
|
|
14176
|
+
|
|
14177
|
+
## Key aspects
|
|
14178
|
+
|
|
14179
|
+
- Represents a message sent by the agent.
|
|
14180
|
+
- Used for setting up conversation context.
|
|
14181
|
+
- Can be used in conjunction with USER MESSAGE.
|
|
14182
|
+
|
|
14183
|
+
## Examples
|
|
14184
|
+
|
|
14185
|
+
\`\`\`book
|
|
14186
|
+
Conversation History
|
|
14187
|
+
|
|
14188
|
+
USER MESSAGE Hello, I have a problem.
|
|
14189
|
+
AGENT MESSAGE What seems to be the issue?
|
|
14190
|
+
USER MESSAGE My computer is not starting.
|
|
14191
|
+
\`\`\`
|
|
14192
|
+
`);
|
|
14193
|
+
}
|
|
14194
|
+
applyToAgentModelRequirements(requirements, content) {
|
|
14195
|
+
// AGENT MESSAGE is for UI display purposes / conversation history construction
|
|
14196
|
+
// and typically doesn't need to be added to the system prompt or model requirements directly.
|
|
14197
|
+
// It is extracted separately for the chat interface.
|
|
14198
|
+
var _a;
|
|
14199
|
+
const pendingUserMessage = (_a = requirements.metadata) === null || _a === void 0 ? void 0 : _a.pendingUserMessage;
|
|
14200
|
+
if (pendingUserMessage) {
|
|
14201
|
+
const newSample = { question: pendingUserMessage, answer: content };
|
|
14202
|
+
const newSamples = [...(requirements.samples || []), newSample];
|
|
14203
|
+
const newMetadata = { ...requirements.metadata };
|
|
14204
|
+
delete newMetadata.pendingUserMessage;
|
|
14205
|
+
return {
|
|
14206
|
+
...requirements,
|
|
14207
|
+
samples: newSamples,
|
|
14208
|
+
metadata: newMetadata,
|
|
14209
|
+
};
|
|
14210
|
+
}
|
|
14211
|
+
return requirements;
|
|
14212
|
+
}
|
|
14213
|
+
}
|
|
14214
|
+
|
|
14085
14215
|
/**
|
|
14086
14216
|
* INITIAL MESSAGE commitment definition
|
|
14087
14217
|
*
|
|
@@ -14106,6 +14236,12 @@ class InitialMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14106
14236
|
get description() {
|
|
14107
14237
|
return 'Defines the **initial message** shown to the user when the chat starts.';
|
|
14108
14238
|
}
|
|
14239
|
+
/**
|
|
14240
|
+
* Icon for this commitment.
|
|
14241
|
+
*/
|
|
14242
|
+
get icon() {
|
|
14243
|
+
return 'đ';
|
|
14244
|
+
}
|
|
14109
14245
|
/**
|
|
14110
14246
|
* Markdown documentation for INITIAL MESSAGE commitment.
|
|
14111
14247
|
*/
|
|
@@ -14164,6 +14300,12 @@ class MessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14164
14300
|
get description() {
|
|
14165
14301
|
return 'Include actual **messages** the AI assistant has sent during conversation history.';
|
|
14166
14302
|
}
|
|
14303
|
+
/**
|
|
14304
|
+
* Icon for this commitment.
|
|
14305
|
+
*/
|
|
14306
|
+
get icon() {
|
|
14307
|
+
return 'đŦ';
|
|
14308
|
+
}
|
|
14167
14309
|
/**
|
|
14168
14310
|
* Markdown documentation for MESSAGE commitment.
|
|
14169
14311
|
*/
|
|
@@ -14246,6 +14388,73 @@ class MessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14246
14388
|
* Note: [đ] Ignore a discrepancy between file name and entity name
|
|
14247
14389
|
*/
|
|
14248
14390
|
|
|
14391
|
+
/**
|
|
14392
|
+
* USER MESSAGE commitment definition
|
|
14393
|
+
*
|
|
14394
|
+
* The USER MESSAGE commitment defines a message from the user in the conversation history.
|
|
14395
|
+
* It is used to pre-fill the chat with a conversation history or to provide few-shot examples.
|
|
14396
|
+
*
|
|
14397
|
+
* Example usage in agent source:
|
|
14398
|
+
*
|
|
14399
|
+
* ```book
|
|
14400
|
+
* USER MESSAGE Hello, I have a problem.
|
|
14401
|
+
* ```
|
|
14402
|
+
*
|
|
14403
|
+
* @private [đĒ] Maybe export the commitments through some package
|
|
14404
|
+
*/
|
|
14405
|
+
class UserMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
14406
|
+
constructor() {
|
|
14407
|
+
super('USER MESSAGE');
|
|
14408
|
+
}
|
|
14409
|
+
/**
|
|
14410
|
+
* Short one-line description of USER MESSAGE.
|
|
14411
|
+
*/
|
|
14412
|
+
get description() {
|
|
14413
|
+
return 'Defines a **message from the user** in the conversation history.';
|
|
14414
|
+
}
|
|
14415
|
+
/**
|
|
14416
|
+
* Icon for this commitment.
|
|
14417
|
+
*/
|
|
14418
|
+
get icon() {
|
|
14419
|
+
return 'đ§';
|
|
14420
|
+
}
|
|
14421
|
+
/**
|
|
14422
|
+
* Markdown documentation for USER MESSAGE commitment.
|
|
14423
|
+
*/
|
|
14424
|
+
get documentation() {
|
|
14425
|
+
return spaceTrim$1(`
|
|
14426
|
+
# ${this.type}
|
|
14427
|
+
|
|
14428
|
+
Defines a message from the user in the conversation history. This is used to pre-fill the chat with a conversation history or to provide few-shot examples.
|
|
14429
|
+
|
|
14430
|
+
## Key aspects
|
|
14431
|
+
|
|
14432
|
+
- Represents a message sent by the user.
|
|
14433
|
+
- Used for setting up conversation context.
|
|
14434
|
+
- Can be used in conjunction with AGENT MESSAGE.
|
|
14435
|
+
|
|
14436
|
+
## Examples
|
|
14437
|
+
|
|
14438
|
+
\`\`\`book
|
|
14439
|
+
Conversation History
|
|
14440
|
+
|
|
14441
|
+
USER MESSAGE Hello, I have a problem.
|
|
14442
|
+
AGENT MESSAGE What seems to be the issue?
|
|
14443
|
+
USER MESSAGE My computer is not starting.
|
|
14444
|
+
\`\`\`
|
|
14445
|
+
`);
|
|
14446
|
+
}
|
|
14447
|
+
applyToAgentModelRequirements(requirements, content) {
|
|
14448
|
+
return {
|
|
14449
|
+
...requirements,
|
|
14450
|
+
metadata: {
|
|
14451
|
+
...requirements.metadata,
|
|
14452
|
+
pendingUserMessage: content,
|
|
14453
|
+
},
|
|
14454
|
+
};
|
|
14455
|
+
}
|
|
14456
|
+
}
|
|
14457
|
+
|
|
14249
14458
|
/**
|
|
14250
14459
|
* META commitment definition
|
|
14251
14460
|
*
|
|
@@ -14282,6 +14491,12 @@ class MetaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14282
14491
|
get description() {
|
|
14283
14492
|
return 'Set meta-information about the agent (IMAGE, LINK, TITLE, DESCRIPTION, etc.).';
|
|
14284
14493
|
}
|
|
14494
|
+
/**
|
|
14495
|
+
* Icon for this commitment.
|
|
14496
|
+
*/
|
|
14497
|
+
get icon() {
|
|
14498
|
+
return 'âšī¸';
|
|
14499
|
+
}
|
|
14285
14500
|
/**
|
|
14286
14501
|
* Markdown documentation for META commitment.
|
|
14287
14502
|
*/
|
|
@@ -14409,6 +14624,12 @@ class MetaColorCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14409
14624
|
get description() {
|
|
14410
14625
|
return "Set the agent's accent color.";
|
|
14411
14626
|
}
|
|
14627
|
+
/**
|
|
14628
|
+
* Icon for this commitment.
|
|
14629
|
+
*/
|
|
14630
|
+
get icon() {
|
|
14631
|
+
return 'đ¨';
|
|
14632
|
+
}
|
|
14412
14633
|
/**
|
|
14413
14634
|
* Markdown documentation for META COLOR commitment.
|
|
14414
14635
|
*/
|
|
@@ -14487,6 +14708,12 @@ class MetaImageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14487
14708
|
get description() {
|
|
14488
14709
|
return "Set the agent's profile image URL.";
|
|
14489
14710
|
}
|
|
14711
|
+
/**
|
|
14712
|
+
* Icon for this commitment.
|
|
14713
|
+
*/
|
|
14714
|
+
get icon() {
|
|
14715
|
+
return 'đŧī¸';
|
|
14716
|
+
}
|
|
14490
14717
|
/**
|
|
14491
14718
|
* Markdown documentation for META IMAGE commitment.
|
|
14492
14719
|
*/
|
|
@@ -14577,6 +14804,12 @@ class ModelCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14577
14804
|
get description() {
|
|
14578
14805
|
return 'Enforce AI model requirements including name and technical parameters.';
|
|
14579
14806
|
}
|
|
14807
|
+
/**
|
|
14808
|
+
* Icon for this commitment.
|
|
14809
|
+
*/
|
|
14810
|
+
get icon() {
|
|
14811
|
+
return 'âī¸';
|
|
14812
|
+
}
|
|
14580
14813
|
/**
|
|
14581
14814
|
* Markdown documentation for MODEL commitment.
|
|
14582
14815
|
*/
|
|
@@ -14812,6 +15045,12 @@ class NoteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14812
15045
|
get description() {
|
|
14813
15046
|
return 'Add developer-facing notes without changing behavior or output.';
|
|
14814
15047
|
}
|
|
15048
|
+
/**
|
|
15049
|
+
* Icon for this commitment.
|
|
15050
|
+
*/
|
|
15051
|
+
get icon() {
|
|
15052
|
+
return 'đ';
|
|
15053
|
+
}
|
|
14815
15054
|
/**
|
|
14816
15055
|
* Markdown documentation for NOTE commitment.
|
|
14817
15056
|
*/
|
|
@@ -14914,6 +15153,12 @@ class PersonaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
14914
15153
|
get description() {
|
|
14915
15154
|
return 'Define who the agent is: background, expertise, and personality.';
|
|
14916
15155
|
}
|
|
15156
|
+
/**
|
|
15157
|
+
* Icon for this commitment.
|
|
15158
|
+
*/
|
|
15159
|
+
get icon() {
|
|
15160
|
+
return 'đ¤';
|
|
15161
|
+
}
|
|
14917
15162
|
/**
|
|
14918
15163
|
* Markdown documentation for PERSONA commitment.
|
|
14919
15164
|
*/
|
|
@@ -15041,6 +15286,12 @@ class RuleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
15041
15286
|
get description() {
|
|
15042
15287
|
return 'Add behavioral rules the agent must follow.';
|
|
15043
15288
|
}
|
|
15289
|
+
/**
|
|
15290
|
+
* Icon for this commitment.
|
|
15291
|
+
*/
|
|
15292
|
+
get icon() {
|
|
15293
|
+
return 'âī¸';
|
|
15294
|
+
}
|
|
15044
15295
|
/**
|
|
15045
15296
|
* Markdown documentation for RULE/RULES commitment.
|
|
15046
15297
|
*/
|
|
@@ -15117,6 +15368,12 @@ class SampleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
15117
15368
|
get description() {
|
|
15118
15369
|
return 'Provide example responses to guide behavior.';
|
|
15119
15370
|
}
|
|
15371
|
+
/**
|
|
15372
|
+
* Icon for this commitment.
|
|
15373
|
+
*/
|
|
15374
|
+
get icon() {
|
|
15375
|
+
return 'đ';
|
|
15376
|
+
}
|
|
15120
15377
|
/**
|
|
15121
15378
|
* Markdown documentation for SAMPLE/EXAMPLE commitment.
|
|
15122
15379
|
*/
|
|
@@ -15194,6 +15451,12 @@ class ScenarioCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
15194
15451
|
get description() {
|
|
15195
15452
|
return 'Define specific **situations** or contexts for AI responses, with later scenarios having higher priority.';
|
|
15196
15453
|
}
|
|
15454
|
+
/**
|
|
15455
|
+
* Icon for this commitment.
|
|
15456
|
+
*/
|
|
15457
|
+
get icon() {
|
|
15458
|
+
return 'đ';
|
|
15459
|
+
}
|
|
15197
15460
|
/**
|
|
15198
15461
|
* Markdown documentation for SCENARIO commitment.
|
|
15199
15462
|
*/
|
|
@@ -15310,6 +15573,12 @@ class StyleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
15310
15573
|
get description() {
|
|
15311
15574
|
return 'Control the tone and writing style of responses.';
|
|
15312
15575
|
}
|
|
15576
|
+
/**
|
|
15577
|
+
* Icon for this commitment.
|
|
15578
|
+
*/
|
|
15579
|
+
get icon() {
|
|
15580
|
+
return 'đī¸';
|
|
15581
|
+
}
|
|
15313
15582
|
/**
|
|
15314
15583
|
* Markdown documentation for STYLE commitment.
|
|
15315
15584
|
*/
|
|
@@ -15379,6 +15648,12 @@ class NotYetImplementedCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
15379
15648
|
get description() {
|
|
15380
15649
|
return 'Placeholder commitment that appends content verbatim to the system message.';
|
|
15381
15650
|
}
|
|
15651
|
+
/**
|
|
15652
|
+
* Icon for this commitment.
|
|
15653
|
+
*/
|
|
15654
|
+
get icon() {
|
|
15655
|
+
return 'đ§';
|
|
15656
|
+
}
|
|
15382
15657
|
/**
|
|
15383
15658
|
* Markdown documentation available at runtime.
|
|
15384
15659
|
*/
|
|
@@ -15459,6 +15734,8 @@ const COMMITMENT_REGISTRY = [
|
|
|
15459
15734
|
new GoalCommitmentDefinition('GOAL'),
|
|
15460
15735
|
new GoalCommitmentDefinition('GOALS'),
|
|
15461
15736
|
new InitialMessageCommitmentDefinition(),
|
|
15737
|
+
new UserMessageCommitmentDefinition(),
|
|
15738
|
+
new AgentMessageCommitmentDefinition(),
|
|
15462
15739
|
new MessageCommitmentDefinition('MESSAGE'),
|
|
15463
15740
|
new MessageCommitmentDefinition('MESSAGES'),
|
|
15464
15741
|
new ScenarioCommitmentDefinition('SCENARIO'),
|