pub fn parse_json<T: DeserializeOwned>(text: &str) -> Result<T, ParseJsonError>Expand description
Parse LLM output into a typed struct using extract_json + serde_json.
Returns a deserialization error if no JSON is found or parsing fails.
pub fn parse_json<T: DeserializeOwned>(text: &str) -> Result<T, ParseJsonError>Parse LLM output into a typed struct using extract_json + serde_json.
Returns a deserialization error if no JSON is found or parsing fails.