Refactored prompts for better maintainability

This commit is contained in:
Fahad
2025-06-14 11:09:13 +04:00
parent 94b2a4d407
commit 21037c2d81
15 changed files with 394 additions and 383 deletions

View File

@@ -11,7 +11,7 @@ if TYPE_CHECKING:
from tools.models import ToolModelCategory
from config import TEMPERATURE_ANALYTICAL
from prompts import ANALYZE_PROMPT
from systemprompts import ANALYZE_PROMPT
from .base import BaseTool, ToolRequest
from .models import ToolOutput

View File

@@ -11,7 +11,7 @@ if TYPE_CHECKING:
from tools.models import ToolModelCategory
from config import TEMPERATURE_BALANCED
from prompts import CHAT_PROMPT
from systemprompts import CHAT_PROMPT
from .base import BaseTool, ToolRequest
from .models import ToolOutput

View File

@@ -20,7 +20,7 @@ from mcp.types import TextContent
from pydantic import Field
from config import TEMPERATURE_ANALYTICAL
from prompts import CODEREVIEW_PROMPT
from systemprompts import CODEREVIEW_PROMPT
from .base import BaseTool, ToolRequest
from .models import ToolOutput

View File

@@ -11,7 +11,7 @@ if TYPE_CHECKING:
from tools.models import ToolModelCategory
from config import TEMPERATURE_ANALYTICAL
from prompts import DEBUG_ISSUE_PROMPT
from systemprompts import DEBUG_ISSUE_PROMPT
from .base import BaseTool, ToolRequest
from .models import ToolOutput

View File

@@ -17,7 +17,7 @@ from pydantic import Field
if TYPE_CHECKING:
from tools.models import ToolModelCategory
from prompts.tool_prompts import PRECOMMIT_PROMPT
from systemprompts import PRECOMMIT_PROMPT
from utils.file_utils import translate_file_paths, translate_path_for_environment
from utils.git_utils import find_git_repositories, get_git_status, run_git_command
from utils.token_utils import estimate_tokens

View File

@@ -11,7 +11,7 @@ if TYPE_CHECKING:
from tools.models import ToolModelCategory
from config import TEMPERATURE_CREATIVE
from prompts import THINKDEEP_PROMPT
from systemprompts import THINKDEEP_PROMPT
from .base import BaseTool, ToolRequest
from .models import ToolOutput