adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Support Claude 4 models

Open avidelatm opened this issue 1 year ago • 3 comments

** Please make sure you read the contribution guide and file the issues in the right place. ** Contribution guide.

Is your feature request related to a problem? Please describe. Current agents don't work with Claude 4 models either sonnet or Opus

Describe the solution you'd like A clear and concise description of what you want to happen. I would like to be able to create an LLMAgent and assign it a claude-4 model and for it to work

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Use LiteLLM, or create custom anthropic_llm implementation in my own repo, and load it via LLMRegistry.register supporting claude-4 models

Additional context Add any other context or screenshots about the feature request here. The claude 3 family regex is the only supported models: https://github.com/google/adk-python/blob/main/src/google/adk/models/anthropic_llm.py#L211

avidelatm avatar May 26 '25 02:05 avidelatm

@genquan9 are we working on the support for this?

hangfei avatar Jun 01 '25 22:06 hangfei

yes, this is in progress.

genquan9 avatar Jun 02 '25 17:06 genquan9

The head supports claude4 models now, https://github.com/google/adk-python/blob/main/src/google/adk/models/anthropic_llm.py#L211.

genquan9 avatar Jun 02 '25 18:06 genquan9