Skip to content

feat(js/plugins): add anthropic plugin#3785

Merged
cabljac merged 52 commits into
genkit-ai:mainfrom
invertase:anthropic-plugin
Nov 26, 2025
Merged

feat(js/plugins): add anthropic plugin#3785
cabljac merged 52 commits into
genkit-ai:mainfrom
invertase:anthropic-plugin

Conversation

@cabljac

@cabljac cabljac commented Nov 11, 2025

Copy link
Copy Markdown
Contributor

1P Anthropic Plugin

This PR introduces an official first-party Anthropic plugin for the Genkit framework.

It provides comprehensive support for Anthropic's Claude models with both stable and beta API endpoints.

Notes:

  • Dual API surface: Support for both stable and beta Anthropic APIs via configurable apiVersion parameter. We use an abstraction layer in runner/base.ts and runner/beta.ts, runner/stable.ts, using generics to reduce duplication of code where possible.

Attribution

This plugin builds upon the excellent foundation provided by the community genkitx-anthropic package originally developed by Bloom Labs Inc. Their Apache 2.0 licensed implementation served as the starting point for this official plugin.

References:

v2 API migration guide doc:

https://docs.google.com/document/d/1s1YKwhqdrGN44IG7lSAwltxM3Bqh9p6jTcri8SNaBWk/edit?tab=t.0#heading=h.5nmgndd9f76y

@google-cla

google-cla Bot commented Nov 11, 2025

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions Bot added docs Improvements or additions to documentation js config labels Nov 11, 2025
Comment thread js/plugins/anthropic/src/index.ts Outdated
Comment thread js/plugins/anthropic/src/index.ts
Comment thread js/plugins/anthropic/src/index.ts Outdated
@cabljac cabljac force-pushed the anthropic-plugin branch 2 times, most recently from 43df6af to cb864aa Compare November 17, 2025 14:49
@cabljac cabljac requested a review from HassanBahati November 18, 2025 12:38
@cabljac cabljac marked this pull request as ready for review November 18, 2025 13:41
@cabljac cabljac requested review from ifielker and pavelgj November 21, 2025 10:54
Comment thread js/plugins/anthropic/src/models.ts Outdated
… follow google-genai

* refactor(js/plugins/anthropic): refactor model references approach to follow google-genai

* refactor(js/plugins/anthropic): remove namespace

* refactor(js/testapps/anthropic): update testapps to use .model
Comment thread js/plugins/anthropic/src/models.ts Outdated
Comment thread js/plugins/anthropic/src/models.ts Outdated
Comment thread .github/workflows/anthropic-plugin-tests.yml Outdated
Comment thread js/plugins/anthropic/package.json Outdated
Comment thread js/plugins/anthropic/README.md
Comment thread js/plugins/anthropic/src/runner/stable.ts
Comment thread js/testapps/anthropic/src/stable/basic.ts
Comment thread js/testapps/anthropic/src/stable/basic.ts
@cabljac cabljac enabled auto-merge (squash) November 26, 2025 17:31
@cabljac cabljac merged commit f88c7bc into genkit-ai:main Nov 26, 2025
5 checks passed
@cabljac cabljac deleted the anthropic-plugin branch November 26, 2025 17:37
hugoaguirre pushed a commit that referenced this pull request Jan 16, 2026
Co-authored-by: HassanBahati <mukisabahati@gmail.com>
Co-authored-by: Corie Watson <watson.corie@gmail.com>
Co-authored-by: Pavel Jbanov <pavelgj@gmail.com>
@yesudeep yesudeep mentioned this pull request Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config docs Improvements or additions to documentation js

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants