Tool usage no longer working
1. When defining a json output and a tool the SDK fails: https://github.com/firebase/genkit/issues/889
I think the issue is in the generate.ts at the candidateError check:
https://github.com/firebase/genkit/blob/2f6c7d8f3a9b7f0a9466d20598fa2cfb4363956d/js/ai/src/generate.ts#L668
c.data() is actually undefined
2. I am not managing to get my tools called
When using gemini-1.5-flash it never calls my function, I tried the js-menu sample and it fails too.
With gemini-1.5-pro the sample works but my more complex prompt does not...
Am I missing any option I should consider when using tools?