mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-07-24 12:11:04 -04:00
feat: add support acp in common chat (#369)
This commit is contained in:
@@ -4,9 +4,18 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <optional>
|
||||
|
||||
#include <QHash>
|
||||
#include <QObject>
|
||||
#include <QStringList>
|
||||
|
||||
#include "acp/AgentDefinition.hpp"
|
||||
|
||||
namespace QodeAssist::Acp {
|
||||
class AgentCatalogStore;
|
||||
}
|
||||
|
||||
namespace QodeAssist::Chat {
|
||||
|
||||
class ChatConfigurationController : public QObject
|
||||
@@ -19,18 +28,30 @@ public:
|
||||
QStringList availableConfigurations() const;
|
||||
QString currentConfiguration() const;
|
||||
|
||||
void setAgentCatalog(Acp::AgentCatalogStore *store);
|
||||
|
||||
void loadAvailableConfigurations();
|
||||
void applyConfiguration(const QString &configName);
|
||||
|
||||
void setBoundAgent(const Acp::AgentDefinition &agent);
|
||||
void clearBoundAgent();
|
||||
|
||||
std::optional<Acp::AgentDefinition> agentById(const QString &agentId);
|
||||
|
||||
signals:
|
||||
void availableConfigurationsChanged();
|
||||
void currentConfigurationChanged();
|
||||
void agentRequested(const QodeAssist::Acp::AgentDefinition &agent);
|
||||
void llmRequested();
|
||||
|
||||
private:
|
||||
void updateCurrentConfiguration();
|
||||
|
||||
Acp::AgentCatalogStore *m_agents = nullptr;
|
||||
QStringList m_availableConfigurations;
|
||||
QHash<QString, QString> m_agentIdByEntry;
|
||||
QString m_currentConfiguration;
|
||||
QString m_boundAgentName;
|
||||
};
|
||||
|
||||
} // namespace QodeAssist::Chat
|
||||
|
||||
Reference in New Issue
Block a user