A tool parser that matches its marker but extracts no calls returns 200 with no diagnostic
System Info
- TensorRT-LLM: 1.3.0rc23 (built from
f20ea652); behaviour re-checked againstmain@fbda11f5 - GPU: NVIDIA GeForce RTX 5090 (sm_120), driver 595.71.05
- PyTorch 2.11.0+cu130, CUDA 13.0, Python 3.12.13
- Ubuntu 25.10, kernel 6.17.0-41-generic
- Backend: PyTorch; single GPU, no TP/PP
- Model where observed: Qwen3.6-35B-A3B-NVFP4 with FP8 KV cache (where model-specific)
Who can help?
No response
Reproduction
When a tool parser's has_tool_call(text) is true but it extracts zero calls, the request returns
200 with an empty tool_calls array. From the client's perspective that is indistinguishable from a
model that chose not to call a tool, and the call is silently lost.
Some parsers do log something — Qwen3ToolParser.detect_and_parse() reports a JSON decode failure,
for example — but not all do, and none of those messages name the configured parser or point at
--tool_parser.
Expected behavior
A tool call the parser could not extract is surfaced in the logs with enough context to diagnose it.
actual behavior
The request returns 200 with an empty tool_calls array. Some parsers log a decode failure, but none name the configured parser or point at --tool_parser, so the call is lost with no actionable signal.
additional notes
Emit one logger.warning on that path in the Chat Completions and Responses handlers, naming the
configured parser and listing the plausible causes: parser/template mismatch, malformed or truncated
output, an empty tool block, or arguments the parser rejected.
Log-only; no API, response-shape, or parsing change. Non-streaming path only, where the full text is available to test.
Questions for maintainers
- Is
warningthe right level, or would you preferdebugor an existing verbosity gate? - Would you rather this lived in a shared helper than in both handlers?
Per CONTRIBUTING.md this Issue Request precedes the patch, which is ready and applies cleanly to main @ fbda11f5.
Opened #18865 for this. It adds a single logger.warning on the non-streaming path of both the Chat Completions and Responses handlers when has_tool_call() is true but no call was extracted, naming the configured parser and pointing at --tool_parser, with the likely causes listed. Log-only, no response-shape or parsing change, streaming untouched.
On the open question about the log level: the PR uses warning; happy to switch to warning_once or debug if the maintainers prefer.