Google's Genkit framework just shipped an Agents API that wraps the usual conversational AI plumbing—message history, tool loops, streaming—into a single interface, and it's available in preview for TypeScript and Go.
What the Agents API Actually Does
Instead of stitching together separate libraries for state management, tool execution, and streaming responses, the Agents API packages all three into one call. Developers get a unified wire protocol that connects backend agent logic directly to frontend components without custom middleware. For anyone who has debugged a chain of async tool calls that lost context mid-stream, this is the kind of abstraction that saves hours.
The API supports both server-managed and client-managed state persistence. That means you can hand off a conversation session to a background worker, branch the history for A/B testing, or detach a long-running task and poll it later—no custom serialization required.
State Persistence and Multi-Agent Coordination
History branching and detached tasks are not afterthoughts here. Genkit's API treats state as a first-class concept, letting you fork a conversation at any point and run parallel agent trajectories. Multi-agent coordination is built into the same interface: agents can delegate subtasks, share context, and aggregate results without the usual callback hell.
I've seen teams implement this pattern themselves with Redis-backed workflows and hand-rolled RPC. The Agents API does it in a few lines of config, with state snapshots you can inspect directly from the Genkit Developer UI.
Developer Experience Without the Boilerplate
The Genkit Developer UI lets you inspect agent snapshots mid-conversation, test tool outputs, and replay state transitions—all without writing a single client endpoint. For a team iterating on agent behavior, that means faster debugging and fewer "it worked in my notebook" moments.
Currently in preview for TypeScript and Go, the API is open-source and ready for production experimentation. The next step is seeing how it handles real-world multi-agent orchestration under load, but the architecture is designed to scale from a single chatbot to a fleet of cooperating agents.
Source: Build agentic full-stack apps with Genkit
Domain: developers.googleblog.com
Comments load interactively on the live page.