refactor: Decouple LLMClientInterface from ProvidersManager (#120)

This will be needed for tests.
This commit is contained in:
Povilas Kanapickas
2025-03-10 11:40:51 +02:00
committed by GitHub
parent 98e1047bf1
commit 58c3e26e7f
8 changed files with 59 additions and 9 deletions

View File

@ -27,13 +27,15 @@
#include "LSPCompletion.hpp"
#include <languageclient/client.h>
#include <llmcore/IPromptProvider.hpp>
#include <llmcore/IProviderRegistry.hpp>
namespace QodeAssist {
class QodeAssistClient : public LanguageClient::Client
{
public:
explicit QodeAssistClient(LLMCore::IPromptProvider *promptProvider);
explicit QodeAssistClient(
LLMCore::IProviderRegistry &providerRegistry, LLMCore::IPromptProvider *promptProvider);
~QodeAssistClient() override;
void openDocument(TextEditor::TextDocument *document) override;