Theo-brainUnofficial. Not affiliated with Theo or t3.gg.
Sign inYou

BAML

Tool

BAML is a small language for declaring the exact shape of data you want back from an LLM. Its runtime repairs badly formatted JSON so you always get that shape. The catch is that the repairs take time.

Theo's current stance

It just worked for Theo with GPT-OSS-120B. Without it, he found that model formats JSON wrong about half the time.

Try it

  1. When an agent-built feature needs structured answers from a regular LLM, ask your agent whether BAML fits.
  2. If outputs break your app now and then, ask whether the model is returning malformed JSON.

First seen

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

Jev is incredible

Every mention

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

Jev is incredible

Theo Daily is unofficial and not affiliated with Theo or t3.gg. Written by Claude Opus 5.5 from each video's transcript.