@promptbook/components 0.103.0-53 â 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 +127 -1
- package/esm/index.es.js.map +1 -1
- 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 +4 -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 +4 -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/version.d.ts +1 -1
- package/package.json +3 -3
- package/umd/index.umd.js +127 -1
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -35,7 +35,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
35
35
|
* @generated
|
|
36
36
|
* @see https://github.com/webgptorg/promptbook
|
|
37
37
|
*/
|
|
38
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
38
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-54';
|
|
39
39
|
/**
|
|
40
40
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
41
41
|
* Note: [đ] Ignore a discrepancy between file name and entity name
|
|
@@ -3722,6 +3722,12 @@ class ActionCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3722
3722
|
get description() {
|
|
3723
3723
|
return 'Define agent capabilities and actions it can perform.';
|
|
3724
3724
|
}
|
|
3725
|
+
/**
|
|
3726
|
+
* Icon for this commitment.
|
|
3727
|
+
*/
|
|
3728
|
+
get icon() {
|
|
3729
|
+
return 'âĄ';
|
|
3730
|
+
}
|
|
3725
3731
|
/**
|
|
3726
3732
|
* Markdown documentation for ACTION commitment.
|
|
3727
3733
|
*/
|
|
@@ -3801,6 +3807,12 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3801
3807
|
get description() {
|
|
3802
3808
|
return 'Remove or **disregard** certain information, context, or previous commitments.';
|
|
3803
3809
|
}
|
|
3810
|
+
/**
|
|
3811
|
+
* Icon for this commitment.
|
|
3812
|
+
*/
|
|
3813
|
+
get icon() {
|
|
3814
|
+
return 'đī¸';
|
|
3815
|
+
}
|
|
3804
3816
|
/**
|
|
3805
3817
|
* Markdown documentation for DELETE commitment.
|
|
3806
3818
|
*/
|
|
@@ -3917,6 +3929,12 @@ class FormatCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3917
3929
|
get description() {
|
|
3918
3930
|
return 'Specify output structure or formatting requirements.';
|
|
3919
3931
|
}
|
|
3932
|
+
/**
|
|
3933
|
+
* Icon for this commitment.
|
|
3934
|
+
*/
|
|
3935
|
+
get icon() {
|
|
3936
|
+
return 'đ';
|
|
3937
|
+
}
|
|
3920
3938
|
/**
|
|
3921
3939
|
* Markdown documentation for FORMAT commitment.
|
|
3922
3940
|
*/
|
|
@@ -3992,6 +4010,12 @@ class GoalCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3992
4010
|
get description() {
|
|
3993
4011
|
return 'Define main **goals** the AI assistant should achieve, with later goals having higher priority.';
|
|
3994
4012
|
}
|
|
4013
|
+
/**
|
|
4014
|
+
* Icon for this commitment.
|
|
4015
|
+
*/
|
|
4016
|
+
get icon() {
|
|
4017
|
+
return 'đ¯';
|
|
4018
|
+
}
|
|
3995
4019
|
/**
|
|
3996
4020
|
* Markdown documentation for GOAL commitment.
|
|
3997
4021
|
*/
|
|
@@ -4088,6 +4112,12 @@ class KnowledgeCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4088
4112
|
get description() {
|
|
4089
4113
|
return 'Add domain **knowledge** via direct text or external sources (RAG).';
|
|
4090
4114
|
}
|
|
4115
|
+
/**
|
|
4116
|
+
* Icon for this commitment.
|
|
4117
|
+
*/
|
|
4118
|
+
get icon() {
|
|
4119
|
+
return 'đ§ ';
|
|
4120
|
+
}
|
|
4091
4121
|
/**
|
|
4092
4122
|
* Markdown documentation for KNOWLEDGE commitment.
|
|
4093
4123
|
*/
|
|
@@ -4189,6 +4219,12 @@ class MemoryCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4189
4219
|
get description() {
|
|
4190
4220
|
return 'Remember past interactions and user **preferences** for personalized responses.';
|
|
4191
4221
|
}
|
|
4222
|
+
/**
|
|
4223
|
+
* Icon for this commitment.
|
|
4224
|
+
*/
|
|
4225
|
+
get icon() {
|
|
4226
|
+
return 'đ§ ';
|
|
4227
|
+
}
|
|
4192
4228
|
/**
|
|
4193
4229
|
* Markdown documentation for MEMORY commitment.
|
|
4194
4230
|
*/
|
|
@@ -4304,6 +4340,12 @@ class AgentMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4304
4340
|
get description() {
|
|
4305
4341
|
return 'Defines a **message from the agent** in the conversation history.';
|
|
4306
4342
|
}
|
|
4343
|
+
/**
|
|
4344
|
+
* Icon for this commitment.
|
|
4345
|
+
*/
|
|
4346
|
+
get icon() {
|
|
4347
|
+
return 'đ¤';
|
|
4348
|
+
}
|
|
4307
4349
|
/**
|
|
4308
4350
|
* Markdown documentation for AGENT MESSAGE commitment.
|
|
4309
4351
|
*/
|
|
@@ -4375,6 +4417,12 @@ class InitialMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4375
4417
|
get description() {
|
|
4376
4418
|
return 'Defines the **initial message** shown to the user when the chat starts.';
|
|
4377
4419
|
}
|
|
4420
|
+
/**
|
|
4421
|
+
* Icon for this commitment.
|
|
4422
|
+
*/
|
|
4423
|
+
get icon() {
|
|
4424
|
+
return 'đ';
|
|
4425
|
+
}
|
|
4378
4426
|
/**
|
|
4379
4427
|
* Markdown documentation for INITIAL MESSAGE commitment.
|
|
4380
4428
|
*/
|
|
@@ -4433,6 +4481,12 @@ class MessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4433
4481
|
get description() {
|
|
4434
4482
|
return 'Include actual **messages** the AI assistant has sent during conversation history.';
|
|
4435
4483
|
}
|
|
4484
|
+
/**
|
|
4485
|
+
* Icon for this commitment.
|
|
4486
|
+
*/
|
|
4487
|
+
get icon() {
|
|
4488
|
+
return 'đŦ';
|
|
4489
|
+
}
|
|
4436
4490
|
/**
|
|
4437
4491
|
* Markdown documentation for MESSAGE commitment.
|
|
4438
4492
|
*/
|
|
@@ -4539,6 +4593,12 @@ class UserMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4539
4593
|
get description() {
|
|
4540
4594
|
return 'Defines a **message from the user** in the conversation history.';
|
|
4541
4595
|
}
|
|
4596
|
+
/**
|
|
4597
|
+
* Icon for this commitment.
|
|
4598
|
+
*/
|
|
4599
|
+
get icon() {
|
|
4600
|
+
return 'đ§';
|
|
4601
|
+
}
|
|
4542
4602
|
/**
|
|
4543
4603
|
* Markdown documentation for USER MESSAGE commitment.
|
|
4544
4604
|
*/
|
|
@@ -4612,6 +4672,12 @@ class MetaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4612
4672
|
get description() {
|
|
4613
4673
|
return 'Set meta-information about the agent (IMAGE, LINK, TITLE, DESCRIPTION, etc.).';
|
|
4614
4674
|
}
|
|
4675
|
+
/**
|
|
4676
|
+
* Icon for this commitment.
|
|
4677
|
+
*/
|
|
4678
|
+
get icon() {
|
|
4679
|
+
return 'âšī¸';
|
|
4680
|
+
}
|
|
4615
4681
|
/**
|
|
4616
4682
|
* Markdown documentation for META commitment.
|
|
4617
4683
|
*/
|
|
@@ -4739,6 +4805,12 @@ class MetaColorCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4739
4805
|
get description() {
|
|
4740
4806
|
return "Set the agent's accent color.";
|
|
4741
4807
|
}
|
|
4808
|
+
/**
|
|
4809
|
+
* Icon for this commitment.
|
|
4810
|
+
*/
|
|
4811
|
+
get icon() {
|
|
4812
|
+
return 'đ¨';
|
|
4813
|
+
}
|
|
4742
4814
|
/**
|
|
4743
4815
|
* Markdown documentation for META COLOR commitment.
|
|
4744
4816
|
*/
|
|
@@ -4817,6 +4889,12 @@ class MetaImageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4817
4889
|
get description() {
|
|
4818
4890
|
return "Set the agent's profile image URL.";
|
|
4819
4891
|
}
|
|
4892
|
+
/**
|
|
4893
|
+
* Icon for this commitment.
|
|
4894
|
+
*/
|
|
4895
|
+
get icon() {
|
|
4896
|
+
return 'đŧī¸';
|
|
4897
|
+
}
|
|
4820
4898
|
/**
|
|
4821
4899
|
* Markdown documentation for META IMAGE commitment.
|
|
4822
4900
|
*/
|
|
@@ -4907,6 +4985,12 @@ class ModelCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4907
4985
|
get description() {
|
|
4908
4986
|
return 'Enforce AI model requirements including name and technical parameters.';
|
|
4909
4987
|
}
|
|
4988
|
+
/**
|
|
4989
|
+
* Icon for this commitment.
|
|
4990
|
+
*/
|
|
4991
|
+
get icon() {
|
|
4992
|
+
return 'âī¸';
|
|
4993
|
+
}
|
|
4910
4994
|
/**
|
|
4911
4995
|
* Markdown documentation for MODEL commitment.
|
|
4912
4996
|
*/
|
|
@@ -5142,6 +5226,12 @@ class NoteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
5142
5226
|
get description() {
|
|
5143
5227
|
return 'Add developer-facing notes without changing behavior or output.';
|
|
5144
5228
|
}
|
|
5229
|
+
/**
|
|
5230
|
+
* Icon for this commitment.
|
|
5231
|
+
*/
|
|
5232
|
+
get icon() {
|
|
5233
|
+
return 'đ';
|
|
5234
|
+
}
|
|
5145
5235
|
/**
|
|
5146
5236
|
* Markdown documentation for NOTE commitment.
|
|
5147
5237
|
*/
|
|
@@ -5244,6 +5334,12 @@ class PersonaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
5244
5334
|
get description() {
|
|
5245
5335
|
return 'Define who the agent is: background, expertise, and personality.';
|
|
5246
5336
|
}
|
|
5337
|
+
/**
|
|
5338
|
+
* Icon for this commitment.
|
|
5339
|
+
*/
|
|
5340
|
+
get icon() {
|
|
5341
|
+
return 'đ¤';
|
|
5342
|
+
}
|
|
5247
5343
|
/**
|
|
5248
5344
|
* Markdown documentation for PERSONA commitment.
|
|
5249
5345
|
*/
|
|
@@ -5371,6 +5467,12 @@ class RuleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
5371
5467
|
get description() {
|
|
5372
5468
|
return 'Add behavioral rules the agent must follow.';
|
|
5373
5469
|
}
|
|
5470
|
+
/**
|
|
5471
|
+
* Icon for this commitment.
|
|
5472
|
+
*/
|
|
5473
|
+
get icon() {
|
|
5474
|
+
return 'âī¸';
|
|
5475
|
+
}
|
|
5374
5476
|
/**
|
|
5375
5477
|
* Markdown documentation for RULE/RULES commitment.
|
|
5376
5478
|
*/
|
|
@@ -5447,6 +5549,12 @@ class SampleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
5447
5549
|
get description() {
|
|
5448
5550
|
return 'Provide example responses to guide behavior.';
|
|
5449
5551
|
}
|
|
5552
|
+
/**
|
|
5553
|
+
* Icon for this commitment.
|
|
5554
|
+
*/
|
|
5555
|
+
get icon() {
|
|
5556
|
+
return 'đ';
|
|
5557
|
+
}
|
|
5450
5558
|
/**
|
|
5451
5559
|
* Markdown documentation for SAMPLE/EXAMPLE commitment.
|
|
5452
5560
|
*/
|
|
@@ -5524,6 +5632,12 @@ class ScenarioCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
5524
5632
|
get description() {
|
|
5525
5633
|
return 'Define specific **situations** or contexts for AI responses, with later scenarios having higher priority.';
|
|
5526
5634
|
}
|
|
5635
|
+
/**
|
|
5636
|
+
* Icon for this commitment.
|
|
5637
|
+
*/
|
|
5638
|
+
get icon() {
|
|
5639
|
+
return 'đ';
|
|
5640
|
+
}
|
|
5527
5641
|
/**
|
|
5528
5642
|
* Markdown documentation for SCENARIO commitment.
|
|
5529
5643
|
*/
|
|
@@ -5640,6 +5754,12 @@ class StyleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
5640
5754
|
get description() {
|
|
5641
5755
|
return 'Control the tone and writing style of responses.';
|
|
5642
5756
|
}
|
|
5757
|
+
/**
|
|
5758
|
+
* Icon for this commitment.
|
|
5759
|
+
*/
|
|
5760
|
+
get icon() {
|
|
5761
|
+
return 'đī¸';
|
|
5762
|
+
}
|
|
5643
5763
|
/**
|
|
5644
5764
|
* Markdown documentation for STYLE commitment.
|
|
5645
5765
|
*/
|
|
@@ -5709,6 +5829,12 @@ class NotYetImplementedCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
5709
5829
|
get description() {
|
|
5710
5830
|
return 'Placeholder commitment that appends content verbatim to the system message.';
|
|
5711
5831
|
}
|
|
5832
|
+
/**
|
|
5833
|
+
* Icon for this commitment.
|
|
5834
|
+
*/
|
|
5835
|
+
get icon() {
|
|
5836
|
+
return 'đ§';
|
|
5837
|
+
}
|
|
5712
5838
|
/**
|
|
5713
5839
|
* Markdown documentation available at runtime.
|
|
5714
5840
|
*/
|