pub fn has_explicit_tool_request(user_message: &str) -> boolExpand description
Returns true when a user message explicitly requests tool invocation.
Patterns are matched case-insensitively against the user message text. This is intentionally limited to unambiguous phrasings to avoid false positives that would incorrectly bypass the utility gate.
Safe to call on user-supplied text — does NOT bypass prompt-injection defences because those are enforced on tool OUTPUT paths, not on gate routing decisions.