@promptbook/browser 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 +2 -2
- package/umd/index.umd.js +127 -1
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -19,7 +19,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
19
19
|
* @generated
|
|
20
20
|
* @see https://github.com/webgptorg/promptbook
|
|
21
21
|
*/
|
|
22
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
22
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-54';
|
|
23
23
|
/**
|
|
24
24
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
25
25
|
* Note: [đ] Ignore a discrepancy between file name and entity name
|
|
@@ -2783,6 +2783,12 @@ class ActionCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
2783
2783
|
get description() {
|
|
2784
2784
|
return 'Define agent capabilities and actions it can perform.';
|
|
2785
2785
|
}
|
|
2786
|
+
/**
|
|
2787
|
+
* Icon for this commitment.
|
|
2788
|
+
*/
|
|
2789
|
+
get icon() {
|
|
2790
|
+
return 'âĄ';
|
|
2791
|
+
}
|
|
2786
2792
|
/**
|
|
2787
2793
|
* Markdown documentation for ACTION commitment.
|
|
2788
2794
|
*/
|
|
@@ -2862,6 +2868,12 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
2862
2868
|
get description() {
|
|
2863
2869
|
return 'Remove or **disregard** certain information, context, or previous commitments.';
|
|
2864
2870
|
}
|
|
2871
|
+
/**
|
|
2872
|
+
* Icon for this commitment.
|
|
2873
|
+
*/
|
|
2874
|
+
get icon() {
|
|
2875
|
+
return 'đī¸';
|
|
2876
|
+
}
|
|
2865
2877
|
/**
|
|
2866
2878
|
* Markdown documentation for DELETE commitment.
|
|
2867
2879
|
*/
|
|
@@ -2978,6 +2990,12 @@ class FormatCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
2978
2990
|
get description() {
|
|
2979
2991
|
return 'Specify output structure or formatting requirements.';
|
|
2980
2992
|
}
|
|
2993
|
+
/**
|
|
2994
|
+
* Icon for this commitment.
|
|
2995
|
+
*/
|
|
2996
|
+
get icon() {
|
|
2997
|
+
return 'đ';
|
|
2998
|
+
}
|
|
2981
2999
|
/**
|
|
2982
3000
|
* Markdown documentation for FORMAT commitment.
|
|
2983
3001
|
*/
|
|
@@ -3053,6 +3071,12 @@ class GoalCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3053
3071
|
get description() {
|
|
3054
3072
|
return 'Define main **goals** the AI assistant should achieve, with later goals having higher priority.';
|
|
3055
3073
|
}
|
|
3074
|
+
/**
|
|
3075
|
+
* Icon for this commitment.
|
|
3076
|
+
*/
|
|
3077
|
+
get icon() {
|
|
3078
|
+
return 'đ¯';
|
|
3079
|
+
}
|
|
3056
3080
|
/**
|
|
3057
3081
|
* Markdown documentation for GOAL commitment.
|
|
3058
3082
|
*/
|
|
@@ -3149,6 +3173,12 @@ class KnowledgeCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3149
3173
|
get description() {
|
|
3150
3174
|
return 'Add domain **knowledge** via direct text or external sources (RAG).';
|
|
3151
3175
|
}
|
|
3176
|
+
/**
|
|
3177
|
+
* Icon for this commitment.
|
|
3178
|
+
*/
|
|
3179
|
+
get icon() {
|
|
3180
|
+
return 'đ§ ';
|
|
3181
|
+
}
|
|
3152
3182
|
/**
|
|
3153
3183
|
* Markdown documentation for KNOWLEDGE commitment.
|
|
3154
3184
|
*/
|
|
@@ -3250,6 +3280,12 @@ class MemoryCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3250
3280
|
get description() {
|
|
3251
3281
|
return 'Remember past interactions and user **preferences** for personalized responses.';
|
|
3252
3282
|
}
|
|
3283
|
+
/**
|
|
3284
|
+
* Icon for this commitment.
|
|
3285
|
+
*/
|
|
3286
|
+
get icon() {
|
|
3287
|
+
return 'đ§ ';
|
|
3288
|
+
}
|
|
3253
3289
|
/**
|
|
3254
3290
|
* Markdown documentation for MEMORY commitment.
|
|
3255
3291
|
*/
|
|
@@ -3348,6 +3384,12 @@ class AgentMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3348
3384
|
get description() {
|
|
3349
3385
|
return 'Defines a **message from the agent** in the conversation history.';
|
|
3350
3386
|
}
|
|
3387
|
+
/**
|
|
3388
|
+
* Icon for this commitment.
|
|
3389
|
+
*/
|
|
3390
|
+
get icon() {
|
|
3391
|
+
return 'đ¤';
|
|
3392
|
+
}
|
|
3351
3393
|
/**
|
|
3352
3394
|
* Markdown documentation for AGENT MESSAGE commitment.
|
|
3353
3395
|
*/
|
|
@@ -3419,6 +3461,12 @@ class InitialMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3419
3461
|
get description() {
|
|
3420
3462
|
return 'Defines the **initial message** shown to the user when the chat starts.';
|
|
3421
3463
|
}
|
|
3464
|
+
/**
|
|
3465
|
+
* Icon for this commitment.
|
|
3466
|
+
*/
|
|
3467
|
+
get icon() {
|
|
3468
|
+
return 'đ';
|
|
3469
|
+
}
|
|
3422
3470
|
/**
|
|
3423
3471
|
* Markdown documentation for INITIAL MESSAGE commitment.
|
|
3424
3472
|
*/
|
|
@@ -3477,6 +3525,12 @@ class MessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3477
3525
|
get description() {
|
|
3478
3526
|
return 'Include actual **messages** the AI assistant has sent during conversation history.';
|
|
3479
3527
|
}
|
|
3528
|
+
/**
|
|
3529
|
+
* Icon for this commitment.
|
|
3530
|
+
*/
|
|
3531
|
+
get icon() {
|
|
3532
|
+
return 'đŦ';
|
|
3533
|
+
}
|
|
3480
3534
|
/**
|
|
3481
3535
|
* Markdown documentation for MESSAGE commitment.
|
|
3482
3536
|
*/
|
|
@@ -3583,6 +3637,12 @@ class UserMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3583
3637
|
get description() {
|
|
3584
3638
|
return 'Defines a **message from the user** in the conversation history.';
|
|
3585
3639
|
}
|
|
3640
|
+
/**
|
|
3641
|
+
* Icon for this commitment.
|
|
3642
|
+
*/
|
|
3643
|
+
get icon() {
|
|
3644
|
+
return 'đ§';
|
|
3645
|
+
}
|
|
3586
3646
|
/**
|
|
3587
3647
|
* Markdown documentation for USER MESSAGE commitment.
|
|
3588
3648
|
*/
|
|
@@ -3656,6 +3716,12 @@ class MetaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3656
3716
|
get description() {
|
|
3657
3717
|
return 'Set meta-information about the agent (IMAGE, LINK, TITLE, DESCRIPTION, etc.).';
|
|
3658
3718
|
}
|
|
3719
|
+
/**
|
|
3720
|
+
* Icon for this commitment.
|
|
3721
|
+
*/
|
|
3722
|
+
get icon() {
|
|
3723
|
+
return 'âšī¸';
|
|
3724
|
+
}
|
|
3659
3725
|
/**
|
|
3660
3726
|
* Markdown documentation for META commitment.
|
|
3661
3727
|
*/
|
|
@@ -3783,6 +3849,12 @@ class MetaColorCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3783
3849
|
get description() {
|
|
3784
3850
|
return "Set the agent's accent color.";
|
|
3785
3851
|
}
|
|
3852
|
+
/**
|
|
3853
|
+
* Icon for this commitment.
|
|
3854
|
+
*/
|
|
3855
|
+
get icon() {
|
|
3856
|
+
return 'đ¨';
|
|
3857
|
+
}
|
|
3786
3858
|
/**
|
|
3787
3859
|
* Markdown documentation for META COLOR commitment.
|
|
3788
3860
|
*/
|
|
@@ -3861,6 +3933,12 @@ class MetaImageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3861
3933
|
get description() {
|
|
3862
3934
|
return "Set the agent's profile image URL.";
|
|
3863
3935
|
}
|
|
3936
|
+
/**
|
|
3937
|
+
* Icon for this commitment.
|
|
3938
|
+
*/
|
|
3939
|
+
get icon() {
|
|
3940
|
+
return 'đŧī¸';
|
|
3941
|
+
}
|
|
3864
3942
|
/**
|
|
3865
3943
|
* Markdown documentation for META IMAGE commitment.
|
|
3866
3944
|
*/
|
|
@@ -3951,6 +4029,12 @@ class ModelCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
3951
4029
|
get description() {
|
|
3952
4030
|
return 'Enforce AI model requirements including name and technical parameters.';
|
|
3953
4031
|
}
|
|
4032
|
+
/**
|
|
4033
|
+
* Icon for this commitment.
|
|
4034
|
+
*/
|
|
4035
|
+
get icon() {
|
|
4036
|
+
return 'âī¸';
|
|
4037
|
+
}
|
|
3954
4038
|
/**
|
|
3955
4039
|
* Markdown documentation for MODEL commitment.
|
|
3956
4040
|
*/
|
|
@@ -4186,6 +4270,12 @@ class NoteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4186
4270
|
get description() {
|
|
4187
4271
|
return 'Add developer-facing notes without changing behavior or output.';
|
|
4188
4272
|
}
|
|
4273
|
+
/**
|
|
4274
|
+
* Icon for this commitment.
|
|
4275
|
+
*/
|
|
4276
|
+
get icon() {
|
|
4277
|
+
return 'đ';
|
|
4278
|
+
}
|
|
4189
4279
|
/**
|
|
4190
4280
|
* Markdown documentation for NOTE commitment.
|
|
4191
4281
|
*/
|
|
@@ -4288,6 +4378,12 @@ class PersonaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4288
4378
|
get description() {
|
|
4289
4379
|
return 'Define who the agent is: background, expertise, and personality.';
|
|
4290
4380
|
}
|
|
4381
|
+
/**
|
|
4382
|
+
* Icon for this commitment.
|
|
4383
|
+
*/
|
|
4384
|
+
get icon() {
|
|
4385
|
+
return 'đ¤';
|
|
4386
|
+
}
|
|
4291
4387
|
/**
|
|
4292
4388
|
* Markdown documentation for PERSONA commitment.
|
|
4293
4389
|
*/
|
|
@@ -4415,6 +4511,12 @@ class RuleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4415
4511
|
get description() {
|
|
4416
4512
|
return 'Add behavioral rules the agent must follow.';
|
|
4417
4513
|
}
|
|
4514
|
+
/**
|
|
4515
|
+
* Icon for this commitment.
|
|
4516
|
+
*/
|
|
4517
|
+
get icon() {
|
|
4518
|
+
return 'âī¸';
|
|
4519
|
+
}
|
|
4418
4520
|
/**
|
|
4419
4521
|
* Markdown documentation for RULE/RULES commitment.
|
|
4420
4522
|
*/
|
|
@@ -4491,6 +4593,12 @@ class SampleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4491
4593
|
get description() {
|
|
4492
4594
|
return 'Provide example responses to guide behavior.';
|
|
4493
4595
|
}
|
|
4596
|
+
/**
|
|
4597
|
+
* Icon for this commitment.
|
|
4598
|
+
*/
|
|
4599
|
+
get icon() {
|
|
4600
|
+
return 'đ';
|
|
4601
|
+
}
|
|
4494
4602
|
/**
|
|
4495
4603
|
* Markdown documentation for SAMPLE/EXAMPLE commitment.
|
|
4496
4604
|
*/
|
|
@@ -4568,6 +4676,12 @@ class ScenarioCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4568
4676
|
get description() {
|
|
4569
4677
|
return 'Define specific **situations** or contexts for AI responses, with later scenarios having higher priority.';
|
|
4570
4678
|
}
|
|
4679
|
+
/**
|
|
4680
|
+
* Icon for this commitment.
|
|
4681
|
+
*/
|
|
4682
|
+
get icon() {
|
|
4683
|
+
return 'đ';
|
|
4684
|
+
}
|
|
4571
4685
|
/**
|
|
4572
4686
|
* Markdown documentation for SCENARIO commitment.
|
|
4573
4687
|
*/
|
|
@@ -4684,6 +4798,12 @@ class StyleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4684
4798
|
get description() {
|
|
4685
4799
|
return 'Control the tone and writing style of responses.';
|
|
4686
4800
|
}
|
|
4801
|
+
/**
|
|
4802
|
+
* Icon for this commitment.
|
|
4803
|
+
*/
|
|
4804
|
+
get icon() {
|
|
4805
|
+
return 'đī¸';
|
|
4806
|
+
}
|
|
4687
4807
|
/**
|
|
4688
4808
|
* Markdown documentation for STYLE commitment.
|
|
4689
4809
|
*/
|
|
@@ -4753,6 +4873,12 @@ class NotYetImplementedCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
4753
4873
|
get description() {
|
|
4754
4874
|
return 'Placeholder commitment that appends content verbatim to the system message.';
|
|
4755
4875
|
}
|
|
4876
|
+
/**
|
|
4877
|
+
* Icon for this commitment.
|
|
4878
|
+
*/
|
|
4879
|
+
get icon() {
|
|
4880
|
+
return 'đ§';
|
|
4881
|
+
}
|
|
4756
4882
|
/**
|
|
4757
4883
|
* Markdown documentation available at runtime.
|
|
4758
4884
|
*/
|