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.

Enums§

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.