ARTICLE AD BOX
New Delhi: Google has recently unveiled its preview of Genkit Agent, its latest addition to its open-source Genkit framework, focused on simplifying the development of conversational and agentic AI apps. The latest Agents API is available in preview for TypeScript and Go, providing developers a unified way to build AI-powered apps without having to manually manage conversation history, tool execution, streaming, persistence, and frontend communications. Conversational AI apps now often require significantly more than a single model call.
Developers typically have to build infrastructure for managing multi-turn conversations, maintaining session state, handling tool calls, and connecting the backend with the frontend. Genkit Agents are specially designed to package these capabilities into a single interface. Developers can define an AI agent on the server by using the system prompt and gradually add tools, state management, and session storage as apps become more complex.
The same agent can also handle one-time responses, streaming interactions, paused tool calls, and multi-turn conversations via a common chat interface with flexible state management options, which were also introduced by Google. Developers can choose server-managed sessions, where the conversation history and app state are stored by using session stores such as Firestore, local files, or in-memory storage. They can use client-managed sessions by enabling the apps to maintain conversation state without server-side persistence.
Framework also supports branching conversations from previous snapshots by allowing users to revisit earlier points in the conversation without affecting the original thread. Genkit agent can be exposed via HTTP with minimal configuration by enabling web, mobile, or backend apps to connect using a similar communication protocol. The latest JavaScript client allows frontend apps to interact with the remote agents while supporting streamed responses, state updates, authentication, and session continuation.
Google also stated that the Genkit Agent API is currently in preview, and it might also undergo changes before its general availability. Developers can access documentation via the Genkit website and offer feedback through the project’s GitHub repository.





English (US) ·