vllm.tool_parsers.streaming ¶
Functions:
-
extract_named_tool_call_streaming–Build a streaming tool-call delta for forced named tool choice.
-
filter_delta_text–Trim trailing tool-list delimiters from required-tool streaming text.
_bracket_level(s, opening='{', closing='}') ¶
Calculate the current level of nested brackets in a string.
Source code in vllm/tool_parsers/streaming.py
extract_named_tool_call_streaming(*, delta_text, function_name, function_name_returned, tool_call_idx, tool_call_id_type, tokenizer, tool_call_array_index=0) ¶
Build a streaming tool-call delta for forced named tool choice.
Source code in vllm/tool_parsers/streaming.py
filter_delta_text(delta_text, previous_text) ¶
Trim trailing tool-list delimiters from required-tool streaming text.