(haystack: &str, needles: &[&str])
| 144 | } |
| 145 | |
| 146 | fn contains_any(haystack: &str, needles: &[&str]) -> bool { |
| 147 | needles.iter().any(|needle| haystack.contains(needle)) |
| 148 | } |
| 149 | |
| 150 | fn prompt_mentions_tool(prompt_lower: &str, tool_name_lower: &str) -> bool { |
| 151 | prompt_lower.contains(tool_name_lower) |
no test coverage detected