mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2026-05-30 19:09:14 -04:00
31 lines
563 B
C++
31 lines
563 B
C++
// Copyright (C) 2024-2026 Petr Mironychev
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QString>
|
|
#include <QStringList>
|
|
|
|
#include "AgentConfig.hpp"
|
|
|
|
namespace QodeAssist {
|
|
|
|
class AgentFactory;
|
|
|
|
namespace AgentRouter {
|
|
|
|
struct Context
|
|
{
|
|
QString filePath;
|
|
QString projectName;
|
|
};
|
|
|
|
[[nodiscard]] bool matches(const AgentConfig::Match &match, const Context &ctx);
|
|
|
|
[[nodiscard]] QString pickAgent(
|
|
const QStringList &roster, const Context &ctx, const AgentFactory &factory);
|
|
|
|
} // namespace AgentRouter
|
|
|
|
} // namespace QodeAssist
|