AI Cloud Architect

Announcing Genkit Middleware: Intercept, extend, and harden your agentic apps

GoogleAnnouncement by Chris GillGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Genkit now offers middleware hooks around model calls and tool execution, with pre-built retry, fallback, tool approval, skills and filesystem middleware plus custom middleware.

Who it is for

Developers building agentic apps on Genkit in TypeScript, Go or Dart who need retries, fallbacks or human approval before tool calls.

Key points

  • Middleware is available today in TypeScript, Go and Dart; Python support is coming soon.
  • Hooks attach at generate, model and tool layers of the tool loop.
  • Middleware stacks in order, with the first listed as the outermost wrapper.

The same at other vendors

Timeline

Posts about Genkit, oldest first.

  1. New featureAnnouncing the Genkit Extension for Gemini CLI · Google · Announcement
  2. This postAnnouncing Genkit Middleware: Intercept, extend, and harden your agentic apps
  3. New featureBuild agentic full-stack apps with Genkit · Google · Announcement
  4. Explained inEnable on-demand expertise with Agent Skills in Genkit Go · Google · How-to

Go deeper