gemini Genkit Releases · · 1.42.0

Genkit JS 1.42.0 introduces A2UI plugin for interactive agent UI

sdkaipreviewengineermedia
feature patch

Genkit JS 1.42.0 brings the new A2UI plugin, enabling agents to stream rich, interactive user interfaces to clients instead of just prose. This early proof-of-concept integrates as a model middleware, injecting capabilities into the system prompt and transforming model output into A2UI data parts. The update also enables OpenTelemetry logs by default and includes bug fixes for API error surfacing in Google GenAI and authentication mapping in OpenAI-compatible plugins.

  • Add prompt name to render span metadata for better Dev UI usability. (#6025)
Features (1)
  • OpenTelemetry logs are now enabled by default; the GENKIT_OTEL_ENABLE_LOGS flag has been removed, and custom log record processors set in telemetryConfig are no longer overwritten. (#6069)

Fixes (3)
  • __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. (#6170)

  • __plugins/compat-oai:__ Fix inverted 401/403 status mapping so a bad or missing API key now surfaces as UNAUTHENTICATED instead of PERMISSION_DENIED; affects all compat-oai based providers (openai, xai, deepseek). (#6151)

  • Add prompt name to render span metadata for better Dev UI usability. (#6025)
Read the original announcement →

https://github.com/genkit-ai/genkit/releases/tag/genkit%401.42.0

Related releases