refactor: add to template agent roles

This commit is contained in:
Petr Mironychev
2026-06-04 16:21:34 +02:00
parent c151c5030b
commit 3179c0c358
113 changed files with 383 additions and 5292 deletions

View File

@@ -248,6 +248,15 @@ void AgentFactory::setModelOverride(const QString &agentName, const QString &mod
saveModelOverrides();
}
QString AgentFactory::effectiveModel(const QString &agentName) const
{
const QString ov = m_modelOverrides.value(agentName);
if (!ov.isEmpty())
return ov;
const AgentConfig *cfg = configByName(agentName);
return cfg ? cfg->model : QString();
}
namespace {
QString modelOverridesPath()
{