Skip to main content

parse_claude_output_opts

Function parse_claude_output_opts 

Source
pub fn parse_claude_output_opts(
    stdout: &str,
    tolerate_max_turns: bool,
) -> Result<ClaudeResult, AppError>
Expand description

Like parse_claude_output but lets the caller decide whether a terminal_reason: "max_turns" result is fatal. ingest passes true (a partial extraction with a usable structured value is acceptable); enrich and the default keep false (max_turns means hooks are consuming turns — a misconfiguration to surface rather than silently accept).