genkit
1.44.0 · 3 Nov 2026Apache-2.0269.9k / weekRepositoryHomepagenpmAtom feed
Upgrading genkit From 0.5.5 to 1.44.0
88 releases in betweennotes for 72
Reading releases, release notes and advisories…
- 8+
- changes to make
- 0
- advisories fixed
- 122+
- new
- 131+
- fixes
Counted from 72 of 88 release notes. Advisories are counted from the advisory database, in full.
Start here
Before you upgrade
Tick each one off as you go- Breaking1.44.0
- Breaking1.41.0
- Breaking1.40.0
- Breaking1.39.0
- Breaking1.19.2
- Deprecated1.35.0
- Deprecated1.32.0
- Deprecated1.30.1
Security
- 1.40.0
genkit-tools: Prevent path traversal and bind to localhost
Release by release
- Breaking
Google GenAI, Interactions API usage: per-modality token counts moved from
inputCharacters,inputImages,outputAudioFiles, etc. tousage.custom.*Tokens(e.g.inputTextTokens). Those old fields held token counts by mistake. See #6963 for the full mapping. - New
Added the Gemini Deep Research agent (
deep-research-preview-04-2026) to thevertexAIplugin as a background model. - New
googleAInow sendsstoreongenerateContentrequests when it's set, so you can opt out of the Gemini API's new default request logging for paid projects. - New
Interactions API models now accept Word, Excel and other document types instead of only PDF and CSV.
- Breaking
- New
throwOnError: falseongenerate()returns the failure and the conversation up to the last completed tool round, so you can retry from there. Code that doesn't set it still gets the same errors as before. - New
Failed and aborted agent turns are now resume points. A failed turn is saved as a
failedsnapshot and a stopped run is saved as anabortedsnapshot. Both can be resumed. (#6361, #6362, #6360) - New
waitForSnapshotis the blocking version ofgetSnapshot. It waits on the server until a detached turn finishes, so you don't need a polling loop. - New
Background delegation in the
agentsmiddleware. Withasync: true, delegation tools acceptbackground: trueand return a task ID right away. Newcheck_background_tasks,wait_for_background_tasksandabort_background_taskstools let the orchestrator manage those tasks.
- New
- New
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. - New
Add prompt name to
renderspan metadata for better Dev UI usability. - Fixed
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.
- Fixed
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).
- New
- Breaking
Security hardening for background operations (heads up: minor breaking change). The google-genai plugin no longer persists
clientOptionsin operation metadata, which previously risked leaking API keys if you returned a full operation object to a client. If you use per-request overrides (like a custom API key) with long-running models, you now need to pass those same overrides to eachcheckOperation/cancelOperationcall. - New
See and edit output config in the Model Runner. The Model Runner now has an editable Output panel. When you load a generation from a trace, you can inspect the inherited format and JSON schema, tweak them, or switch back to plain text for a freeform prompt. The schema shows up as readable JSON Schema instead of a raw Zod blob, and a reset restores the inherited config.
- New
Structured JSON output, rendered properly. Model Runner output that comes back as JSON is now rendered as clean, formatted JSON instead of a wall of text.
- New
Output conformance in the Prompt Runner. The Prompt Runner now supports output conformance, so prompts that define a structured schema behave consistently with the rest of the tooling.
- Breaking
- Fixed
js/plugins/google-genai: Map tool role to "user" for Gemini compatibility
- Fixed
- Security
genkit-tools: Prevent path traversal and bind to localhost
- Breaking
agents: Return not found for missing snapshots
- Security
- Breaking
The beta Chat API has been removed and replaced by the new Agents API (#5248, #5251). The
Chatclass,ai.chat(...), andsession.chat(...)are gone. Migrate toai.defineAgent(...)andagent.chat()(see Agents below). All removed surface was beta. - New
Stateful, multi-turn chats —
chat()threadsstate,messages,snapshotId, andsessionIdfor you (send & stream). - New
Typed custom state with Zod validation (
stateSchema). - New
Pluggable persistence via
SessionStore(in-memory + file stores included); server-managed sessions resumable bysessionId.
- Breaking
1.37.0 – 1.38.02 releases, nothing new or fixed in the notes
33 other lines we could not sort, mostly version bumps
- 1.41.0
New GPT-5.x models in the OpenAI-compatible plugin. Added
gpt-5.2,gpt-5.4,gpt-5.4-mini,gpt-5.4-nano, andgpt-5.5tocompat-oai, so you can reach the latest OpenAI models without waiting on a plugin bump. - 1.41.0
Per-request Anthropic API keys. The Anthropic plugin now resolves the API key lazily at request time instead of only at init, so you can override the key per call. Handy for multi-tenant setups and key rotation.
- 1.41.0
Clearer retry and fallback logs. The
retryandfallbackmodel middleware now emit structured warnings explaining what happened: which attempt, how long the backoff is, why a retry was skipped, and which model it's falling back to.AbortErrorandToolInterruptErrorare now correctly treated as non-retryable. - 1.41.0
Fixed audio transcription file extensions.
compat-oaispeech-to-text now derives the right file extension from the content type (.mp3,.wav,.webm, and friends) instead of a generic name, which fixes transcription failures with providers that key off the extension. - 1.41.0
More reliable agent resume.
validateResumeAgainstHistorynow searches history newest-first, fixing an edge case when resuming interrupted conversations. - 1.41.0
Options for checkOperation and cancelOperation. You can now pass options (including per-request client config) when polling or cancelling long-running operations. Auth and secrets are also now scrubbed from context logging.
- 1.41.0
ROUGE evaluator fix on Vertex AI. Corrected the type used by the ROUGE score evaluator and cleaned up duplicated evaluator types.
- 1.41.0
Structured output now survives "Export to .prompt". When you export from the Dev UI model runner, the output schema is included in the front matter (written as Picoschema) instead of being dropped, so exported prompts keep their structured output config.
- 1.41.0
Cleaner
trace:getoutput.genkit trace:get <id>gets a readable tree view, and--format jsongives you clean JSON that's easy to pipe into other tools. - 1.41.0
More reliable startup in ephemeral runtimes. The CLI now waits for actions to finish registering before proceeding, fixing flaky behavior where actions weren't yet available.
42 internal lines (docs, tests, tooling) left out.
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.