Skip to content

Commit 1601476

Browse files
wyf7107copybara-github
authored andcommitted
Fix eval run without engaging agent result in api key missing error
PiperOrigin-RevId: 757015581
1 parent 9a8c77e commit 1601476

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/google/adk/cli/fast_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ async def run_eval(
462462
"""Runs an eval given the details in the eval request."""
463463
# Create a mapping from eval set file to all the evals that needed to be
464464
# run.
465+
envs.load_dotenv_for_agent(os.path.basename(app_name), agent_dir)
465466
eval_set_file_path = _get_eval_set_file_path(
466467
app_name, agent_dir, eval_set_id
467468
)

0 commit comments

Comments
 (0)