Skip to main content

Module parser

Module parser 

Source
Expand description

Response parsing utilities for agent output.

Pure functions for extracting structured data (YAML blocks, PR URLs, review issues, verification results) from agent text responses. These are decoupled from the Runner to keep parsing logic independently testable.

Functions§

extract_pr_number
Extracts the PR number from a GitHub PR URL.
extract_pr_url
Extracts a GitHub PR URL from text.
extract_yaml_block
Extracts a YAML code block from a response string.
parse_review_issues
Parses review issues from the agent’s YAML response.
parse_verification_result
Parses verification results from the agent’s YAML response.