Skip to content

Commit 6c3882f

Browse files
hoonjicopybara-github
authored andcommitted
fix: Creates evalset directory on evalset create
PiperOrigin-RevId: 824746602
1 parent 87dcb3f commit 6c3882f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/google/adk/evaluation/local_eval_sets_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ def _validate_id(self, id_name: str, id_value: str):
324324
)
325325

326326
def _write_eval_set_to_path(self, eval_set_path: str, eval_set: EvalSet):
327+
os.makedirs(os.path.dirname(eval_set_path), exist_ok=True)
327328
with open(eval_set_path, "w", encoding="utf-8") as f:
328329
f.write(
329330
eval_set.model_dump_json(

0 commit comments

Comments
 (0)