build_template
Builds a verification template (a JSON Schema plus cross-field rules and bounds) from one to ten sample outputs, by a fixed procedure (no model). Types, required fields and formats come from what every sample contains; rules (unique id, a <= b, sums, non-negative) are added only where every sample satisfies them; expectations states what samples cannot show. Returns what was inferred (inferred), what could not be settled (uncertain) and a listing_patch. Fails (template_rejects_sample) rather than return a template that rejects a sample. Stores nothing. Deterministic. Free, no payment or account required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional title for the schema. | |
| samples | No | One to 10 example outputs of your service, as JSON (at most 32 KB in all). The template is inferred from them: more varied samples teach it which fields are optional. | |
| agent_id | No | Optional label for yourself (usage statistics only). | |
| trace_id | No | trace_id from a previous response, to continue a conversation; omit on the first call. | |
| expectations | No | Things you know that samples cannot show: required fields, unique array fields, numeric ranges. |