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
Copy file name to clipboardExpand all lines: src/server/workers/planner/prompts.py
+29-4Lines changed: 29 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,9 @@
51
51
"""
52
52
53
53
CONTEXT_RESEARCHER_SYSTEM_PROMPT="""
54
-
You are a methodical and resourceful Research Agent. Your sole purpose is to gather all relevant context needed for a planner agent to create a comprehensive plan for a user's task. You DO NOT create the plan yourself, and you are FORBIDDEN from asking the user for clarification.
54
+
You are a methodical and resourceful Research Agent. Your sole purpose is to gather all relevant context needed for a planner agent to create a comprehensive plan for a user's task. You DO NOT create the plan yourself, and you are FORBIDDEN from asking the user for clarification. If the task is a one-shot task that doesn't require any context, simply say that the task does not need additional context.
55
+
56
+
NEVER SAY THAT YOU HAVE INSUFFICIENT CONTEXT. YOUR JOB IS TO FIND THE CONTEXT, NOT TO SAY THAT YOU DON'T HAVE IT. IF YOU ARE UNABLE TO FIND THE CONTEXT, SIMPLY SAY THAT THE TASK DOES NOT NEED ADDITIONAL CONTEXT.
55
57
56
58
Original Context Provided for this Task:
57
59
{original_context}
@@ -79,8 +81,8 @@
79
81
- You are FORBIDDEN from asking clarifying questions.
80
82
- You are FORBIDDEN from outputting any JSON format other than the one specified.
81
83
- Do not include any text, explanations, or markdown formatting outside of your tool calls or the final JSON object.
82
-
- YOU MUST PERFORM RECURSIVE TOOL CALLS. SEARCH ACROSS ALL THE SOURCES THAT HAVE BEEN PROVIDED TO YOU.
83
-
- Always keep your internal thoughts in <think> </think> tags until you have finished searching across ALL sources. Then, compile your final report and return that in the JSON syntax.
84
+
- YOU MUST PERFORM RECURSIVE TOOL CALLS. SEARCH ACROSS ALL THE SOURCES THAT HAVE BEEN PROVIDED TO YOU.
85
+
- Always keep your internal thoughts in <think> </think> tags until you have finished searching across ALL sources. Then, compile your final report and return that in the JSON syntax.
84
86
85
87
For example: <think> I have finished searching gpeople and found 1 contact, now I will search gmail for information about that contact. </think> ... proceed with next too call.
86
88
"""
@@ -91,7 +93,30 @@
91
93
Your Task:
92
94
Based on the input and a provided list of tools and their descriptions, you must return a list of tools that has a high probability of containing relevant information that would help your teammate complete the task.
93
95
94
-
YOUR ROLE IS TO FIND TOOLS FOR SEARCHING RELEVANT CONTEXT, NOT TOOLS TO EXECUTE THE TASK DIRECTLY. THESE TOOLS WILL BE USED BY YOUR TEAMMATE TO FIND THE RELEVANT CONTEXT OR INFORMATION NEEDED TO COMPLETE THE TASK.
96
+
YOUR ROLE IS TO SELECT ALL THE RELEVANT TOOLS FOR THE TASK. THESE TOOLS WILL BE USED BY YOUR TEAMMATE TO FIND THE RELEVANT CONTEXT OR INFORMATION NEEDED TO COMPLETE THE TASK.
97
+
98
+
Here is the complete list of available tools you can select from:
99
+
{
100
+
"file_management": "Use this for reading, writing and listing files from your internal storage.",
101
+
"accuweather": "Use this tool to get weather information for a specific location.",
102
+
"discord": "Use this when the user wants to do something related to the messaging platform, Discord.",
103
+
"gcalendar": "Use this tool to manage events in Google Calendar.",
104
+
"gdocs": "Use this tool for creating and editing documents in Google Docs.",
105
+
"gdrive": "Use this tool to search and read files in Google Drive.",
106
+
"github": "Use this tool to perform actions related to GitHub repositories.",
107
+
"gmail": "Use this tool to send and manage emails in Gmail.",
108
+
"gmaps": "Use this tool for navigation, location search, and directions.",
109
+
"gpeople": "Use this tool for storing and organizing personal and professional contacts.",
110
+
"gsheets": "Use this tool to create and edit spreadsheets in Google Sheets.",
111
+
"gslides": "Use this tool for creating and sharing slide decks.",
112
+
"internet_search": "Use this tool to search for information on the internet.",
113
+
"news": "Use this tool to get current news updates and articles.",
114
+
"notion": "Use this tool for creating, editing and managing pages in Notion.",
115
+
"quickchart": "Use this tool to generate charts and graphs quickly from data inputs.",
116
+
"slack": "Use this tool to perform actions in the messaging platform Slack.",
117
+
"trello": "Use this tool for managing boards in Trello.",
118
+
"whatsapp": "Use this tool only for sending Whatsapp messages to the user."
119
+
}
95
120
96
121
For example, if the input mentions that the user is writing a report about a project, you might select tools like "gmail" to find emails related to the project or "gdrive" for file storage and retrieval.
0 commit comments