repair
One-shot repair: return corrected values that would make failing data valid under the Blueprint. Use repair_path to see the steps instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | GeodesicAI API key (gai_...) | |
| blueprint | No | Blueprint name (workflow_name) to use | |
| structured_data | Yes | The document's extracted fields as key/value pairs. Keys are open by design - your Blueprint's rules define what is checked | |
| derivation_rules | No | Math rules as objects. Types: add, subtract, multiply, divide, round, copy, sum (multi-operand), items_multiply, items_sum. Each needs 'type' plus its fields; see the blueprint_guide prompt | |
| formal_constraints | No | Constraint objects. Types incl. magnitude_anchor {field,min,max}, relative_anchor {field,reference_field,ratio_min,ratio_max}, max_action_threshold {field,threshold,on_violation}, required_fields {fields}, equals, range, in_set, regex_match, items_magnitude_anchor; see the blueprint_guide prompt |