Hi, we had a call today and I managed to
I didn't use the newest genkit global. I think it would be better if genkit checks which version the package.json defines vs the global variable.
I also did not use the
ai.defineSchema() api and instead defined them as zod objects. I see there two issues. First of all ai.prompt should only accept wrapped schemas and second the generate function should check if it has access to the schema no matter if its defined by the dotprompt or in the output generate parameter. It always used null as schema even though I defined a schema in the dotprompt file. And I also think that output should not be nullable. Genkit should throw an error when no output could be generated, which I can then catch and add my own logic. Otherwise I need to manually check the traces instead of just seeing the error in the logs. Is there a reason why it is nullable?