From 16014764b6de8997e876ddd62af37c8773a6f704 Mon Sep 17 00:00:00 2001 From: Yifan Wang Date: Fri, 9 May 2025 21:01:48 -0700 Subject: [PATCH] Fix eval run without engaging agent result in api key missing error PiperOrigin-RevId: 757015581 --- src/google/adk/cli/fast_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/google/adk/cli/fast_api.py b/src/google/adk/cli/fast_api.py index ec172dd..179b827 100644 --- a/src/google/adk/cli/fast_api.py +++ b/src/google/adk/cli/fast_api.py @@ -462,6 +462,7 @@ def get_fast_api_app( """Runs an eval given the details in the eval request.""" # Create a mapping from eval set file to all the evals that needed to be # run. + envs.load_dotenv_for_agent(os.path.basename(app_name), agent_dir) eval_set_file_path = _get_eval_set_file_path( app_name, agent_dir, eval_set_id )