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§
- Final
Vote - 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.
- Review
Revote - 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§
- Review
Vote - 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
textthat parses asT. - section
- Pull the text after a
## <heading>marker, to the end or the next heading.