Documentation
¶
Overview ¶
This sample demonstrates basic Genkit flows: a non-streaming flow and a streaming flow that generate jokes about a given topic.
To run:
go run .
In another terminal, test the non-streaming flow:
curl -X POST http://localhost:8080/jokesFlow \
-H "Content-Type: application/json" \
-d '{"data": "bananas"}'
Test the streaming flow:
curl -N -X POST http://localhost:8080/streamingJokesFlow \
-H "Content-Type: application/json" \
-d '{"data": "bananas"}'
Click to show internal directories.
Click to hide internal directories.