Home Posts Genkit Agents API: Full-Stack Agentic Apps
Engineering

Genkit Agents API: Full-Stack Agentic Apps

Dillip Chowdary
Dillip Chowdary
July 21, 2026 · 5 min read · Source: Google Developers Blog

Bottom Line

Genkit’s Agents API (preview) collapses message history, tool loops, streaming, persistence, and frontend protocol into one interface — so teams stop re-plumbing chat agents on every app.

Key Takeaways

  • Genkit is open-source for TypeScript, Go, Dart, and Python full-stack AI apps.
  • Agents API is in preview for TypeScript and Go and may break in minor releases.
  • Define an agent once; drive it with the same chat() API in-process or over HTTP.
  • Start with name + system prompt; add tools, state, and session store as the feature grows.
  • Use experimental flags carefully — preview features can change.

Google announced Genkit Agents (July 1, 2026): a full-stack foundation for conversational, multi-turn AI features.

The plumbing problem

Support assistants and multi-turn copilots need more than a single generate() call. Message history, tool loops, streaming, persistence, and a frontend protocol usually get re-wired on every project — and that plumbing is not what makes your product distinct.

What Agents API packages

  • Server-side agent definition
  • Unified chat() surface for local and HTTP drivers
  • Room to grow: tools, state, session stores
// Conceptual shape from Genkit Go preview docs
assistant := genkitx.DefineAgent(g, "assistant", aix.InlinePrompt{
  ai.WithModelName("googleai/gemini-flash-latest"),
  ai.WithSystem("You are a support agent..."),
})

When to adopt

  • Adopt now if you are prototyping multi-turn product features and can tolerate preview churn.
  • Wait if you need strict API stability for regulated production agents — pin versions and track breaking changes closely.
Primary source: Google Developers Blog → Verify claims against the original before changing production systems.

More from Tech Bytes