mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-11-13 13:32:55 -05:00
fix: Build error and tool guideline
This commit is contained in:
@ -87,17 +87,12 @@ void ClientInterface::sendMessage(
|
|||||||
QString systemPrompt = chatAssistantSettings.systemPrompt();
|
QString systemPrompt = chatAssistantSettings.systemPrompt();
|
||||||
|
|
||||||
if (Settings::generalSettings().useTools()) {
|
if (Settings::generalSettings().useTools()) {
|
||||||
systemPrompt
|
systemPrompt += "\n\n# Tool Usage Guidelines\n\n"
|
||||||
+= "\n\n# Tool Usage Guidelines\n\n"
|
"**Multi-tool workflows:**\n"
|
||||||
"**Workflow patterns:**\n"
|
"- Code structure: search_project (symbol mode) → find_and_read_file\n"
|
||||||
"- Code structure: find_cpp_symbol → read_files_by_path\n"
|
"- Fix errors: get_issues_list → find_and_read_file → edit\n"
|
||||||
"- Find usages: find_cpp_symbol → search_in_project\n"
|
"- Verify changes: edit → build_project → get_issues_list\n"
|
||||||
"**Best practices:**\n"
|
"- find_and_read_file supports absolute paths\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";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto project = LLMCore::RulesLoader::getActiveProject();
|
auto project = LLMCore::RulesLoader::getActiveProject();
|
||||||
|
|||||||
@ -121,7 +121,7 @@ QFuture<QString> BuildProjectTool::executeAsync(const QJsonObject &input)
|
|||||||
|
|
||||||
return QtFuture::makeReadyFuture(
|
return QtFuture::makeReadyFuture(
|
||||||
QString("Build %1 started for project '%2'. Check the Compile Output pane for progress.")
|
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()));
|
.arg(project->displayName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user