-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: add optional per-agent Vertex AI project and location configuration #1431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: add optional per-agent Vertex AI project and location configuration #1431
Conversation
I needed just this, this merge would be awesome |
@avidela Purely for curiosity, what was the workaround that you were doing before this pull request? Make your own base class or make your own anthropic_llm class? |
@kanlanc Yeah, I have my own anthropic_llm class |
Could you help me understand how this would flow, You have your base LLM class that would call this anthropic class or? |
I need this too. |
Summary
Adds optional per agent project and location configuration for Vertex AI models ( Claude and Gemini)
Addresses issues:
Changes
project_id
andlocation
fields to Claude and Gemini classesTesting Plan
Unit Tests
tests/unittests/models/test_vertex_per_agent_config.py
E2E Testing
Creating repository https://github.com/avidela/adkfeat-add-project-location-config-to-vertex-models where I installed the wheel from this branch, and ran a normal multi_tool_agent and then a multi project and location agent, where I tested different projects and different regions in an agent -> sub_agents manner and it works.
Backward Compatibility
✅ Existing code using environment variables continues to work unchanged
✅ No breaking changes to existing APIs