Skip to main content

parse_tool_calls

Function parse_tool_calls 

Source
pub fn parse_tool_calls(text: &str) -> (Vec<ToolCall>, Vec<String>)
Expand description

Parse <tool_call>...</tool_call> blocks from model output.

Returns a list of parsed tool calls and the remaining text fragments.