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

Function contains_any

core/src/agent/auto_delegation.rs:439–441  ·  view source on GitHub ↗
(text: &str, terms: &[&str])

Source from the content-addressed store, hash-verified

437}
438
439fn contains_any(text: &str, terms: &[&str]) -> bool {
440 terms.iter().any(|term| text.contains(term))
441}
442
443fn auto_description(agent: &AgentDefinition, prompt: &str) -> String {
444 format!(

Callers 2

builtin_confidenceFunction · 0.70
description_confidenceFunction · 0.70

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected