Skip to main content

parse_llama_tool_calls

Function parse_llama_tool_calls 

Source
pub fn parse_llama_tool_calls(text: &str) -> Result<Vec<ToolCall>, Error>
Expand description

Parse Llama 3.1+ tool calls.

Format: <|python_tag|>{"name": "func", "parameters": {...}} May contain multiple JSON objects separated by newlines.