Google00:00Guides & TipsOfficial Blog
Google adds middleware to Genkit for reliable agents
Add retries, approvals, and observability for production safety.
Key Points
- 1Middleware hooks extend generation calls
- 2Easier retries/fallbacks/approvals/observability
- 3Python support is coming later
Google introduced middleware for the open-source Genkit framework, letting you intercept generation calls and extend behavior. It makes it easier to add retries, fallbacks, human approvals before risky tool calls, and observability. This helps reduce instability and standardize rules in production teams. TypeScript/Go/Dart are available first, with Python planned.