GenkitG
Genkitโ€ข7mo agoโ€ข
1 reply
spotty-amber

hey team, I believe this example in the

hey team, I believe this example in the Genkit docs is not correct:
https://genkit.dev/docs/flows/#defining-and-calling-flows
in the flow definition, we have
outputSchema: z.object({ menuItem: z.string() })
but then the functions ends with
return { text };
which is not matching the output of the flow, which would cause it to fail. The output is not even passed to the generate method
Was this page helpful?