Skip to main content

Module verdict

Module verdict 

Source
Expand description

Structured answers extracted from free-form agent output.

Agents are asked to end with a fenced json block. They mostly do, and sometimes they narrate afterwards, emit two blocks, or wrap the object in prose. extract_json therefore scans for every balanced top-level object in the text and returns the last one that deserializes into the type the caller wants, rather than trusting a single regex to find the right one.

Structs§

FinalVote
A judge’s final vote, collected privately.
Finding
One review finding.
FixReport
The fixer’s response to a round of findings.
Position
A judge’s position during deliberation.
Ranking
A judge’s independent ranking of the candidates.
Rejection
A finding the fixer declined, and why.
Review
A reviewer’s report.
ReviewRevote
A reviewer seat’s revote after a split round, cast once it has read every seat’s findings and votes (still numbered, never named — see crate::prompt::review_reconsider).

Enums§

ReviewVote
A reviewer seat’s verdict on the patch, cast alongside its findings.
Severity
How bad a review finding is.

Functions§

extract_json
Extract the last balanced JSON object in text that parses as T.
section
Pull the text after a ## <heading> marker, to the end or the next heading.