Once a learning app or editorial system processes AI outputs further, polished prose is no longer enough: the answer has to sit in its own field, the method in numbered steps and the unit separate from the value. JSON Schema for maths content makes that structure binding. In the workshop you design schemas for exercises, solutions, hint levels and assessments, use the structured output modes of common model APIs and build validation that checks the maths as well. Broken formulas, missing fields and wrong results stop slipping unnoticed into your product.
Who the structured outputs workshop is for
Developers, content engineers and prompt owners at edtech companies, publishers and university projects who process AI outputs automatically. Basic knowledge of JSON and one programming language is assumed.
What you'll walk away with
- Design schemas for exercises, solutions, hint levels and assessments with suitable types, required fields and enumerations
- Model answer types such as numbers with tolerance, expressions, intervals, sets and quantities with units unambiguously
- Encode LaTeX formulas correctly in JSON and avoid typical problems with backslashes and special characters
- Request structured outputs through different providers' APIs and validate responses automatically
- Add content checks that go beyond the schema, such as recomputing the answer with SymPy
Typical scenarios
- An exercise generator returns each item with answer, solution steps, difficulty and competence tag as JSON that imports into the exercise database without manual clean-up.
- An AI tutor returns hints at three levels in separate fields, so the app can show them one after another and evaluate each level on its own.
- A marking aid scores student answers with points, the detected error type and a reason; responses with missing fields are requested again automatically.
Does this fit your team?
Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.
What the structured outputs workshop covers
- Why prose is not enoughTypical breaks between AI output and downstream processing: missing fields, mixed-up units, mangled formulas.
- Schema design for mathsExercise, answer, steps, answer types, units and tolerances as a schema, with required fields, enumerations and clear descriptions.
- Formulas and special charactersLaTeX and MathML inside JSON strings, escaping, character encoding and tests that catch broken formulas early.
- Requesting structured outputsSchema-bound outputs and tool calls with different providers, the limits of each mode and sensible retries.
- Validation beyond the schemaRecompute answers with SymPy, check that numbers fall within plausible ranges and log failures traceably.
- Maintaining and versioning schemasSchema changes, backward compatibility and tests, so that prompts and product can evolve together.
Before the structured outputs workshop: prerequisites
- Basic knowledge of JSON and of Python or JavaScript
- Access to at least one model API or a test environment of your product
- Examples of content you currently generate as prose and will need in structured form
Materials you keep
- Schemas for exercises, solutions, hints and assessments as a starting point
- A validation script with schema checks and mathematical recomputation
- A checklist for LaTeX in JSON and for robust structured outputs