BAML
Tool
BAML is a small language for declaring the exact shape of answer you want back from an AI model. Its runtime repairs badly formatted JSON, so your app always gets data in the promised shape.
Theo's current stance
Theo used it with GPT-OSS-120B and it just worked; without it, that model formatted JSON wrong about half the time. The catch is that the repairs take time.
Try it
- When an agent-built feature needs structured answers from a regular LLM, ask your agent whether BAML fits.
- If outputs break your app now and then, ask whether the model is returning malformed JSON.
Where he said it
8:56
And when I tried to move off BAML for another thing I was doing, I learned that apparently GPOSS120B doesn't format JSON correctly half the time. One of the many things they do with BAML is in their runtime, they fix the mal formatting in the JSON outputs to make sure it is guaranteed to match…
Theo Daily is unofficial and not affiliated with Theo or t3.gg. Written by Claude Opus 5.5 from each video's transcript.