Skip to main content

Module validation

Module validation 

Source
Expand description

Output schema validation for spec agent outputs.

This module provides JSON Schema validation for agent outputs when specs define an output_schema field in their frontmatter.

§Doc Audit

  • audited: 2026-01-29
  • docs: reference/schema.md
  • ignore: false

Structs§

ValidationResult
Result of validating agent output against a JSON schema

Functions§

extract_json_from_output
Extract JSON from agent output text.
generate_schema_prompt_section
Generate an “Output Format” prompt section from a JSON schema.
load_schema
Load and compile a JSON schema from a file path
validate_agent_output
Validate agent output against a JSON schema file.
validate_spec_output_from_log
Read the agent log file for a spec and validate its output against the schema.