MCPcopy Create free account
hub / github.com/ChenWu98/agent-attack / dump_config

Function dump_config

scripts/eval_step.py:302–307  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

300
301@beartype
302def dump_config(args: argparse.Namespace) -> None:
303 config_file = Path(args.result_dir) / "config.json"
304 if not config_file.exists():
305 with open(config_file, "w") as f:
306 json.dump(vars(args), f, indent=4)
307 logger.info(f"Dump config to {config_file}")
308
309
310if __name__ == "__main__":

Callers 1

eval_step.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected