Skip to main content

validate_agent_output

Function validate_agent_output 

Source
pub fn validate_agent_output(
    spec_id: &str,
    schema_path: &Path,
    agent_output: &str,
) -> Result<ValidationResult>
Expand description

Validate agent output against a JSON schema file.

§Arguments

  • spec_id - The spec ID (for error messages)
  • schema_path - Path to the JSON schema file
  • agent_output - The raw output from the agent

§Returns

  • ValidationResult with validation status and any errors