Improved prompts to encourage better investigative flow

Improved abstraction
Fixed failing tests after refactor
This commit is contained in:
Fahad
2025-06-19 11:18:03 +04:00
parent 43485dadd6
commit b8c8e6f91e
15 changed files with 167 additions and 489 deletions

View File

@@ -557,13 +557,10 @@ class TestDebugToolIntegration:
try:
# Create mock arguments and request for model resolution
from tools.debug import DebugInvestigationRequest
mock_arguments = {"model": None} # No model specified, should fall back to DEFAULT_MODEL
mock_request = DebugInvestigationRequest(
step="Test step",
step_number=1,
total_steps=1,
next_step_required=False,
findings="Test findings"
step="Test step", step_number=1, total_steps=1, next_step_required=False, findings="Test findings"
)
# This should NOT raise a ModelContext error - the method should set up context itself
@@ -589,6 +586,7 @@ class TestDebugToolIntegration:
assert hasattr(tool, "_current_model_name")
# Should use DEFAULT_MODEL when no model specified
from config import DEFAULT_MODEL
assert tool._current_model_name == DEFAULT_MODEL
finally: