Tool calls with generateObject don't appear to work when using the OpenAI compatibility layer in Vercel's ai SDK. It would be nice if that could get fixed, or native Llama API support was added to there.
It looks like this was due to enums being present in my schema, which is leading me to think it's a limitation of the ai library itself. I still think it would be nice to have native llama support though :-)