Skip to content

Conversation

@cabljac
Copy link
Contributor

@cabljac cabljac commented Nov 11, 2025

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
Copy link

google-cla bot commented Nov 11, 2025

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
@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
… 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
@cabljac cabljac enabled auto-merge (squash) November 26, 2025 17:31
@cabljac cabljac merged commit f88c7bc into firebase:main Nov 26, 2025
5 checks passed
@cabljac cabljac deleted the anthropic-plugin branch November 26, 2025 17:37
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

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants