- 
  Notifications
 
You must be signed in to change notification settings  - Fork 2.2k
 
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
feat: add optional per-agent Vertex AI project and location configuration #1431
Conversation
 
 
 
 kanlanc
 
 
 
 commented
 Jun 22, 2025 
 
 
 
I needed just this, this merge would be awesome
 
 
 
 kanlanc
 
 
 
 commented
 Jun 22, 2025 
 
 
 
@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
 
 
 
 kanlanc
 
 
 
 commented
 Jun 22, 2025 
 
 
 
Could you help me understand how this would flow,
You have your base LLM class that would call this anthropic class or?
 
 
 
 comlhj1114
 
 
 
 commented
 Jul 22, 2025 
 
 
 
I need this too.
I want to use Gemini 2.5 Flash-Lite (only available global location) on Vertex AI Agent Engine (there is no global location now)
Hi @avidela and thanks to everyone who participated in this thread.
We're currently doing some housekeeping on our pull request queue. Given the rapid pace of development and the number of updates since this was last active, there's a good chance this pull request needs to be caught up to the latest version. To help us keep our backlog focused on current pull requests, we are closing this as stale.
If you're still interested in contributing to this change, could you please update to the very latest version of the library and create a new pull request? Our team will be glad to help with the refreshed PRs and answer any questions!
Thanks for your contribution and understanding!
Uh oh!
There was an error while loading. Please reload this page.
Summary
Adds optional per agent project and location configuration for Vertex AI models ( Claude and Gemini)
Addresses issues:
Changes
project_idandlocationfields to Claude and Gemini classesTesting Plan
Unit Tests
tests/unittests/models/test_vertex_per_agent_config.pyE2E 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.
multi_project_location_test
regular_agent
Backward Compatibility
✅ Existing code using environment variables continues to work unchanged
✅ No breaking changes to existing APIs