mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-06-14 02:09:22 -04:00
refactor: Remove project rules
This commit is contained in:
@@ -15,9 +15,12 @@ class SystemPromptBuilder : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static constexpr int kAgentPriority = 0;
|
||||
static constexpr int kDefaultPriority = 100;
|
||||
|
||||
explicit SystemPromptBuilder(QObject *parent = nullptr);
|
||||
|
||||
void setLayer(const QString &name, const QString &text);
|
||||
void setLayer(const QString &name, const QString &text, int priority = kDefaultPriority);
|
||||
void clearLayer(const QString &name);
|
||||
void clear();
|
||||
|
||||
@@ -31,7 +34,14 @@ signals:
|
||||
void layersChanged();
|
||||
|
||||
private:
|
||||
QVector<QPair<QString, QString>> m_layers;
|
||||
struct Layer
|
||||
{
|
||||
QString name;
|
||||
QString text;
|
||||
int priority = kDefaultPriority;
|
||||
};
|
||||
|
||||
QVector<Layer> m_layers;
|
||||
};
|
||||
|
||||
} // namespace QodeAssist
|
||||
|
||||
Reference in New Issue
Block a user