Skip to main content

parse

Function parse 

Source
pub fn parse(
    provider: ProviderKind,
    raw_output: &str,
) -> (Vec<ParsedToolCall>, Vec<ParseError>)
Expand description

Parse the LLM’s raw output for the given provider.

Returns the parsed calls plus any non-fatal errors encountered. A fully-malformed input yields Ok((vec![], errors)) rather than an Err — the caller (typically the harness loop or external agent) decides whether to abort or retry.