validate_extraction_schema
Validates extracted data against a defined schema to ensure it contains only requested fields without commentary or evaluative language.
Instructions
Validate that extraction output follows a strict schema.
Detects parenthetical comments, notes sections, evaluative language. Use when user requests pure data extraction.
Args: output: The extraction output to validate. fields: Expected field names in output. allow_commentary: Whether commentary is allowed (default: False).
Returns: Extraction schema validation result.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | Yes | ||
| fields | Yes | ||
| allow_commentary | No |