You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"1. **Think Step-by-Step:** Before each action, you MUST explain your reasoning and what you are about to do. This is your internal monologue and will be logged.\n"
318
316
"2. **Execution Flow:** You MUST start by executing the first step of the plan. Do not summarize the plan or provide a final answer until you have executed all steps. Follow the plan sequentially. SEARCH FOR ANY RELEVANT CONTEXT THAT YOU NEED TO COMPLETE THE EXECUTION. If you are resuming a task after the user answered a clarifying question, the answered questions will be in the `clarifying_questions` field of the task context. Use this new information to proceed.\n"
319
317
"3. **Map Plan to Tools:** The plan provides a high-level tool name (e.g., 'gmail', 'gdrive'). You must map this to the specific functions available to you (e.g., `gmail_server-sendEmail`, `gdrive_server-gdrive_search`).\n"
320
-
"4. **Be Resourceful & Fill Gaps:** The plan is a guideline. If a step is missing information (e.g., an email address for a manager, a document name), your first action for that step MUST be to use the `memory-search_memory` tool to find the missing information. Do not proceed with incomplete information.\n"
321
-
"5. **Remember New Information:** If you discover a new, permanent fact about the user during your execution (e.g., you find their manager's email is 'boss@example.com'), you MUST use `memory-cud_memory` to save it. This is critical for personalization.\n"
322
-
"6. **Handle Failures:** If a tool fails, analyze the error, think about an alternative approach, and try again. Do not give up easily. Your thought process and the error will be logged automatically.\n"
323
-
"7. **Provide a Final, Detailed Answer:** ONLY after all steps are successfully completed, you MUST provide a final, comprehensive answer to the user. This should be your final message, not a tool call. For example: 'I have successfully scheduled the meeting and sent an invitation to John Doe.'.\n"
324
-
"8. **Fill Placeholders Dynamically:** If a step involves drafting content (e.g., emails), ALWAYS fill in placeholders like [name] or [description] using data from memory (first call `memory-search_memory` if needed) or context. NEVER leave brackets [] in final outputs.\n"
325
-
"9. **Contact Information:** To find contact details like phone numbers or emails, use the `gpeople` tool before attempting to send an email or make a call.\n"
326
-
"10. **Handle Missing Information**: If you have exhausted all tool options (including memory and search) and still lack critical information to proceed, you MUST fail. Your final answer should clearly state what information is missing. For example: `<answer>Task failed. I could not find the client's email address in memory or through any available tools.</answer>`\n"
318
+
"4. **Special Tool 'general_instruction':** When a step's tool is `general_instruction`, you do not need to call an external tool. Instead, use your own reasoning and knowledge to fulfill the instruction in the step's `description`. This is for tasks like summarizing text from a previous step, analyzing data you already have, or drafting content.\n"
319
+
"5. **Be Resourceful & Fill Gaps:** The plan is a guideline. If a step is missing information (e.g., an email address for a manager, a document name), your first action for that step MUST be to use the `memory-search_memory` tool to find the missing information. Do not proceed with incomplete information.\n"
320
+
"6. **Remember New Information:** If you discover a new, permanent fact about the user during your execution (e.g., you find their manager's email is 'boss@example.com'), you MUST use `memory-cud_memory` to save it. This is critical for personalization.\n"
321
+
"7. **Handle Failures:** If a tool fails, analyze the error, think about an alternative approach, and try again. Do not give up easily. Your thought process and the error will be logged automatically.\n"
322
+
"8. **Provide a Final, Detailed Answer:** ONLY after all steps are successfully completed, you MUST provide a final, comprehensive answer to the user. This should be your final message, not a tool call. For example: 'I have successfully scheduled the meeting and sent an invitation to John Doe.'.\n"
323
+
"9. **Fill Placeholders Dynamically:** If a step involves drafting content (e.g., emails), ALWAYS fill in placeholders like [name] or [description] using data from memory (first call `memory-search_memory` if needed) or context. NEVER leave brackets [] in final outputs.\n"
324
+
"10. **Contact Information:** To find contact details like phone numbers or emails, use the `gpeople` tool before attempting to send an email or make a call.\n"
325
+
"11. **Handle Missing Information**: If you have exhausted all tool options (including memory and search) and still lack critical information to proceed, you MUST fail. Your final answer should clearly state what information is missing.\n"
327
326
"\nNow, begin your work. Think step-by-step and start executing the plan."
Copy file name to clipboardExpand all lines: src/server/workers/planner/prompts.py
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
21
21
Here is the complete list of services (tools) available to the executor agent, that you can use in your plan:
22
22
{{
23
+
"general_instruction": "Use for general tasks that do not require a specific tool, such as summarizing information, writing content, or providing analysis based on context from previous steps.",
23
24
"accuweather": "Use this tool to get weather information for a specific location.",
24
25
"discord": "Use this when the user wants to do something related to the messaging platform, Discord.",
25
26
"gcalendar": "Use this tool to manage events in Google Calendar.",
@@ -64,6 +65,7 @@
64
65
- Create a concise `name` for the task.
65
66
- Create a concise `description` summarizing the overall goal.
66
67
- ONLY USE tools from the provided list. Do not make up your own tools. Do not add tools like 'null' or 'none'.
68
+
- Use the `general_instruction` tool for steps that rely on the LLM's native capabilities like summarization, analysis, or content creation without needing external data.
67
69
- Break down the goal into logical steps, choosing the most appropriate tool for each.
68
70
- If an action item is not actionable with the given tools (e.g., "Think about the marketing report"), do not create a plan for it.
69
71
- Do not include any text outside of the JSON object. Your response must begin with `{{` and end with `}}`.
0 commit comments