@elizaos/prompts 2.0.0-alpha.122 → 2.0.0-alpha.124

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.
@@ -753,6 +753,32 @@ TOON only. Return exactly one TOON document. No prose before or after it. No <th
753
753
  Example:
754
754
  decision: true"""
755
755
 
756
+ THINK_TEMPLATE = """# Task: Think deeply and reason carefully for {{agentName}}.
757
+
758
+ {{providers}}
759
+
760
+ # Context
761
+ The initial planning phase identified this question as requiring deeper analysis.
762
+ The following is the conversation so far and all available context.
763
+
764
+ # Instructions
765
+ You are {{agentName}}. A question or request has been identified as complex, ambiguous, or requiring careful reasoning. Your job is to think through this thoroughly before responding.
766
+
767
+ Approach this systematically:
768
+ 1. Identify the core question or problem being asked
769
+ 2. Consider multiple angles, approaches, or interpretations
770
+ 3. Evaluate trade-offs, risks, and constraints
771
+ 4. Draw on relevant knowledge and context from the conversation
772
+ 5. Arrive at a well-reasoned conclusion or recommendation
773
+
774
+ Be thorough but concise. Prioritize depth of reasoning over length. If there are genuine unknowns, acknowledge them rather than guessing.
775
+
776
+ Respond using TOON:
777
+ thought: Your detailed internal reasoning — the full chain of thought, alternatives considered, and why you reached your conclusion
778
+ text: Your response to the user — clear, structured, and well-reasoned. Use headings, lists, or code blocks as appropriate for the content.
779
+
780
+ IMPORTANT: Your response must ONLY contain the TOON document above. Do not include any preamble or explanation outside of it."""
781
+
756
782
  UPDATE_CONTACT_TEMPLATE = """task: Extract contact updates from the request.
757
783
 
758
784
  context:
@@ -878,6 +904,7 @@ __all__ = [
878
904
  "SHOULD_RESPOND_WITH_CONTEXT_TEMPLATE",
879
905
  "SHOULD_UNFOLLOW_ROOM_TEMPLATE",
880
906
  "SHOULD_UNMUTE_ROOM_TEMPLATE",
907
+ "THINK_TEMPLATE",
881
908
  "UPDATE_CONTACT_TEMPLATE",
882
909
  "UPDATE_ENTITY_TEMPLATE",
883
910
  "UPDATE_ROLE_TEMPLATE",
@@ -749,6 +749,32 @@ TOON only. Return exactly one TOON document. No prose before or after it. No <th
749
749
  Example:
750
750
  decision: true"#;
751
751
 
752
+ pub const THINK_TEMPLATE: &str = r#"# Task: Think deeply and reason carefully for {{agentName}}.
753
+
754
+ {{providers}}
755
+
756
+ # Context
757
+ The initial planning phase identified this question as requiring deeper analysis.
758
+ The following is the conversation so far and all available context.
759
+
760
+ # Instructions
761
+ You are {{agentName}}. A question or request has been identified as complex, ambiguous, or requiring careful reasoning. Your job is to think through this thoroughly before responding.
762
+
763
+ Approach this systematically:
764
+ 1. Identify the core question or problem being asked
765
+ 2. Consider multiple angles, approaches, or interpretations
766
+ 3. Evaluate trade-offs, risks, and constraints
767
+ 4. Draw on relevant knowledge and context from the conversation
768
+ 5. Arrive at a well-reasoned conclusion or recommendation
769
+
770
+ Be thorough but concise. Prioritize depth of reasoning over length. If there are genuine unknowns, acknowledge them rather than guessing.
771
+
772
+ Respond using TOON:
773
+ thought: Your detailed internal reasoning — the full chain of thought, alternatives considered, and why you reached your conclusion
774
+ text: Your response to the user — clear, structured, and well-reasoned. Use headings, lists, or code blocks as appropriate for the content.
775
+
776
+ IMPORTANT: Your response must ONLY contain the TOON document above. Do not include any preamble or explanation outside of it."#;
777
+
752
778
  pub const UPDATE_CONTACT_TEMPLATE: &str = r#"task: Extract contact updates from the request.
753
779
 
754
780
  context:
@@ -56,6 +56,8 @@ export declare const shouldUnfollowRoomTemplate: string;
56
56
  export declare const SHOULD_UNFOLLOW_ROOM_TEMPLATE: string;
57
57
  export declare const shouldUnmuteRoomTemplate: string;
58
58
  export declare const SHOULD_UNMUTE_ROOM_TEMPLATE: string;
59
+ export declare const thinkTemplate: string;
60
+ export declare const THINK_TEMPLATE: string;
59
61
  export declare const updateContactTemplate: string;
60
62
  export declare const UPDATE_CONTACT_TEMPLATE: string;
61
63
  export declare const updateEntityTemplate: string;
@@ -805,6 +805,34 @@ decision: true`;
805
805
 
806
806
  export const SHOULD_UNMUTE_ROOM_TEMPLATE = shouldUnmuteRoomTemplate;
807
807
 
808
+ export const thinkTemplate = `# Task: Think deeply and reason carefully for {{agentName}}.
809
+
810
+ {{providers}}
811
+
812
+ # Context
813
+ The initial planning phase identified this question as requiring deeper analysis.
814
+ The following is the conversation so far and all available context.
815
+
816
+ # Instructions
817
+ You are {{agentName}}. A question or request has been identified as complex, ambiguous, or requiring careful reasoning. Your job is to think through this thoroughly before responding.
818
+
819
+ Approach this systematically:
820
+ 1. Identify the core question or problem being asked
821
+ 2. Consider multiple angles, approaches, or interpretations
822
+ 3. Evaluate trade-offs, risks, and constraints
823
+ 4. Draw on relevant knowledge and context from the conversation
824
+ 5. Arrive at a well-reasoned conclusion or recommendation
825
+
826
+ Be thorough but concise. Prioritize depth of reasoning over length. If there are genuine unknowns, acknowledge them rather than guessing.
827
+
828
+ Respond using TOON:
829
+ thought: Your detailed internal reasoning — the full chain of thought, alternatives considered, and why you reached your conclusion
830
+ text: Your response to the user — clear, structured, and well-reasoned. Use headings, lists, or code blocks as appropriate for the content.
831
+
832
+ IMPORTANT: Your response must ONLY contain the TOON document above. Do not include any preamble or explanation outside of it.`;
833
+
834
+ export const THINK_TEMPLATE = thinkTemplate;
835
+
808
836
  export const updateContactTemplate = `task: Extract contact updates from the request.
809
837
 
810
838
  context:
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.122",
4
+ "version": "2.0.0-alpha.124",
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": "fca1d71bfb2ac76790f8782072f8bde6703c549e"
46
+ "gitHead": "677d1238739b5e89124728b71050e094f1270117"
47
47
  }
@@ -0,0 +1,25 @@
1
+ # Task: Think deeply and reason carefully for {{agentName}}.
2
+
3
+ {{providers}}
4
+
5
+ # Context
6
+ The initial planning phase identified this question as requiring deeper analysis.
7
+ The following is the conversation so far and all available context.
8
+
9
+ # Instructions
10
+ You are {{agentName}}. A question or request has been identified as complex, ambiguous, or requiring careful reasoning. Your job is to think through this thoroughly before responding.
11
+
12
+ Approach this systematically:
13
+ 1. Identify the core question or problem being asked
14
+ 2. Consider multiple angles, approaches, or interpretations
15
+ 3. Evaluate trade-offs, risks, and constraints
16
+ 4. Draw on relevant knowledge and context from the conversation
17
+ 5. Arrive at a well-reasoned conclusion or recommendation
18
+
19
+ Be thorough but concise. Prioritize depth of reasoning over length. If there are genuine unknowns, acknowledge them rather than guessing.
20
+
21
+ Respond using TOON:
22
+ thought: Your detailed internal reasoning — the full chain of thought, alternatives considered, and why you reached your conclusion
23
+ text: Your response to the user — clear, structured, and well-reasoned. Use headings, lists, or code blocks as appropriate for the content.
24
+
25
+ IMPORTANT: Your response must ONLY contain the TOON document above. Do not include any preamble or explanation outside of it.