Generative AI Is 90% JSON: Writing Schemas and Descriptions That Remove the Extra Line
Ask AI to "just return X" and it still adds "Anything else?" at the end. When a program consumes AI output, defining the shape with JSON Schema works far better than polishing the prompt. Here is how to write schemas and use description as a per-field prompt, with an inquiry-classification example.
Nihei Tomotaka