Skip to main content

parse_facts

Function parse_facts 

Source
pub fn parse_facts(response: &ModelResponse) -> Extraction
Expand description

Parse a fact-extraction reply: the record_facts tool call if present, otherwise JSON in the text ({"facts": [...]} or a bare array, code fences allowed).