| 487 | } |
| 488 | |
| 489 | QString 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 | |
| 506 | Context::ContextManager *ClientInterface::contextManager() const |
| 507 | { |
nothing calls this directly
no test coverage detected