[router][tool parser] Modify tool parser to return both normal text and tool calls (non-stream) (#10995)

This commit is contained in:
Chang Su
2025-09-27 15:10:17 -07:00
committed by GitHub
parent f6bc3f529b
commit c1c8dd1dd0
30 changed files with 1467 additions and 934 deletions

View File

@@ -409,7 +409,7 @@ fn bench_concurrent_parsing(c: &mut Criterion) {
let result =
rt.block_on(async { parser.parse_complete(input).await });
if let Ok(tools) = result {
if let Ok((_normal_text, tools)) = result {
total_p.fetch_add(tools.len() as u64, Ordering::Relaxed);
}
}