@promptbook/core 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
|
@@ -27,7 +27,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
27
27
|
* @generated
|
|
28
28
|
* @see https://github.com/webgptorg/promptbook
|
|
29
29
|
*/
|
|
30
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
30
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-54';
|
|
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
|
|
@@ -7586,6 +7586,12 @@ class ActionCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
7586
7586
|
get description() {
|
|
7587
7587
|
return 'Define agent capabilities and actions it can perform.';
|
|
7588
7588
|
}
|
|
7589
|
+
/**
|
|
7590
|
+
* Icon for this commitment.
|
|
7591
|
+
*/
|
|
7592
|
+
get icon() {
|
|
7593
|
+
return 'âĄ';
|
|
7594
|
+
}
|
|
7589
7595
|
/**
|
|
7590
7596
|
* Markdown documentation for ACTION commitment.
|
|
7591
7597
|
*/
|
|
@@ -7665,6 +7671,12 @@ class DeleteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
7665
7671
|
get description() {
|
|
7666
7672
|
return 'Remove or **disregard** certain information, context, or previous commitments.';
|
|
7667
7673
|
}
|
|
7674
|
+
/**
|
|
7675
|
+
* Icon for this commitment.
|
|
7676
|
+
*/
|
|
7677
|
+
get icon() {
|
|
7678
|
+
return 'đī¸';
|
|
7679
|
+
}
|
|
7668
7680
|
/**
|
|
7669
7681
|
* Markdown documentation for DELETE commitment.
|
|
7670
7682
|
*/
|
|
@@ -7781,6 +7793,12 @@ class FormatCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
7781
7793
|
get description() {
|
|
7782
7794
|
return 'Specify output structure or formatting requirements.';
|
|
7783
7795
|
}
|
|
7796
|
+
/**
|
|
7797
|
+
* Icon for this commitment.
|
|
7798
|
+
*/
|
|
7799
|
+
get icon() {
|
|
7800
|
+
return 'đ';
|
|
7801
|
+
}
|
|
7784
7802
|
/**
|
|
7785
7803
|
* Markdown documentation for FORMAT commitment.
|
|
7786
7804
|
*/
|
|
@@ -7856,6 +7874,12 @@ class GoalCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
7856
7874
|
get description() {
|
|
7857
7875
|
return 'Define main **goals** the AI assistant should achieve, with later goals having higher priority.';
|
|
7858
7876
|
}
|
|
7877
|
+
/**
|
|
7878
|
+
* Icon for this commitment.
|
|
7879
|
+
*/
|
|
7880
|
+
get icon() {
|
|
7881
|
+
return 'đ¯';
|
|
7882
|
+
}
|
|
7859
7883
|
/**
|
|
7860
7884
|
* Markdown documentation for GOAL commitment.
|
|
7861
7885
|
*/
|
|
@@ -7952,6 +7976,12 @@ class KnowledgeCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
7952
7976
|
get description() {
|
|
7953
7977
|
return 'Add domain **knowledge** via direct text or external sources (RAG).';
|
|
7954
7978
|
}
|
|
7979
|
+
/**
|
|
7980
|
+
* Icon for this commitment.
|
|
7981
|
+
*/
|
|
7982
|
+
get icon() {
|
|
7983
|
+
return 'đ§ ';
|
|
7984
|
+
}
|
|
7955
7985
|
/**
|
|
7956
7986
|
* Markdown documentation for KNOWLEDGE commitment.
|
|
7957
7987
|
*/
|
|
@@ -8053,6 +8083,12 @@ class MemoryCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8053
8083
|
get description() {
|
|
8054
8084
|
return 'Remember past interactions and user **preferences** for personalized responses.';
|
|
8055
8085
|
}
|
|
8086
|
+
/**
|
|
8087
|
+
* Icon for this commitment.
|
|
8088
|
+
*/
|
|
8089
|
+
get icon() {
|
|
8090
|
+
return 'đ§ ';
|
|
8091
|
+
}
|
|
8056
8092
|
/**
|
|
8057
8093
|
* Markdown documentation for MEMORY commitment.
|
|
8058
8094
|
*/
|
|
@@ -8151,6 +8187,12 @@ class AgentMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8151
8187
|
get description() {
|
|
8152
8188
|
return 'Defines a **message from the agent** in the conversation history.';
|
|
8153
8189
|
}
|
|
8190
|
+
/**
|
|
8191
|
+
* Icon for this commitment.
|
|
8192
|
+
*/
|
|
8193
|
+
get icon() {
|
|
8194
|
+
return 'đ¤';
|
|
8195
|
+
}
|
|
8154
8196
|
/**
|
|
8155
8197
|
* Markdown documentation for AGENT MESSAGE commitment.
|
|
8156
8198
|
*/
|
|
@@ -8222,6 +8264,12 @@ class InitialMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8222
8264
|
get description() {
|
|
8223
8265
|
return 'Defines the **initial message** shown to the user when the chat starts.';
|
|
8224
8266
|
}
|
|
8267
|
+
/**
|
|
8268
|
+
* Icon for this commitment.
|
|
8269
|
+
*/
|
|
8270
|
+
get icon() {
|
|
8271
|
+
return 'đ';
|
|
8272
|
+
}
|
|
8225
8273
|
/**
|
|
8226
8274
|
* Markdown documentation for INITIAL MESSAGE commitment.
|
|
8227
8275
|
*/
|
|
@@ -8280,6 +8328,12 @@ class MessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8280
8328
|
get description() {
|
|
8281
8329
|
return 'Include actual **messages** the AI assistant has sent during conversation history.';
|
|
8282
8330
|
}
|
|
8331
|
+
/**
|
|
8332
|
+
* Icon for this commitment.
|
|
8333
|
+
*/
|
|
8334
|
+
get icon() {
|
|
8335
|
+
return 'đŦ';
|
|
8336
|
+
}
|
|
8283
8337
|
/**
|
|
8284
8338
|
* Markdown documentation for MESSAGE commitment.
|
|
8285
8339
|
*/
|
|
@@ -8386,6 +8440,12 @@ class UserMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8386
8440
|
get description() {
|
|
8387
8441
|
return 'Defines a **message from the user** in the conversation history.';
|
|
8388
8442
|
}
|
|
8443
|
+
/**
|
|
8444
|
+
* Icon for this commitment.
|
|
8445
|
+
*/
|
|
8446
|
+
get icon() {
|
|
8447
|
+
return 'đ§';
|
|
8448
|
+
}
|
|
8389
8449
|
/**
|
|
8390
8450
|
* Markdown documentation for USER MESSAGE commitment.
|
|
8391
8451
|
*/
|
|
@@ -8459,6 +8519,12 @@ class MetaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8459
8519
|
get description() {
|
|
8460
8520
|
return 'Set meta-information about the agent (IMAGE, LINK, TITLE, DESCRIPTION, etc.).';
|
|
8461
8521
|
}
|
|
8522
|
+
/**
|
|
8523
|
+
* Icon for this commitment.
|
|
8524
|
+
*/
|
|
8525
|
+
get icon() {
|
|
8526
|
+
return 'âšī¸';
|
|
8527
|
+
}
|
|
8462
8528
|
/**
|
|
8463
8529
|
* Markdown documentation for META commitment.
|
|
8464
8530
|
*/
|
|
@@ -8586,6 +8652,12 @@ class MetaColorCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8586
8652
|
get description() {
|
|
8587
8653
|
return "Set the agent's accent color.";
|
|
8588
8654
|
}
|
|
8655
|
+
/**
|
|
8656
|
+
* Icon for this commitment.
|
|
8657
|
+
*/
|
|
8658
|
+
get icon() {
|
|
8659
|
+
return 'đ¨';
|
|
8660
|
+
}
|
|
8589
8661
|
/**
|
|
8590
8662
|
* Markdown documentation for META COLOR commitment.
|
|
8591
8663
|
*/
|
|
@@ -8664,6 +8736,12 @@ class MetaImageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8664
8736
|
get description() {
|
|
8665
8737
|
return "Set the agent's profile image URL.";
|
|
8666
8738
|
}
|
|
8739
|
+
/**
|
|
8740
|
+
* Icon for this commitment.
|
|
8741
|
+
*/
|
|
8742
|
+
get icon() {
|
|
8743
|
+
return 'đŧī¸';
|
|
8744
|
+
}
|
|
8667
8745
|
/**
|
|
8668
8746
|
* Markdown documentation for META IMAGE commitment.
|
|
8669
8747
|
*/
|
|
@@ -8754,6 +8832,12 @@ class ModelCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8754
8832
|
get description() {
|
|
8755
8833
|
return 'Enforce AI model requirements including name and technical parameters.';
|
|
8756
8834
|
}
|
|
8835
|
+
/**
|
|
8836
|
+
* Icon for this commitment.
|
|
8837
|
+
*/
|
|
8838
|
+
get icon() {
|
|
8839
|
+
return 'âī¸';
|
|
8840
|
+
}
|
|
8757
8841
|
/**
|
|
8758
8842
|
* Markdown documentation for MODEL commitment.
|
|
8759
8843
|
*/
|
|
@@ -8989,6 +9073,12 @@ class NoteCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
8989
9073
|
get description() {
|
|
8990
9074
|
return 'Add developer-facing notes without changing behavior or output.';
|
|
8991
9075
|
}
|
|
9076
|
+
/**
|
|
9077
|
+
* Icon for this commitment.
|
|
9078
|
+
*/
|
|
9079
|
+
get icon() {
|
|
9080
|
+
return 'đ';
|
|
9081
|
+
}
|
|
8992
9082
|
/**
|
|
8993
9083
|
* Markdown documentation for NOTE commitment.
|
|
8994
9084
|
*/
|
|
@@ -9091,6 +9181,12 @@ class PersonaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
9091
9181
|
get description() {
|
|
9092
9182
|
return 'Define who the agent is: background, expertise, and personality.';
|
|
9093
9183
|
}
|
|
9184
|
+
/**
|
|
9185
|
+
* Icon for this commitment.
|
|
9186
|
+
*/
|
|
9187
|
+
get icon() {
|
|
9188
|
+
return 'đ¤';
|
|
9189
|
+
}
|
|
9094
9190
|
/**
|
|
9095
9191
|
* Markdown documentation for PERSONA commitment.
|
|
9096
9192
|
*/
|
|
@@ -9218,6 +9314,12 @@ class RuleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
9218
9314
|
get description() {
|
|
9219
9315
|
return 'Add behavioral rules the agent must follow.';
|
|
9220
9316
|
}
|
|
9317
|
+
/**
|
|
9318
|
+
* Icon for this commitment.
|
|
9319
|
+
*/
|
|
9320
|
+
get icon() {
|
|
9321
|
+
return 'âī¸';
|
|
9322
|
+
}
|
|
9221
9323
|
/**
|
|
9222
9324
|
* Markdown documentation for RULE/RULES commitment.
|
|
9223
9325
|
*/
|
|
@@ -9294,6 +9396,12 @@ class SampleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
9294
9396
|
get description() {
|
|
9295
9397
|
return 'Provide example responses to guide behavior.';
|
|
9296
9398
|
}
|
|
9399
|
+
/**
|
|
9400
|
+
* Icon for this commitment.
|
|
9401
|
+
*/
|
|
9402
|
+
get icon() {
|
|
9403
|
+
return 'đ';
|
|
9404
|
+
}
|
|
9297
9405
|
/**
|
|
9298
9406
|
* Markdown documentation for SAMPLE/EXAMPLE commitment.
|
|
9299
9407
|
*/
|
|
@@ -9371,6 +9479,12 @@ class ScenarioCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
9371
9479
|
get description() {
|
|
9372
9480
|
return 'Define specific **situations** or contexts for AI responses, with later scenarios having higher priority.';
|
|
9373
9481
|
}
|
|
9482
|
+
/**
|
|
9483
|
+
* Icon for this commitment.
|
|
9484
|
+
*/
|
|
9485
|
+
get icon() {
|
|
9486
|
+
return 'đ';
|
|
9487
|
+
}
|
|
9374
9488
|
/**
|
|
9375
9489
|
* Markdown documentation for SCENARIO commitment.
|
|
9376
9490
|
*/
|
|
@@ -9487,6 +9601,12 @@ class StyleCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
9487
9601
|
get description() {
|
|
9488
9602
|
return 'Control the tone and writing style of responses.';
|
|
9489
9603
|
}
|
|
9604
|
+
/**
|
|
9605
|
+
* Icon for this commitment.
|
|
9606
|
+
*/
|
|
9607
|
+
get icon() {
|
|
9608
|
+
return 'đī¸';
|
|
9609
|
+
}
|
|
9490
9610
|
/**
|
|
9491
9611
|
* Markdown documentation for STYLE commitment.
|
|
9492
9612
|
*/
|
|
@@ -9556,6 +9676,12 @@ class NotYetImplementedCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
9556
9676
|
get description() {
|
|
9557
9677
|
return 'Placeholder commitment that appends content verbatim to the system message.';
|
|
9558
9678
|
}
|
|
9679
|
+
/**
|
|
9680
|
+
* Icon for this commitment.
|
|
9681
|
+
*/
|
|
9682
|
+
get icon() {
|
|
9683
|
+
return 'đ§';
|
|
9684
|
+
}
|
|
9559
9685
|
/**
|
|
9560
9686
|
* Markdown documentation available at runtime.
|
|
9561
9687
|
*/
|