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

Function explicit_agent_confidence

core/src/agent/auto_delegation.rs:358–369  ·  view source on GitHub ↗
(agent_name: &str, prompt: &str, explicit_target: Option<&str>)

Source from the content-addressed store, hash-verified

356}
357
358fn explicit_agent_confidence(agent_name: &str, prompt: &str, explicit_target: Option<&str>) -> f32 {
359 let name = agent_name.to_lowercase();
360 if explicit_target
361 .map(|target| agent_name_matches(agent_name, target))
362 .unwrap_or(false)
363 || contains_explicit_reference(prompt, &name)
364 {
365 0.96
366 } else {
367 0.0
368 }
369}
370
371fn description_confidence(description: &str, prompt: &str) -> f32 {
372 let shared_terms = significant_terms(description)

Callers 1

score_agent_for_promptFunction · 0.85

Calls 2

agent_name_matchesFunction · 0.85

Tested by

no test coverage detected