dev_fix: update __init__.py to set environment variable for Google GenAI SDK to use Vertex AI

This commit is contained in:
2026-02-20 23:24:26 +00:00
parent e4e2ed1023
commit 98d23b80e4

View File

@@ -1 +1,10 @@
from . import agent
"""Package export for the ADK root agent."""
import os
# Ensure the Google GenAI SDK talks to Vertex AI instead of the public Gemini API.
os.environ.setdefault("GOOGLE_GENAI_USE_VERTEXAI", "true")
from .agent import root_agent
__all__ = ["root_agent"]