developing-genkit-go
Installation
Summary
Build AI applications in Go with generation, structured output, streaming, tool calling, and flows across model providers.
- Core features include text and data generation, prompt templates, tool definition with interrupts, and streaming support across Google AI, Vertex AI, Anthropic, OpenAI, and Ollama
- Define flows for tracing, observability, and HTTP deployment via
genkit.Handler; test flows directly from the CLI or Developer UI - Use middleware for cross-cutting concerns: built-in
Retry,Fallback,ToolApproval,Filesystem, andSkillscompose viaai.WithUse - Pass the
*Genkitinstance explicitly to all SDK functions; use.promptfiles with Handlebars templating for complex prompts and struct tags for structured output quality
SKILL.md
Genkit Go
Genkit Go is an AI SDK for Go that provides generation, structured output, streaming, tool calling, prompts, and flows with a unified interface across model providers.
Hello World
package main
import (
"context"
"fmt"
"log"
"net/http"
Explore more of GLSRM
