I created an agent using the ADK and deployed it in GCP Project A. Within my organization, we have Gemini Enterprise activated in GCP Project B.
Is it possible to register the agent deployed in GCP Project A to Gemini Enterprise in the GCP Project B? I would like to know if this configuration is supported across different GCP projects.
I agree with you @LeoK , that seems like a good practice for keeping the agent costs assigned to the correct bill within the organization.
However, Iām currently receiving this error when attempting to register an ADK agent deployed in an Agent Engine from a different GCP project: āAgent and reasoning engine must be in the same project. Agent project number: āGE GCP Proj Numberā, reasoning engine project number: āADK Agent GCP Proj Numberāā.
I took the time to deploy 2 GCP projects to sort this out.
I had project A and project B (with Gemini Enterprise) and unfortunately, Iām having the same error as you. I have tried from the Console and using curl. I even tried bypassing front-end control, in vain. There is a clear check on the project number.
Note that:
Agents are in preview mode in Gemini Enterprise
The documentation is nebulous and seems not up to date. Some parts are just plain wrong (ex: Agent Engine reasoning engine resource path)
I have sent feedback to Google from the documentation page.. letās hope this gets fixed as the implementation and the documentation seem to indicate that it should be possible.
At the moment, I think that you should consider these 2 possibilities:
Use Agent2Agent protocol as itās mentioned:
Custom Agents deployed anywhere that speak A2A protocol.
Host your agent on Project B until cross-project Agent x Gemini Enterprise is supported
I wish I could have delivered you a more pleasant answer, but I think thatās not possible, at least, for the moment.