You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constjokeSubjectGenerator=defineTool({name: 'jokeSubjectGenerator',description: 'can be called to generate a subject for a joke',},async()=>{return'banana';});exportconsttoolCaller=defineFlow({name: 'toolCaller',outputSchema: z.string(),},async(_,streamingCallback)=>{if(!streamingCallback){thrownewError('this flow only works in streaming mode');}const{ response, stream }=awaitgenerateStream({model: gemini15ProPreview,config: {temperature: 1,},tools: [jokeSubjectGenerator],prompt: `tell me a joke`,});forawait(constchunkofstream()){streamingCallback(chunk);}return(awaitresponse()).text();});
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
When running the flow (see below) from the Dev UI in streaming mode the
genkit start
process "crashes".Full error: https://gist.github.com/pavelgj/0ef67bc35d2c4436c7c128462a64b0b9
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
The text was updated successfully, but these errors were encountered: