16 tests covering every tool call parsing path: - Plain text (no tool call) streaming - Structured delta.tool_calls detection and fragment assembly - XML <tool_call>JSON</tool_call> detection via buffer - XML <function=name> tag detection via buffer - Whitespace before tool XML - Safety net (content then tool XML) - Parallel multi-tool calls - Reasoning token bypass (thinking models) - Reasoning then tool call - Empty response handling - Buffer prefix timeout (HTML not mistaken for tool) - Non-XML first char instant streaming - False positive rejection (<tool_tip> vs <tool_call>) - Arguments split across multiple chunks - auto_heal_tool_calls=False respects the flag - Metrics accumulation across tool iterations |
||
|---|---|---|
| .. | ||
| python | ||
| qlora | ||
| saving | ||
| sh | ||
| studio/install | ||
| utils | ||
| __init__.py | ||
| run_all.sh | ||
| test_get_model_name.py | ||
| test_model_registry.py | ||
| test_raw_text.py | ||
| test_streaming_tool_detection.py | ||