genkit
1.44.0 · 3 Nov 2026Apache-2.0269.9k / weekRepositoryHomepagenpmAtom feed
1.44.0 is the newest release of 1.x.
In short
2 new2 fixed
Release note
New: A2UI plugin (@genkit-ai/a2ui)
A new plugin that lets an agent stream A2UI ("Agent to UI") surfaces, rich interactive UI rendered incrementally by the client, instead of just prose. Server integration is a single model middleware you drop into an agent's use array. It injects the catalog's capabilities into the system prompt, then intercepts streamed and final model output, extracts a2ui blocks, validates them against the catalog, and rewrites them into A2UI data parts. A browser-safe /client entrypoint (a2uiEnvelopes, actionToMessage) feeds envelopes to a renderer and sends user actions back to the agent. Ships with a runnable js/testapps/a2ui sample (Express backend + Vite/Lit frontend). (#5795, #6209, #6222)
import { genkit } from 'genkit/beta';
import { googleAI } from '@genkit-ai/google-genai';
import { a2ui } from '@genkit-ai/a2ui';
const ai = genkit({ plugins: [googleAI()] });
export const uiAgent = ai.defineAgent({
name: 'uiAgent',
model: 'googleai/gemini-flash-latest',
system: 'You help users. Render UI when it is clearer than prose.',
use: [a2ui()], // the only A2UI-specific line
});Features
OpenTelemetry logs are now enabled by default; the
GENKIT_OTEL_ENABLE_LOGSflag has been removed, and custom log record processors set intelemetryConfigare no longer overwritten.
Bug Fixes
plugins/google-genai: Surface API errors from streaming responses by mapping HTTP status codes to Genkit statuses and parsing JSON error bodies returned with HTTP 200 (e.g. overloaded models), so middleware like retry can react appropriately.
plugins/compat-oai: Fix inverted 401/403 status mapping so a bad or missing API key now surfaces as
UNAUTHENTICATEDinstead ofPERMISSION_DENIED; affects all compat-oai based providers (openai, xai, deepseek).Add prompt name to
renderspan metadata for better Dev UI usability.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.