Skip to main content

parse

Function parse 

Source
pub fn parse(
    body: &str,
    shape: &JsonObjectShape,
) -> Result<Vec<ParsedToolCall>, JsonObjectFailure>
Expand description

ยงErrors

Returns JsonObjectFailure when the body contains a JSON object that looks like a tool call (matches the open brace at start) but the JSON itself is malformed.