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

Method clearMessages

ChatView/ClientInterface.cpp:411–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409}
410
411void ClientInterface::clearMessages()
412{
413 const auto providerName = Settings::generalSettings().caProvider();
414 auto *provider = PluginLLMCore::ProvidersManager::instance().getProviderByName(providerName);
415
416 if (provider && !m_chatFilePath.isEmpty()
417 && provider->capabilities().testFlag(PluginLLMCore::ProviderCapability::Tools)
418 && provider->toolsManager()) {
419 if (auto *todoTool = qobject_cast<QodeAssist::Tools::TodoTool *>(
420 provider->toolsManager()->tool("todo_tool"))) {
421 todoTool->clearSession(m_chatFilePath);
422 }
423 }
424
425 m_chatModel->clear();
426}
427
428void ClientInterface::cancelRequest()
429{

Callers

nothing calls this directly

Calls 6

getProviderByNameMethod · 0.80
isEmptyMethod · 0.45
capabilitiesMethod · 0.45
toolsManagerMethod · 0.45
clearSessionMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected