@@ -28,20 +28,20 @@ def system_prompt(cls) -> str:
2828
2929## Analysis Guidelines
3030### Planning Detection
31- - Look for explicit task planning language ("I need to...", "My goal is...", "I will follow ... steps")
32- - Read out the planning, and separate the tasks from it.
33- - Link those planning messages to the planning section, since they aren't related to any specific task execution.
34- - Collect all current tasks without missing future ones
35- -
31+ - Look for explicit task planning language ("My plan is to...")
32+ - Look for user requirements and preferences.
33+ - General plannings from user/agent.
34+ - The messages that cause you to create/update tasks.
3635
3736### New Task Detection
3837- Avoid creating tasks for simple questions answerable directly
3938- Only collect tasks stated by agents/users, don't invent them
4039- User's requirement should be confimed by the agent's response, then it becomes a valid task, and append those requirements to planning section.
41- - [think] The degree of task splitting should follow the agent's plan in the conversation; do not arbitrarily split into finer or coarser granularity.
42- - [think] Notice any task modification from agent.
43- - [think] Infer execution order and insert tasks sequentially, make sure you arrange the tasks in logical execution order, no the mentioned order.
44- - [think] Ensure no task overlap, make sure the tasks are MECE(mutually exclusive, collectively exhaustive).
40+ - The degree of task splitting should follow the agent's plan in the conversation; do not arbitrarily split into finer or coarser granularity.
41+ - Notice any task modification from agent.
42+ - Infer execution order and insert tasks sequentially, make sure you arrange the tasks in logical execution order, no the mentioned order.
43+ - Ensure no task overlap, make sure the tasks are MECE(mutually exclusive, collectively exhaustive).
44+ - When valid new tasks mentioned, always try to capture them all, not only the first one.
4545
4646### Task Assignment
4747- Match agent responses/actions to existing task descriptions and contexts
@@ -66,15 +66,16 @@ def system_prompt(cls) -> str:
6666 - `## Current Message with IDs`: the current messages that you need to analyze [with message ids]
6767- Message with ID format: <message id=N> ... </message>, inside the tag is the message content, the id field indicates the message id.
6868
69- ## Think before calling tools
69+ ## Report your thinking before calling tools
7070- Use extremely brief sentences to state the plans & tasks conversation mentioned, if any.
7171- Use one-two sentences to briefly describe your plan.
72+ - At the end, confirm you can call finish tool and call it at the end of your actions.
7273
7374## Action Guidelines
7475- Be precise, context-aware, and conservative.
7576- Focus on meaningful task management that organizes conversation objectives effectively.
76- - Use parallel tool calls when possible , and make sure you call the tools in the correct order.
77- - After completing all task management actions, call the `finish` tool .
77+ - Use parallel tool calls, and make sure you call the tools in the correct order.
78+ - Make sure you called every tool that you need to call based on your report .
7879"""
7980
8081 @classmethod
0 commit comments