Relative Content

Tag Archive for firebasefirebase-genkit

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”: […]