MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / pickAgent

Function pickAgent

sources/agents/AgentRouter.cpp:73–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73QString pickAgent(
74 const QStringList &roster, const Context &ctx, const AgentFactory &factory)
75{
76 for (const QString &name : roster) {
77 const AgentConfig *cfg = factory.configByName(name);
78 if (!cfg)
79 continue; // stale roster entry — silently skip
80 if (matches(cfg->match, ctx))
81 return name;
82 }
83 return {};
84}
85
86} // namespace QodeAssist::AgentRouter

Callers 1

recomputeActiveMethod · 0.85

Calls 2

matchesFunction · 0.85
configByNameMethod · 0.80

Tested by

no test coverage detected