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”: ..
}]
}, to the vertex model using genkit
Is there any way to pass systemInstruction Gen kit Nodejs SDK