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

Method _save

codeclash/tournaments/single_player.py:134–138  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

132 """Update mirror agent's codebase with the main agent's changes."""
133 full_diff = self._get_round_diff(self.agent.name, round_num)
134 full_diff = filter_git_diff(full_diff)
135 self.mirror_agent.reset_and_apply_patch(full_diff)
136
137 def _save(self) -> None:
138 self.local_output_dir.mkdir(parents=True, exist_ok=True)
139 atomic_write(self.local_output_dir / "metadata.json", json.dumps(self.get_metadata(), indent=2))
140 if is_running_in_aws_batch():
141 s3_log_sync(self.local_output_dir, logger=self.logger)

Callers 2

run_training_roundMethod · 0.95
endMethod · 0.95

Calls 4

get_metadataMethod · 0.95
atomic_writeFunction · 0.90
is_running_in_aws_batchFunction · 0.90
s3_log_syncFunction · 0.90

Tested by

no test coverage detected