SAGE docs

Agentic APIs for schema-driven editing.

The pattern

  1. Draft: the model proposes a full artifact (e.g., a Howgrams diagram JSON document).
  2. Validate: validate the output against your schema and invariants.
  3. Reflect: if validation fails, feed the error messages back to the model.
  4. Revise: the model outputs a corrected full artifact.

Why this works