developing-genkit-dart
Genkit Dart
Genkit Dart is an AI SDK for Dart that provides a unified interface for code generation, structured outputs, tools, flows, and AI agents.
Core Features and Usage
If you need help with initializing Genkit (Genkit()), Generation (ai.generate), Tooling (ai.defineTool), Flows (ai.defineFlow), Embeddings (ai.embedMany), streaming, or calling remote flow endpoints, please load the core framework reference:
references/genkit.md
Prompts (Dotprompt)
.prompt files keep prompt content out of Dart code with YAML frontmatter plus a
Handlebars template. See references/dotprompt.md:
promptDir, ai.prompt() (call/stream/render), variants, partials, named
schemas via defineSchema, and the tools/maxTurns/returnToolRequests/use
(middleware) frontmatter fields. A .prompt file can also back an agent directly
via definePromptAgent.