mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-11-13 05:22:49 -05:00
fix: Build error and tool guideline
This commit is contained in:
@ -87,17 +87,12 @@ void ClientInterface::sendMessage(
|
||||
QString systemPrompt = chatAssistantSettings.systemPrompt();
|
||||
|
||||
if (Settings::generalSettings().useTools()) {
|
||||
systemPrompt
|
||||
+= "\n\n# Tool Usage Guidelines\n\n"
|
||||
"**Workflow patterns:**\n"
|
||||
"- Code structure: find_cpp_symbol → read_files_by_path\n"
|
||||
"- Find usages: find_cpp_symbol → search_in_project\n"
|
||||
"**Best practices:**\n"
|
||||
"- Prefer find_cpp_symbol over search_in_project for code symbols\n"
|
||||
"- Read once, edit comprehensively (atomic edits)\n"
|
||||
"- Use read_visible_files for current editor context\n"
|
||||
"- Verify before editing\n"
|
||||
"- Use file patterns (*.cpp, *.h) to narrow searches\n";
|
||||
systemPrompt += "\n\n# Tool Usage Guidelines\n\n"
|
||||
"**Multi-tool workflows:**\n"
|
||||
"- Code structure: search_project (symbol mode) → find_and_read_file\n"
|
||||
"- Fix errors: get_issues_list → find_and_read_file → edit\n"
|
||||
"- Verify changes: edit → build_project → get_issues_list\n"
|
||||
"- find_and_read_file supports absolute paths\n";
|
||||
}
|
||||
|
||||
auto project = LLMCore::RulesLoader::getActiveProject();
|
||||
|
||||
@ -121,7 +121,7 @@ QFuture<QString> BuildProjectTool::executeAsync(const QJsonObject &input)
|
||||
|
||||
return QtFuture::makeReadyFuture(
|
||||
QString("Build %1 started for project '%2'. Check the Compile Output pane for progress.")
|
||||
.arg(rebuild ? "rebuild" : "build")
|
||||
.arg(rebuild ? QString("rebuild") : QString("build"))
|
||||
.arg(project->displayName()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user