Extract fields by regex, Jev picks the right match
jev_extractExtract structured fields from documents: regex finds candidate values, AI selects the true one, and the result is returned verbatim. Ambiguous picks are flagged; no matches means no API call.
Instructions
Extract structured fields from a document with TypeSafe Jev as the picker, not the generator: your regex finds candidate substrings in code, Jev chooses which candidate is the field's true value, and the result is returned verbatim — never model-generated text. Fields with zero regex matches never reach the model (not_found); if no field has matches, no API call is made. Ambiguous picks are flagged for review. Use for prices, dates, version numbers, IDs, and anything with a recognizable shape; keep documents bounded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Fields to extract. Up to 32 per call, all judged in one request. | |
| purpose | No | What the extraction is for; shared across fields. | |
| document | Yes | The document to extract from. Rejected above 50,000 characters. | |
| auto_accept | No | Minimum top probability for auto. Default 0.85. | |
| minimum_margin | No | Minimum winner-to-runner-up gap for auto. Default 0.5. |