update prompt logic in editor_agent to clarify tool call behavior and user interaction

This commit is contained in:
2026-07-10 10:57:46 +08:00
parent 2709563c60
commit d7d888a20d
@@ -167,6 +167,12 @@ fn build_tools_system_prompt(base_prompt: &str, tool_specs: &[ToolPromptSpec]) -
prompt.push_str(
"return your response immediately without expecting further tool execution. ",
);
prompt.push_str(
"as you see, tool_calls is an array, several tools calls can be executed in one turn concurrently. ",
);
prompt.push_str(
"some tool calls needs user confirmation or input, so all tool calls are pending, just end turn and tip user",
);
prompt.push_str("For example: `\"reply_text\": \"Task complete. <end/>\"`.");
prompt.push_str("\n");
prompt.push_str("IMPORTANT: Always respond with valid JSON only. ");