MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / getSystemPromptWithLinkedFiles

Method getSystemPromptWithLinkedFiles

ChatView/ClientInterface.cpp:489–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489QString ClientInterface::getSystemPromptWithLinkedFiles(
490 const QString &basePrompt, const QList<QString> &linkedFiles) const
491{
492 QString updatedPrompt = basePrompt;
493
494 if (!linkedFiles.isEmpty()) {
495 updatedPrompt += "\n\nLinked files for reference:\n";
496
497 auto contentFiles = m_contextManager->getContentFiles(linkedFiles);
498 for (const auto &file : contentFiles) {
499 updatedPrompt += QString("\nFile: %1\nContent:\n%2\n").arg(file.filename, file.content);
500 }
501 }
502
503 return updatedPrompt;
504}
505
506Context::ContextManager *ClientInterface::contextManager() const
507{

Callers

nothing calls this directly

Calls 2

getContentFilesMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected