Packages

genkit

1.44.0 · 3 Nov 2026Apache-2.0269.9k / weekRepositoryHomepagenpmAtom feed

Your version

94 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 1.44.0

    3 Nov 2026
    • Breaking

      Google GenAI, Interactions API usage: per-modality token counts moved from inputCharacters, inputImages, outputAudioFiles, etc. to usage.custom.*Tokens (e.g. inputTextTokens). Those old fields held token counts by mistake. See #6963 for the full mapping.

    • Added the Gemini Deep Research agent (deep-research-preview-04-2026) to the vertexAI plugin as a background model.

      const { operation } = await ai.generate({
        model: vertexAI.model('deep-research-preview-04-2026'),
        prompt: 'Compare TCP and UDP in a short markdown table.',
      });
    • googleAI now sends store on generateContent requests when it's set, so you can opt out of the Gemini API's new default request logging for paid projects.

  2. 1.43.0

    21 Oct 2026
    • throwOnError: false on generate() 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.

      const opts = { model: googleAI.model('gemini-flash-latest'), tools: [getWeather], throwOnError: false };
      let res = await ai.generate({ ...opts, prompt: 'What should I wear in Tokyo today?' });
      if (res.finishReason === 'failed' || res.finishReason === 'aborted') {
        res = await ai.generate({ ...opts, messages: res.messages });
      }
    • Failed and aborted agent turns are now resume points. A failed turn is saved as a failed snapshot and a stopped run is saved as an aborted snapshot. Both can be resumed. (#6361, #6362, #6360)

    • waitForSnapshot is the blocking version of getSnapshot. It waits on the server until a detached turn finishes, so you don't need a polling loop.

      const task = await reportAgent.chat().detach('Write the report');
      const snap = await task.wait();
  3. 1.42.0

    1 Sep 2026
    • 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.

    • 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 UNAUTHENTICATED instead of PERMISSION_DENIED; affects all compat-oai based providers (openai, xai, deepseek).

  4. 1.41.0

    11 Aug 2026
    • Breaking

      Security hardening for background operations (heads up: minor breaking change). The google-genai plugin no longer persists clientOptions in 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 each checkOperation/cancelOperation call.

    • 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, and gpt-5.5 to compat-oai, so you can reach the latest OpenAI models without waiting on a plugin bump.

    • 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.

  5. 1.40.1

    21 Jul 2026
    • js/plugins/google-genai: Map tool role to "user" for Gemini compatibility

  6. 1.40.0

    17 Jul 2026
    • Breaking

      agents: Return not found for missing snapshots

    • Security

      genkit-tools: Prevent path traversal and bind to localhost

  7. 1.39.0

    26 Jun 2026
    • Breaking

      The beta Chat API has been removed and replaced by the new Agents API (#5248, #5251). The Chat class, ai.chat(...), and session.chat(...) are gone. Migrate to ai.defineAgent(...) and agent.chat() (see Agents below). All removed surface was beta.

    • Stateful, multi-turn chats — chat() threads state, messages, snapshotId, and sessionId for you (send & stream).

    • Typed custom state with Zod validation (stateSchema).

  8. 1.37.0 – 1.38.02 releases without a noteShow each
  9. 1.36.0

    27 May 2026
    • js: Introduce annotateschema for ui-specific metadata

    • js/plugins/google-genai: Support for -latest in vertexai

    • js: Rewrite relative .js specifiers to .mjs in ESM output

  10. 1.35.0

    21 May 2026
    • Deprecated

      js: Deprecate genkit/model/middleware retry and fallback middleware in favor of @genkit-ai/middleware

  11. 1.34.0

    12 May 2026
    • js/core: Fix ValidationResponse type and cache ajv validators

  12. 1.33.0

    24 Apr 2026
    • js/genkit: Explicitly allow null types in promptDir

    • genkit-tools/cli: Support ephemeral runtime commands

    • js/core: Fix DAP resolution

  13. 1.32.0

    10 Apr 2026
    • Deprecated

      js/plugins/google-genai: Deprecate some imagen and veo models

    • js/plugins/anthropic: Remove duplicated keys maxOutputTokens, etc

  14. 1.31.0

    27 Mar 2026
    • Update macos-14 runner to macos-15-intel for darwin-x64 builds

  15. 1.30.1

    13 Mar 2026
    • Deprecated

      js/plugins/google-genai: Deprecate gemini-3-pro-preview

    • Update trace filtering to support array-based eq/neq filters and numeric filters (gt, gte, lt, lte)

    • Allow multipart tool responses to include a metadata field.

  16. 1.29.0

    20 Feb 2026
    • js/core: Dap Action updates

    • js/genkit: Added cancelOperation for backgroundModels

    • genkit-tools/mcp: More descriptive errors in MCP

  17. 1.28.0

    22 Jan 2026
    • genkit-tools/mcp: Fix MCP server failing to spin up runtime

    • genkit-tools: Add /listValues endpoint to expose defaultModel

    • genkit-tools/mcp: MCP fix for Antigravity

  18. 1.27.0

    19 Dec 2025
    • Add ability to collapse/expand code blocks

    • Display telemetry in real time

  19. 1.26.0

    12 Dec 2025
    • genkit-tools/generate: Make model optional in GenerateActionOptions

    • genkit-tools/mcp: Add README for Genkit MCP Server

    • genkit-tools/mcp: Add genkit:init command with support for runtime tools

  20. 1.25.0

    3 Dec 2025
    • Persist the unknown traces filter state in local storage

    • Update multimodal-input font to match markdown content

    • Properly pop tool calls in non-append mode

  21. 1.24.0

    18 Nov 2025
    • js/plugins/google-genai: Support for gemini 3.0 thinkingLevel.

  22. 1.23.0

    13 Nov 2025
    • genkit-tools/evaluate: Handle custom config correctly for prompt evals

    • genkit-tools: Support trace uploads via tools router

    • Log error with duplicate action key

  23. 1.22.0

    28 Oct 2025
    • genkit-tools/evals: Support (executable) prompt evals

    • Throw for unknown CLI commands, traceId in eval:*

  24. 1.21.0

    6 Oct 2025
    • Handle missing trace index, better multimedia samples for AI

    • Added streaming support to the model runner

    • Render reasoning parts

  25. 1.20.0

    26 Sep 2025
    • cli/telemetry-server: Fixed trace duplication in the index which resulted in duplication in trace list in dev ui

    • js/ai/tools: Added dynamic version of the interrupt

    • Custom config casing improvements and less wrapping

  26. 1.19.3

    19 Sep 2025

    Messages now render within traces. A fix prevents border colors from incorrectly changing on read-only messages, and another stops images from breaking out of their message cards. Section headers for inputs/outputs are now collapsible, media URLs render directly as returned from flows, and the collapse/expand controls are limited to JSON content, no longer appearing for previews.

  27. 1.19.2

    9 Sep 2025
    • Removed

      cli/init:ai-tools: Remove npx from mcp command

  28. 1.19.1

    8 Sep 2025
    • genkit-tools/init:ai-tools: Inline context to work with binary CLI

  29. 1.19.0

    8 Sep 2025
    • genkit-tools/cli/ai-tools: Improve support for other model providers

    • genkit-tools/cli/init:ai-tools: Support Golang context

    • js/ai: Propagate abortSignal in recursive generateHelper calls

  30. 1.18.0

    29 Aug 2025
    • per-message markdown rendering in model & prompt runners

    • Add support for integer types in custom model config

    • Update model picker filtering and add a clear button

  31. 1.17.1

    24 Aug 2025

    Maintenance only: docs, tests, build or refactoring. Nothing changes in how you use it.

  32. 1.17.0

    22 Aug 2025
    • fix(js) Fix next.js warnings related to firebase

    • fix(js) Add otel jaeger dependency to remove next.js warning

  33. 1.16.1

    12 Aug 2025
    • Fix for AbortSignal value of "this" issue

    • Instantiate OpenAI client in all relevant async functions

    • js/plugins/compat-oai: Support / in model names

  34. 1.16.0

    7 Aug 2025
    • Add thinking tokens to usage stats for gemini models

    • Export proper reasoning part for tools common

    • Gemini thinking config

  35. 1.15.5

    25 Jul 2025
    • js/plugins/pinecone: Handle missing docMetadata

    • js/plugins/googleai: Fixed aggregation of thought parts

  36. 1.15.4

    25 Jul 2025
  37. 1.15.2

    21 Jul 2025
    • js/plugins/compat-oai: Fix for ESM

  38. 1.15.1

    18 Jul 2025
  39. 1.15.0

    17 Jul 2025
  40. 1.14.1

    10 Jul 2025
    • js: Remove numberOfVideos config parameter for Veo

    • js/core: Add port number to runtime file name

    • js/core: Correctly passthrough telemetry labels when streaming

  41. 1.14.0

    27 Jun 2025
  42. 1.13.0

    19 Jun 2025
    • js/plugins/google-cloud: Remove metrics and dimensions unused by the Firebase Genkit Monitoring dashboard

  43. 1.12.0

    6 Jun 2025
    • Add span for prompt template rendering

  44. 1.11.1

    2 Jun 2025
    • js/plugins/googleai: Fixed streamed response aggregation

    • js/plugins/googleai: Handle Gemini API thought signatures.

    • js/plugins/vertexai: Handle Gemini API thought signatures

  45. 1.11.0

    30 May 2025
    • js/core/flows: Allow setting metadata on flows

    • js/plugins/vertexai: Remove logging of models in listModels

    • Fix up invalid tsconfig shipped on npm

  46. 1.10.0

    21 May 2025
    • js: Added reasoning part type and implemented for googleai and vertexai

    • Update genkit title font weight

    • Wrong background color in flow runner

  47. 1.9.0

    14 May 2025
    • {go,js,py}: Add missing UsageMetadata fields

    • js: Added missing exports and typedoc config for genkit/context

  48. 1.8.0

    5 May 2025
    • js/core: Allow defining a "list actions" fn for plugins

  49. 1.7.0

    25 Apr 2025
    • js/core: Added trace information to action and flow contexts

    • js: Dynamic action resolver support

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.