refactor: Combine bool functions with capabilities to flag

This commit is contained in:
Petr Mironychev
2026-03-30 18:23:32 +02:00
parent 545b8ed000
commit 1c12d6d45c
23 changed files with 59 additions and 120 deletions

View File

@ -18,7 +18,7 @@
*/
#include <iostream>
#include <llmcore/ContextData.hpp>
#include <pluginllmcore/ContextData.hpp>
#include <QString>
QT_BEGIN_NAMESPACE
@ -61,14 +61,14 @@ std::ostream &operator<<(std::ostream &out, const std::optional<T> &value)
namespace QodeAssist::LLMCore {
inline std::ostream &operator<<(std::ostream &out, const Message &value)
inline std::ostream &operator<<(std::ostream &out, const PluginLLMCore::Message &value)
{
out << "Message{"
<< "role=" << value.role << "content=" << value.content << "}";
return out;
}
inline std::ostream &operator<<(std::ostream &out, const ContextData &value)
inline std::ostream &operator<<(std::ostream &out, const PluginLLMCore::ContextData &value)
{
out << "ContextData{"
<< "\n systemPrompt=" << value.systemPrompt << "\n prefix=" << value.prefix