[router][tool call] Clean up redundant detect_format and has_tool_markers (#11270)

This commit is contained in:
Chang Su
2025-10-06 14:04:02 -07:00
committed by GitHub
parent 155cbb51f0
commit 466992b2d0
25 changed files with 73 additions and 114 deletions

View File

@@ -203,7 +203,7 @@ impl ToolParser for PythonicParser {
})
}
fn detect_format(&self, text: &str) -> bool {
fn has_tool_markers(&self, text: &str) -> bool {
let cleaned = Self::strip_special_tokens(text);
if pythonic_block_regex().is_match(&cleaned) {
return true;