Original editorial illustration for this topic. Not an official product screenshot or a depiction of the exact reported event.
A language-model answer that looks like JSON is not necessarily valid for your program. It may contain extra keys, wrong data types or explanatory prose. Structured-output features can constrain responses to a specified schema in supported APIs; the application still needs semantic validation and error handling.
What to evaluate before choosing a tool
Choose a schema that is as small as the task permits. Required fields, enumerations and clear descriptions reduce ambiguity. Your code must validate business rules such as whether an invoice total equals the sum of its lines; JSON schema alone may not express every domain constraint.
Step-by-step workflow
- Define a minimal response shape with required keys and permitted enums.
- Supply an example input and a correct output only when it clarifies ambiguous values.
- Call the model using the supported structured-output or tool interface.
- Validate the parsed object and handle missing, refused or incomplete responses.
- Log failures and build a small evaluation set of messy real inputs.
Practical example
Here is an original example you can adapt to your own project. Its wording is a starting point, not a guarantee of a particular result.
Common mistakes and limitations
Do not build critical systems by regex-extracting a JSON-looking substring from arbitrary model prose. Do not assume a syntactically valid amount or date is factually correct.
When this approach makes sense
Schemas make integration easier, but accuracy still depends on data quality and validation. Keep machine-checked calculations in code.
Frequently asked questions
Does a valid JSON response guarantee a correct answer?
No. It guarantees a shape within the supported constraints, not factual or business correctness.
Should I calculate totals using the model?
Use application code for deterministic arithmetic and let the model extract or explain inputs.
Official sources and documentation
These primary references describe the products and concepts used in this guide. They are not evidence that Runway Presstoday independently tested every feature.