mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-07-24 04:01:04 -04:00
53 lines
1.0 KiB
C++
53 lines
1.0 KiB
C++
// Copyright (C) 2026 Petr Mironychev
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// Additional attribution terms under GPLv3 §7(b) apply — see LICENSE
|
|
|
|
#pragma once
|
|
|
|
#include <QList>
|
|
#include <QString>
|
|
|
|
#include <optional>
|
|
|
|
namespace QodeAssist::Session {
|
|
|
|
struct ProjectInfo
|
|
{
|
|
bool available = false;
|
|
QString displayName;
|
|
QString sourceRoot;
|
|
std::optional<QString> buildDirectory;
|
|
|
|
bool operator==(const ProjectInfo &other) const = default;
|
|
};
|
|
|
|
struct InvokedSkill
|
|
{
|
|
QString name;
|
|
QString body;
|
|
|
|
bool operator==(const InvokedSkill &other) const = default;
|
|
};
|
|
|
|
struct TurnContextNeeds
|
|
{
|
|
bool systemPrompt = true;
|
|
|
|
bool operator==(const TurnContextNeeds &other) const = default;
|
|
};
|
|
|
|
struct TurnContext
|
|
{
|
|
QString basePrompt;
|
|
ProjectInfo project;
|
|
QString alwaysOnSkills;
|
|
QString skillsCatalog;
|
|
QList<InvokedSkill> invokedSkills;
|
|
|
|
bool operator==(const TurnContext &other) const = default;
|
|
};
|
|
|
|
QString renderSystemPrompt(const TurnContext &context);
|
|
|
|
} // namespace QodeAssist::Session
|