How to pass systemInstruction to firebase Genkit
export const processDocuemntFlow = defineFlow( { name: ‘processDocuemntFlow’, inputSchema: z.string(), outputSchema: noteSchema, }, async (docuemntUrl) => { const llmResponse = await generate({ model: gemini15FlashPreview, prompt: [{ text: `prompt` }, ], output: { format: “json”, schema: noteSchema }, config: { temperature: 1, }, }); console.log(JSON.stringify(llmResponse)); return llmResponse.output(); } ); How to pass systemInstruction: { parts: [{“text”: […]
Firebase Genkit Error Handling: NoValidCandidatesError not exported
I want to be able to handle errors when the’re an output error using Firebase Genkit. If the prompt is not able to generate a response matching the output schema, I get this error:
How to send media file to flow http endpoint in firebase genkit?
Firebase Genkit let’s you create “flows”. Flows can be a complete replacement to an express server.