Avoid tools for direct answer prompts

This commit is contained in:
2026-05-22 21:31:50 +08:00
parent 1291281d7e
commit 282085c384
2 changed files with 11 additions and 0 deletions
+7
View File
@@ -14,3 +14,10 @@ def test_models_config_maps_roles_to_same_qwen_non_mtp_model():
assert roles["action"]["structured_output"] is True
assert roles["thinker"]["max_output_tokens"] == 8192
def test_action_prompt_forbids_tools_for_simple_arithmetic():
prompt = Path("prompts/roles/action.md").read_text()
assert "Return actions=[] for simple arithmetic" in prompt
assert "Do not run shell commands like" in prompt