MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / run_agent

Method run_agent

codeclash/tournaments/pvp.py:154–158  ·  view source on GitHub ↗

Run a single agent for the current round.

(self, agent: Player, round_num: int)

Source from the content-addressed store, hash-verified

152 agent.environment.config.cwd,
153 f"/{OPPONENT_CODEBASES_DIR_NAME}/{agent.name}/",
154 )
155
156 with ThreadPoolExecutor() as executor:
157 futures = [executor.submit(self.run_agent, agent, round_num) for agent in self.agents]
158 for future in futures:
159 try:
160 future.result()
161 except Exception as e:

Callers

nothing calls this directly

Calls 3

pre_run_hookMethod · 0.80
post_run_hookMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected