mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
fix: Creates evalset directory on evalset create
PiperOrigin-RevId: 824746602
This commit is contained in:
committed by
Copybara-Service
parent
87dcb3f7ba
commit
6c3882f2d6
@@ -324,6 +324,7 @@ class LocalEvalSetsManager(EvalSetsManager):
|
||||
)
|
||||
|
||||
def _write_eval_set_to_path(self, eval_set_path: str, eval_set: EvalSet):
|
||||
os.makedirs(os.path.dirname(eval_set_path), exist_ok=True)
|
||||
with open(eval_set_path, "w", encoding="utf-8") as f:
|
||||
f.write(
|
||||
eval_set.model_dump_json(
|
||||
|
||||
Reference in New Issue
Block a user