basic

command
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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"}'

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL