Skip to main content

parse

pub fn parse(
    body: &str,
    markers: &ToolCallMarkers,
    shape: &PairedQuoteShape,
) -> Result<Vec<ParsedToolCall>, PairedQuoteFailure>
Expand description

ยงErrors

Returns PairedQuoteFailure when the body looks like a paired-quote tool-call block (matches the open marker and separator) but contains a structural issue: empty key, unclosed quoted value, unexpected character after a value, or an unfinished argument block.