Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions vertexai/agent_engines/templates/adk.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,11 @@ def set_up(self):
from google.adk.memory.in_memory_memory_service import InMemoryMemoryService

os.environ["GOOGLE_GENAI_USE_VERTEXAI"] = "1"
# --- BEGIN BOUND TOKEN PATCH ---
# Set GOOGLE_API_PREVENT_AGENT_TOKEN_SHARING_FOR_GCP_SERVICES to false
# to disable bound token sharing.
os.environ["GOOGLE_API_PREVENT_AGENT_TOKEN_SHARING_FOR_GCP_SERVICES"] = "false"
# --- END BOUND TOKEN PATCH ---
project = self._tmpl_attrs.get("project")
if project:
os.environ["GOOGLE_CLOUD_PROJECT"] = project
Expand Down
Loading