https://www.boundaryml.com logo
I saw this on Twitter so I did a BAML
# general
r
a
this is different -- the schema vs the actual output are different things to measure
not sure how toon describes the schema in the prompt
r
I was thinking it didn't
a
otherwise how would an llm know how to output this?
r
The prompt and the top part.
Yeah, I did it right. This is TOON:
Copy code
users[1]{id,name,role}:
1,Sreeni,admin
a
but isn't the number output by the llm? does the prmpt have:
Copy code
output in 

users[number]{id,name,role}:
r
For the data format, you could use Toon instead of JSON, is the point.
a
yeah that was what i was looking for
no idea how this works for recursive classes
t
you seem to focus on the token count, which is not the only factor. As we build ai agents and manage the context. The quality output is the main factor here. If it works with complex use cases or not.
b
That first pic compares json output against toon output vs baml input + output
r
I just copied someone else's JSON vs TOON image by adding BAML schema.
Yes, but it is showing why BAML works better.
a
tokens are semi-related in here Thawab -- json schema requires like 20 tokens to specify whether something is optional vs not
b
I read Thawab's point as that LLM response quality degrades in very subtle ways as prompt complexity increases, and TOON adds a lot of complexity that's hard to reason about
But I'll let @thawab clarify that 🙂
> Yes, but it is showing why BAML works better. We appreciate the work! But I think if I was seeing that on Twitter I'd be really confused, because 412 + 216 just seems worse than either 412 or 154
a
yep i think the point of the post is that it's less tokens (even if thats not what incrases performance)
b
This post was definetly from twitter dot com. Extremely confusing "comparison" 🤣
t
Just to put things in perspective, when Google released Gemini 2.5 Pro, its function calling was poor, and all the IDEs struggled to work with it. Anthropic a few months ago had a bug that degraded their models for almost 6 weeks. Saving tokens is a side project i am not interested in doing for a while.
b
Love to hear it - I’ll actually be putting out a blog post on toon today, would love to quote that if you don’t mind 🙂
t
I am flattered, yes sure.
r
My point was: maybe you can get inspired by TOON and reduce character size in BAML responses.
b
we’ve definitely got opportunities for more reduction!
b
@grok is this true
Elon Musk told me we would have ASI before 2026. Maybe let's try getting the basic SWE, tooling and ecosystems stable first 🤣
r
Like 90% of my responses sometimes are copied objects. This is expensive and must be common.