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

Function dump_config

scripts/eval_step_attack.py:368–373  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

366
367@beartype
368def dump_config(args: argparse.Namespace) -> None:
369 config_file = Path(args.result_dir) / "config.json"
370 if not config_file.exists():
371 with open(config_file, "w") as f:
372 json.dump(vars(args), f, indent=4)
373 logger.info(f"Dump config to {config_file}")
374
375
376if __name__ == "__main__":

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected