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

Function dump_config

eval_heldout/webarena/run.py:397–402  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

395
396@beartype
397def dump_config(args: argparse.Namespace) -> None:
398 config_file = Path(args.result_dir) / "config.json"
399 if not config_file.exists():
400 with open(config_file, "w") as f:
401 json.dump(vars(args), f, indent=4)
402 logger.info(f"Dump config to {config_file}")
403
404
405if __name__ == "__main__":

Callers 1

run.pyFile · 0.85

Calls 1

PathClass · 0.50

Tested by

no test coverage detected