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

Method _random_string

AgentBench.old/src/tasks/card_game/task.py:46–48  ·  view source on GitHub ↗
(self, length)

Source from the content-addressed store, hash-verified

44 return {"win_round": win_round, "total_round": total_round, "win_rate": win_round / total_round}
45
46 def _random_string(self, length):
47 chars = string.ascii_lowercase + string.digits
48 return ''.join(random.choices(chars, k=length))
49
50 def _delete_dir(self, directory):
51 try:

Callers 1

predict_singleMethod · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected