MCPcopy Create free account
hub / github.com/AI45Lab/Code / agent_name_matches

Function agent_name_matches

core/src/agent/auto_delegation.rs:269–282  ·  view source on GitHub ↗
(agent_name: &str, candidate: &str)

Source from the content-addressed store, hash-verified

267}
268
269fn agent_name_matches(agent_name: &str, candidate: &str) -> bool {
270 let agent = agent_name.to_ascii_lowercase();
271 let candidate = candidate.to_ascii_lowercase();
272 agent == candidate
273 || matches!(
274 (agent.as_str(), candidate.as_str()),
275 ("general", "general-purpose")
276 | ("general", "general_purpose")
277 | ("general", "generalpurpose")
278 | ("verification", "verify")
279 | ("review", "code-review")
280 | ("review", "code_reviewer")
281 )
282}
283
284fn builtin_confidence(name: &str, prompt: &str) -> f32 {
285 match name {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected