WIP: tool description / schema updates

This commit is contained in:
Fahad
2025-08-22 06:53:05 +04:00
parent 12542054a2
commit 6921616db3
16 changed files with 48 additions and 244 deletions

View File

@@ -191,23 +191,9 @@ class RefactorTool(WorkflowTool):
def get_description(self) -> str:
return (
"COMPREHENSIVE REFACTORING WORKFLOW - Step-by-step refactoring analysis with expert validation. "
"This tool guides you through a systematic investigation process where you:\n\n"
"1. Start with step 1: describe your refactoring investigation plan\n"
"2. STOP and investigate code structure, patterns, and potential improvements\n"
"3. Report findings in step 2 with concrete evidence from actual code analysis\n"
"4. Continue investigating between each step\n"
"5. Track findings, relevant files, and refactoring opportunities throughout\n"
"6. Update assessments as understanding evolves\n"
"7. Once investigation is complete, receive expert analysis\n\n"
"IMPORTANT: This tool enforces investigation between steps:\n"
"- After each call, you MUST investigate before calling again\n"
"- Each step must include NEW evidence from code examination\n"
"- No recursive calls without actual investigation work\n"
"- The tool will specify which step number to use next\n"
"- Follow the required_actions list for investigation guidance\n\n"
"Perfect for: comprehensive refactoring analysis, code smell detection, decomposition planning, "
"modernization opportunities, organization improvements, maintainability enhancements."
"Analyzes code for refactoring opportunities with systematic investigation. "
"Use for code smell detection, decomposition planning, modernization, and maintainability improvements. "
"Guides through structured analysis with expert validation."
)
def get_system_prompt(self) -> str: