Skip to main content

parse_extraction_text

Function parse_extraction_text 

Source
pub fn parse_extraction_text(text: &str) -> Result<ExtractionResult, AppError>
Expand description

Parses the agent_message text as an ExtractionResult JSON payload.

The schema is shared by both enrich and ingest --mode codex; the text is the JSON value the assistant returned, not a wrapper object.