mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
205cd700c8
* first commit to tau2-bench * tau2-bench agent * tau2 agent * add condition * checkpoint * bug fix * add tests * fix tests * add comments * add comments * minor fix * fix * batch test script * . * init.bak -> init.py * fix mypy * update readme * fix env * remove temp files * setup tests * fix gaia tasks * fix tau2 tests * fix coverage * fix default version * update cookiecutter template --------- Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
21 lines
442 B
Python
21 lines
442 B
Python
# Copyright (c) Microsoft. All rights reserved.
|
|
|
|
import shutil
|
|
from pathlib import Path
|
|
|
|
|
|
def purge_tau2_data():
|
|
"""Purge tau2 data directory if it exists."""
|
|
|
|
data_dir = Path.cwd() / "data"
|
|
|
|
if data_dir.exists():
|
|
shutil.rmtree(data_dir)
|
|
print(f"Data directory at {data_dir} has been purged.")
|
|
else:
|
|
print("Data directory not found. Skipping purge.")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
purge_tau2_data()
|