Skip to main content

strip_packaging

Function strip_packaging 

Source
fn strip_packaging(body: &str) -> String
Expand description

Remove a surrounding code fence and any prose either side of the object.

Models introduce a tool call conversationally (“Sure — I’ll read it:”) or wrap it in markdown out of habit. Both leave the JSON itself intact.