refactor: remove unused TOOL_TRIGGERS dead code
- Remove unused TOOL_TRIGGERS dictionary from config.py - Remove associated test_tool_triggers test case - TOOL_TRIGGERS was not used anywhere in the codebase - MCP automatically discovers tools through descriptions in list_tools handler - All tests pass (64 tests), ruff clean, black formatted
This commit is contained in:
@@ -8,7 +8,6 @@ from config import (
|
||||
TEMPERATURE_ANALYTICAL,
|
||||
TEMPERATURE_BALANCED,
|
||||
TEMPERATURE_CREATIVE,
|
||||
TOOL_TRIGGERS,
|
||||
__author__,
|
||||
__updated__,
|
||||
__version__,
|
||||
@@ -40,16 +39,3 @@ class TestConfig:
|
||||
assert TEMPERATURE_ANALYTICAL == 0.2
|
||||
assert TEMPERATURE_BALANCED == 0.5
|
||||
assert TEMPERATURE_CREATIVE == 0.7
|
||||
|
||||
def test_tool_triggers(self):
|
||||
"""Test tool trigger phrases"""
|
||||
assert "think_deeper" in TOOL_TRIGGERS
|
||||
assert "review_code" in TOOL_TRIGGERS
|
||||
assert "debug_issue" in TOOL_TRIGGERS
|
||||
assert "analyze" in TOOL_TRIGGERS
|
||||
|
||||
# Check some specific triggers
|
||||
assert "ultrathink" in TOOL_TRIGGERS["think_deeper"]
|
||||
assert "extended thinking" in TOOL_TRIGGERS["think_deeper"]
|
||||
assert "find bugs" in TOOL_TRIGGERS["review_code"]
|
||||
assert "root cause" in TOOL_TRIGGERS["debug_issue"]
|
||||
|
||||
Reference in New Issue
Block a user