Directories
¶
| Path | Synopsis |
|---|---|
|
This sample demonstrates basic Genkit flows: a non-streaming flow and a streaming flow that generate jokes about a given topic.
|
This sample demonstrates basic Genkit flows: a non-streaming flow and a streaming flow that generate jokes about a given topic. |
|
basic-middleware
|
|
|
filesystem
command
This sample demonstrates the Filesystem middleware, which grants the model scoped file access via list_files, read_file, write_file, and search_and_replace tools.
|
This sample demonstrates the Filesystem middleware, which grants the model scoped file access via list_files, read_file, write_file, and search_and_replace tools. |
|
retry-fallback
command
This sample demonstrates composing the Retry and Fallback middlewares in a single Generate call to build a resilient model pipeline.
|
This sample demonstrates composing the Retry and Fallback middlewares in a single Generate call to build a resilient model pipeline. |
|
skills
command
This sample demonstrates the Skills middleware, which makes a local library of "skills" — specialised instructions stored as SKILL.md files — available to the model on demand.
|
This sample demonstrates the Skills middleware, which makes a local library of "skills" — specialised instructions stored as SKILL.md files — available to the model on demand. |
|
This sample demonstrates prompts using both inline code definitions and .prompt files (Dotprompt).
|
This sample demonstrates prompts using both inline code definitions and .prompt files (Dotprompt). |
|
This sample demonstrates structured input/output with strongly-typed Go structs.
|
This sample demonstrates structured input/output with strongly-typed Go structs. |
|
compat_oai
|
|
|
anthropic
command
|
|
|
custom
command
|
|
|
openai
command
|
|
|
This sample demonstrates durable streaming, which allows clients to reconnect to in-progress or completed streams using a stream ID.
|
This sample demonstrates durable streaming, which allows clients to reconnect to in-progress or completed streams using a stream ID. |
|
This sample demonstrates durable streaming with Firestore backend.
|
This sample demonstrates durable streaming with Firestore backend. |
|
Tool-interrupts demonstrates the tool interrupts feature in Genkit.
|
Tool-interrupts demonstrates the tool interrupts feature in Genkit. |
|
This program can be manually tested like so:
|
This program can be manually tested like so: |
|
This sample demonstrates how to use sessions to maintain state across multiple requests.
|
This sample demonstrates how to use sessions to maintain state across multiple requests. |
Click to show internal directories.
Click to hide internal directories.