@elizaos/prompts 2.0.0-alpha.439 → 2.0.0-alpha.440

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.
@@ -413,12 +413,13 @@ MESSAGE_HANDLER_TEMPLATE = """task: Generate dialog and actions for {{agentName}
413
413
  context:
414
414
  {{providers}}
415
415
 
416
- rules[11]:
416
+ rules[12]:
417
417
  - think briefly, then respond
418
418
  - always include a <thought> field, even for direct replies
419
419
  - actions execute in listed order
420
420
  - if replying without another grounded state/action query, REPLY goes first
421
421
  - use IGNORE or STOP only by themselves
422
+ - in group conversations, choose IGNORE if the latest message is addressed to someone else and not to {{agentName}}
422
423
  - include providers only when needed
423
424
  - use provider_hints from context when present instead of restating the same rules
424
425
  - if an action needs inputs, include them inside that action's <params> block
@@ -854,12 +855,13 @@ SHOULD_RESPOND_TEMPLATE = """task: Decide whether {{agentName}} should respond,
854
855
  context:
855
856
  {{providers}}
856
857
 
857
- rules[6]:
858
+ rules[7]:
858
859
  - direct mention of {{agentName}} -> RESPOND
859
860
  - different assistant name or talking to someone else -> IGNORE unless {{agentName}} is also directly addressed
860
861
  - prior participation by {{agentName}} in the thread is not enough by itself; the newest message must still clearly expect {{agentName}} -> otherwise IGNORE
861
862
  - request to stop or be quiet directed at {{agentName}} -> STOP
862
863
  - if multiple people are mentioned and {{agentName}} is one of the addressees -> RESPOND
864
+ - in group conversations, if the latest message is addressed to someone else and not to {{agentName}}, IGNORE
863
865
  - if unsure whether the speaker is talking to {{agentName}}, prefer IGNORE over hallucinating relevance
864
866
 
865
867
  available_contexts:
@@ -898,12 +900,13 @@ context:
898
900
  available_contexts:
899
901
  {{availableContexts}}
900
902
 
901
- rules[6]:
903
+ rules[7]:
902
904
  - direct mention of {{agentName}} -> RESPOND
903
905
  - different assistant name or talking to someone else -> IGNORE unless {{agentName}} is also directly addressed
904
906
  - prior participation by {{agentName}} in the thread is not enough by itself; the newest message must still clearly expect {{agentName}} -> otherwise IGNORE
905
907
  - request to stop or be quiet directed at {{agentName}} -> STOP
906
908
  - if multiple people are mentioned and {{agentName}} is one of the addressees -> RESPOND
909
+ - in group conversations, if the latest message is addressed to someone else and not to {{agentName}}, IGNORE
907
910
  - if unsure whether the speaker is talking to {{agentName}}, prefer IGNORE over hallucinating relevance
908
911
 
909
912
  context_routing:
@@ -409,12 +409,13 @@ pub const MESSAGE_HANDLER_TEMPLATE: &str = r#"task: Generate dialog and actions
409
409
  context:
410
410
  {{providers}}
411
411
 
412
- rules[11]:
412
+ rules[12]:
413
413
  - think briefly, then respond
414
414
  - always include a <thought> field, even for direct replies
415
415
  - actions execute in listed order
416
416
  - if replying without another grounded state/action query, REPLY goes first
417
417
  - use IGNORE or STOP only by themselves
418
+ - in group conversations, choose IGNORE if the latest message is addressed to someone else and not to {{agentName}}
418
419
  - include providers only when needed
419
420
  - use provider_hints from context when present instead of restating the same rules
420
421
  - if an action needs inputs, include them inside that action's <params> block
@@ -850,12 +851,13 @@ pub const SHOULD_RESPOND_TEMPLATE: &str = r#"task: Decide whether {{agentName}}
850
851
  context:
851
852
  {{providers}}
852
853
 
853
- rules[6]:
854
+ rules[7]:
854
855
  - direct mention of {{agentName}} -> RESPOND
855
856
  - different assistant name or talking to someone else -> IGNORE unless {{agentName}} is also directly addressed
856
857
  - prior participation by {{agentName}} in the thread is not enough by itself; the newest message must still clearly expect {{agentName}} -> otherwise IGNORE
857
858
  - request to stop or be quiet directed at {{agentName}} -> STOP
858
859
  - if multiple people are mentioned and {{agentName}} is one of the addressees -> RESPOND
860
+ - in group conversations, if the latest message is addressed to someone else and not to {{agentName}}, IGNORE
859
861
  - if unsure whether the speaker is talking to {{agentName}}, prefer IGNORE over hallucinating relevance
860
862
 
861
863
  available_contexts:
@@ -894,12 +896,13 @@ context:
894
896
  available_contexts:
895
897
  {{availableContexts}}
896
898
 
897
- rules[6]:
899
+ rules[7]:
898
900
  - direct mention of {{agentName}} -> RESPOND
899
901
  - different assistant name or talking to someone else -> IGNORE unless {{agentName}} is also directly addressed
900
902
  - prior participation by {{agentName}} in the thread is not enough by itself; the newest message must still clearly expect {{agentName}} -> otherwise IGNORE
901
903
  - request to stop or be quiet directed at {{agentName}} -> STOP
902
904
  - if multiple people are mentioned and {{agentName}} is one of the addressees -> RESPOND
905
+ - in group conversations, if the latest message is addressed to someone else and not to {{agentName}}, IGNORE
903
906
  - if unsure whether the speaker is talking to {{agentName}}, prefer IGNORE over hallucinating relevance
904
907
 
905
908
  context_routing:
@@ -439,12 +439,13 @@ export const messageHandlerTemplate = `task: Generate dialog and actions for {{a
439
439
  context:
440
440
  {{providers}}
441
441
 
442
- rules[11]:
442
+ rules[12]:
443
443
  - think briefly, then respond
444
444
  - always include a <thought> field, even for direct replies
445
445
  - actions execute in listed order
446
446
  - if replying without another grounded state/action query, REPLY goes first
447
447
  - use IGNORE or STOP only by themselves
448
+ - in group conversations, choose IGNORE if the latest message is addressed to someone else and not to {{agentName}}
448
449
  - include providers only when needed
449
450
  - use provider_hints from context when present instead of restating the same rules
450
451
  - if an action needs inputs, include them inside that action's <params> block
@@ -908,12 +909,13 @@ export const shouldRespondTemplate = `task: Decide whether {{agentName}} should
908
909
  context:
909
910
  {{providers}}
910
911
 
911
- rules[6]:
912
+ rules[7]:
912
913
  - direct mention of {{agentName}} -> RESPOND
913
914
  - different assistant name or talking to someone else -> IGNORE unless {{agentName}} is also directly addressed
914
915
  - prior participation by {{agentName}} in the thread is not enough by itself; the newest message must still clearly expect {{agentName}} -> otherwise IGNORE
915
916
  - request to stop or be quiet directed at {{agentName}} -> STOP
916
917
  - if multiple people are mentioned and {{agentName}} is one of the addressees -> RESPOND
918
+ - in group conversations, if the latest message is addressed to someone else and not to {{agentName}}, IGNORE
917
919
  - if unsure whether the speaker is talking to {{agentName}}, prefer IGNORE over hallucinating relevance
918
920
 
919
921
  available_contexts:
@@ -954,12 +956,13 @@ context:
954
956
  available_contexts:
955
957
  {{availableContexts}}
956
958
 
957
- rules[6]:
959
+ rules[7]:
958
960
  - direct mention of {{agentName}} -> RESPOND
959
961
  - different assistant name or talking to someone else -> IGNORE unless {{agentName}} is also directly addressed
960
962
  - prior participation by {{agentName}} in the thread is not enough by itself; the newest message must still clearly expect {{agentName}} -> otherwise IGNORE
961
963
  - request to stop or be quiet directed at {{agentName}} -> STOP
962
964
  - if multiple people are mentioned and {{agentName}} is one of the addressees -> RESPOND
965
+ - in group conversations, if the latest message is addressed to someone else and not to {{agentName}}, IGNORE
963
966
  - if unsure whether the speaker is talking to {{agentName}}, prefer IGNORE over hallucinating relevance
964
967
 
965
968
  context_routing:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elizaos/prompts",
3
3
  "private": false,
4
- "version": "2.0.0-alpha.439",
4
+ "version": "2.0.0-alpha.440",
5
5
  "description": "Shared prompt templates for elizaOS across TypeScript, Python, and Rust",
6
6
  "type": "module",
7
7
  "main": "./dist/typescript/index.ts",
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "1035dcbd339898b53a08e12bf982342b386438a9"
46
+ "gitHead": "6c62cf979bb5eb5694a91cd904454d59f5e52bc6"
47
47
  }
@@ -3,12 +3,13 @@ task: Generate dialog and actions for {{agentName}}.
3
3
  context:
4
4
  {{providers}}
5
5
 
6
- rules[11]:
6
+ rules[12]:
7
7
  - think briefly, then respond
8
8
  - always include a <thought> field, even for direct replies
9
9
  - actions execute in listed order
10
10
  - if replying without another grounded state/action query, REPLY goes first
11
11
  - use IGNORE or STOP only by themselves
12
+ - in group conversations, choose IGNORE if the latest message is addressed to someone else and not to {{agentName}}
12
13
  - include providers only when needed
13
14
  - use provider_hints from context when present instead of restating the same rules
14
15
  - if an action needs inputs, include them inside that action's <params> block
@@ -3,12 +3,13 @@ task: Decide whether {{agentName}} should respond, ignore, or stop.
3
3
  context:
4
4
  {{providers}}
5
5
 
6
- rules[6]:
6
+ rules[7]:
7
7
  - direct mention of {{agentName}} -> RESPOND
8
8
  - different assistant name or talking to someone else -> IGNORE unless {{agentName}} is also directly addressed
9
9
  - prior participation by {{agentName}} in the thread is not enough by itself; the newest message must still clearly expect {{agentName}} -> otherwise IGNORE
10
10
  - request to stop or be quiet directed at {{agentName}} -> STOP
11
11
  - if multiple people are mentioned and {{agentName}} is one of the addressees -> RESPOND
12
+ - in group conversations, if the latest message is addressed to someone else and not to {{agentName}}, IGNORE
12
13
  - if unsure whether the speaker is talking to {{agentName}}, prefer IGNORE over hallucinating relevance
13
14
 
14
15
  available_contexts:
@@ -6,12 +6,13 @@ context:
6
6
  available_contexts:
7
7
  {{availableContexts}}
8
8
 
9
- rules[6]:
9
+ rules[7]:
10
10
  - direct mention of {{agentName}} -> RESPOND
11
11
  - different assistant name or talking to someone else -> IGNORE unless {{agentName}} is also directly addressed
12
12
  - prior participation by {{agentName}} in the thread is not enough by itself; the newest message must still clearly expect {{agentName}} -> otherwise IGNORE
13
13
  - request to stop or be quiet directed at {{agentName}} -> STOP
14
14
  - if multiple people are mentioned and {{agentName}} is one of the addressees -> RESPOND
15
+ - in group conversations, if the latest message is addressed to someone else and not to {{agentName}}, IGNORE
15
16
  - if unsure whether the speaker is talking to {{agentName}}, prefer IGNORE over hallucinating relevance
16
17
 
17
18
  context_routing: