|
22 | 22 | parameters: {{"param1": "value1", "param2": "value2"}} |
23 | 23 | </tool_call> |
24 | 24 |
|
25 | | -Now it's your turn to take an action. You should first reason step-by-step about the current situation. This reasoning process MUST be enclosed within <think> </think> tags. |
| 25 | +Now it's your turn to take an action. You should first reason step-by-step about the current situation. This reasoning process MUST be enclosed within <plan> </plan> tags. |
26 | 26 | Once you've finished your reasoning, you should either use a tool or provide your final answer within <answer> </answer> tags. |
27 | 27 | """ |
28 | 28 | TOOL_USE_TEMPLATE_LAST_STEP = """ |
|
52 | 52 |
|
53 | 53 | You should first recall relevant past experiences and reason from our conversation history, then MUST summarize within <memory_recall> </memory_recall> tags like this: |
54 | 54 |
|
55 | | -<memory_analysis> |
56 | | -[Recall relevant past experiences and reason from our conversation history] |
57 | | -- Please summarize the most relavent memory for this step. |
58 | | -- Please explain why this memory is helpful for the next reflection and planning. |
59 | | -</memory_analysis> |
| 55 | +<memory> |
| 56 | +Look at the past observations and actions from our conversation history. |
| 57 | +- Please retrieve the most relavent memory for this step including the relevant observation and action in a RAG style along with the step number. |
| 58 | +- These memory should be helpful milestones to solve this task.git reset --soft HEAD~1 |
| 59 | +</memory> |
60 | 60 |
|
61 | 61 | After that, you should reflect on the last action and its outcome, then MUST summarize within <reflection> </reflection> tags like this: |
62 | 62 |
|
63 | 63 | <reflection> |
64 | | -[Reflect on the last action and its outcome] |
65 | | -- What did my last action accomplish? |
66 | | -- Was it successful or did it encounter issues? |
67 | | -- How does this outcome affect my plan? |
| 64 | +Reflect on the last action and its outcome |
| 65 | +- Did I complete the task goal? |
| 66 | +- Was last action successful or did it encounter issues? |
68 | 67 | - Am I making progress toward the task goal? |
| 68 | +- If the action did not go as expected and did not result in progress, provide constructive feedback to guide the next planning step. |
69 | 69 | </reflection> |
70 | 70 |
|
71 | | -Given from the analysis from the memory analysis and reflection, if we get the final answer, we should provide it within <answer> </answer> tags. |
72 | | -If we don't get the final answer, you should plan the next step based on memory and reflection, then MUST summarize within <plan> </think> tags like this: |
| 71 | +Given from the analysis from the memory and reflection, if we get the final answer, we should provide it within <answer> </answer> tags. |
| 72 | +If we don't get the final answer, you should plan the next step based on memory and reflection, then MUST summarize within <plan> </plan> tags like this: |
73 | 73 |
|
74 | 74 | <plan> |
75 | | -[Plan the next step based on memory and reflection] |
| 75 | +Plan the next step based on memory and reflection |
76 | 76 | - Given what I've learned, what should I do next? |
77 | 77 | - Please explain why this plan is helpful for the next action? |
78 | | -- How does this action fit into my overall strategy? |
79 | 78 | - What do I expect this action to achieve? |
80 | 79 | </plan> |
81 | 80 |
|
|
0 commit comments