anvith
08/23/2025, 8:27 PMVaibhav (BAML 🐑)
08/23/2025, 8:28 PMVaibhav (BAML 🐑)
08/23/2025, 8:28 PManvith
08/23/2025, 8:32 PMVaibhav (BAML 🐑)
08/23/2025, 8:33 PMambiguity string
should be:
ambiguity string?
since the llm is returning a null value. our parser is only looking for values where ambiguity is a string type and the null value doesn't end up matching so we drop that result.anvith
08/23/2025, 8:43 PMambiguity type in another output class and that has never failed to produce an output even if the string is empty or nullVaibhav (BAML 🐑)
08/23/2025, 9:17 PM{
"result": "foo",
"bar": null
}
there's no way to cast that value into this type:
class Foo {
result string
bar string
}
so we fail to parse.
However, this can be cast:
{
"result": "foo",
"bar": ""
}
Likely what you're seeing is just variance in the llm not working 🙂 sometimes its giving "" othertimes null .Vaibhav (BAML 🐑)
08/23/2025, 9:17 PMclass Foo {
result string
bar string @assert({{ this | length > 0 }})
}
then neither of them would parseanvith
08/24/2025, 5:29 AM