Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
'AmlInvestigationAnalyst'
"""

import os

from aieng.agent_evals.aml_investigation.data import AnalystOutput
from aieng.agent_evals.async_client_manager import AsyncClientManager
from aieng.agent_evals.db_manager import DbManager
Expand Down Expand Up @@ -231,6 +233,11 @@ def create_aml_investigation_agent(
"""
# Get the client manager singleton instance
client_manager = AsyncClientManager.get_instance()

# Google ADK reads GOOGLE_API_KEY from the environment directly.
# Bridge from OPENAI_API_KEY (or GEMINI_API_KEY) if not already set.
os.environ.setdefault("GOOGLE_API_KEY", client_manager.configs.openai_api_key.get_secret_value())

db = DbManager().aml_db(agent_name=name)

# Initialize tracing if enabled and a name is provided
Expand Down
Loading