Back to feed

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

Google Developers Blog - AI

May 14, 2026

5/14/2026

Deterministic Governance Layer Pauses Unauthorized Tool Actions and Requires Human Approval

Announcing Genkit Middleware: Intercept, extend, and harden your agentic apps · Google Developers Blog - AI

Science, Technology & Innovation · May 14, 2026

Genkit adds a deterministic governance layer for agent tools by interrupting unauthorized tool calls and requiring explicit resume/approval, creating a human-in-the-loop control surface to gate high-risk side effects without redesigning prompts.


5/14/2026

Middleware As Reusable Policy Layer Enables Composable Application Controls Across Applications

Announcing Genkit Middleware: Intercept, extend, and harden your agentic apps · Google Developers Blog - AI

Science, Technology & Innovation · May 14, 2026

Genkit treats middleware as reusable policy and capability layers that inject domain instructions, grant confined resource access, and enforce post-generation content rules so app policies become composable software rather than repeated prompt text.


5/14/2026

Genkit Retries Model Calls With Exponential Backoff And Falls Back To Other Providers Without Replaying Full Agent Workflows

Announcing Genkit Middleware: Intercept, extend, and harden your agentic apps · Google Developers Blog - AI

Science, Technology & Innovation · May 14, 2026

Genkit scopes retry and fallback to individual model calls—retrying only the failed model API call with exponential backoff and jitter and falling back to alternate models/providers on errors like RESOURCE_EXHAUSTED—avoiding replay of whole agent tool loops, preventing duplicate side-effect actions while improving reliability and indicating middleware portability across model providers.


5/14/2026

Genkit Centralizes Reliability, Policy, and Observability in Execution Layer Middleware for Agent Loops

Announcing Genkit Middleware: Intercept, extend, and harden your agentic apps · Google Developers Blog - AI

Science, Technology & Innovation · May 14, 2026

Genkit moves reliability and control from prompt engineering into execution-layer middleware that intercepts the full agent loop with a three-layer hook architecture (Generate, Model, Tool), enabling deterministic retries, approvals, sandboxing, policy enforcement, and observability so teams can centralize operational controls across TypeScript, Go, and Dart (Python planned).


5/14/2026

Genkit Middleware Order Is Explicit And Determines Behavior

Announcing Genkit Middleware: Intercept, extend, and harden your agentic apps · Google Developers Blog - AI

Science, Technology & Innovation · May 14, 2026

Genkit enforces explicit left-to-right middleware stacking where the first-listed middleware is the outermost wrapper, so order (e.g., Retry wrapping a ContentFilter around the model) changes semantics for retries, validation, logging and approvals and enables intentional policy behavior plus improved debuggability and testability via Developer UI inspection and tracing.