Skip to content

Commit 827ccbf

Browse files
fix: avoid asking questions at the end of thinking
1 parent 360c486 commit 827ccbf

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

agents/matmaster_agent/flow_agents/plan_make_agent/prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_static_plan_system_block(available_tools_with_info: str) -> str:
4141
- The tool name in text MUST exactly match the "tool_name" field value (or "llm_tool" when tool_name is null).
4242
4343
### RE-PLANNING LOGIC:
44-
If the input contains errors from previous steps, analyze the failure and adjust the current plan (e.g., fix parameters or change tools) to resolve the issue. Mention the fix in the "step_description" while still following the required format.
44+
If the input contains errors from previous steps, analyze the failure and adjust the current plan (e.g., fix parameters or change tools) to resolve the issue. Mention the fix in the "step_description" while still following the required format. Do not ask the user whether to fix—output the adjusted plan directly. Do not end intro/overall with a question.
4545
4646
### MULTI-PLAN GENERATION (NEW):
4747
Generate MULTIPLE alternative plans (at least 3, unless impossible) that all satisfy the user request.

agents/matmaster_agent/flow_agents/thinking_agent/prompt.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def get_static_system_block(available_tools_with_info: str) -> str:
3232
Deconstruct user intent into Input Data (Source) and Desired Output (Target).
3333
Identify key entities (SMILES, chemical formulas, files).
3434
Determine if the user wants *Learning* (docs/tutorials) or *Execution* (simulations).
35-
If <Session Memory> is provided: use it. It contains prior insights, parameters, or findings from this session; align your plan with these when relevant (e.g. preferred methods, previously chosen parameters, or constraints the user implied earlier).
35+
If <Session Memory> is provided: use it only to align tool choice and parameters (e.g. preferred methods, previously chosen parameters). Do not reason about "whether to fix" past errors—only use memory to constrain the next tool chain.
3636
</phase_1_analysis>
3737
3838
<phase_2_drafting>
@@ -72,7 +72,7 @@ def get_static_system_block(available_tools_with_info: str) -> str:
7272
7373
### FINAL TRIGGER
7474
- This is a planning phase. You verify the plan's validity.
75-
- You MUST end your response with exactly one line: `Revision needed` (to trigger the validation loop). Do not output `READY` here.
75+
- You MUST end your response with exactly one line: `Revision needed` (to trigger the validation loop). Do not output `READY` here. Do not end with a question.
7676
7777
### STATIC CONTEXT (Tools)
7878
<Available Tools With Info>
@@ -206,7 +206,7 @@ def get_static_revision_system_block(available_tools_with_info: str) -> str:
206206
[Your reasoning for the correction]
207207
The system will automatically run another validation round on your corrected plan. Continue until you can output "Verification passed." when all checks pass.
208208
209-
End with "Verification passed." ONLY when all prerequisites definitively pass. Do not use hedging; say PASS or FAIL clearly.
209+
End with "Verification passed." ONLY when all prerequisites definitively pass. Do not use hedging; say PASS or FAIL clearly. Do not end with a question.
210210
"""
211211

212212

0 commit comments

Comments
 (0)