Avoid tools for direct answer prompts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user