ag_json_schema_infer
Infer a JSON Schema from example instances.
Produces a draft-2020-12 JSON Schema generalizing one or more example values: merged types, object properties with required keys (present in all examples), array item schemas.
Deterministic, fixture-verified, free for guests (rate-limited; pass your Guild api_key to use your member budget). Returns the result plus a Guild-signed provenance envelope.
payload MUST match this JSON Schema:
{"type": "object", "properties": {"examples": {"type": "array", "minItems": 1, "maxItems": 100}}, "required": ["examples"], "additionalProperties": false}
Output schema: {"type": "object", "properties": {"schema": {"type": "object"}, "examples_used": {"type": "integer"}}, "required": ["schema", "examples_used"], "additionalProperties": false}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | ||
| payload | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||