Announcing Genkit Middleware: Intercept, extend, and harden your agentic apps
Source: Google Developers Blog
Overview
Genkit is an open‑source framework designed to help developers build production‑ready, agentic AI applications.
Supported Languages
- TypeScript
- Go
- Dart
- Python
Middleware System
The framework utilizes a powerful middleware system that intercepts generation calls to inject custom behaviors such as:
- Retries
- Model fallbacks
- Human‑in‑the‑loop tool approvals
Hook Layers
Developers can attach hooks at the generate, model, and tool layers, ensuring high reliability and deterministic control over model outputs.
Custom Middleware
Genkit allows for the creation and stacking of custom middleware, giving developers flexibility to extend functionality as needed.
Developer UI
All middleware can be inspected and debugged through a dedicated Developer UI.