MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / _delete_dir

Method _delete_dir

AgentBench.old/src/tasks/card_game/task.py:50–54  ·  view source on GitHub ↗
(self, directory)

Source from the content-addressed store, hash-verified

48 return ''.join(random.choices(chars, k=length))
49
50 def _delete_dir(self, directory):
51 try:
52 shutil.rmtree(directory)
53 except Exception as e:
54 print('Failed to delete %s. Reason: %s' % (directory, e))
55
56 # run for one round
57 def get_data(self) -> Dataset[Dict, Dict]:

Callers 1

predict_singleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected