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

Function get_config

codeclash/utils/generate_confs.py:70–89  ·  view source on GitHub ↗
(rounds: int, simulations: int, arena: CodeArena, players: list[dict], prompt_func=prompt_game_desc)

Source from the content-addressed store, hash-verified

68
69
70def get_config(rounds: int, simulations: int, arena: CodeArena, players: list[dict], prompt_func=prompt_game_desc):
71 return {
72 "tournament": {
73 "rounds": rounds,
74 },
75 "game": {
76 "name": arena.name,
77 "sims_per_round": simulations,
78 "args": arena.default_args,
79 },
80 "players": [
81 {
82 "agent": "mini",
83 "name": get_name(p),
84 "config": {"agent": IncludeTag("mini/default.yaml"), "model": p},
85 }
86 for p in players
87 ],
88 "prompts": {"game_description": prompt_func(arena, rounds, players)},
89 }
90
91
92def clean_config(config_path: str):

Callers 3

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.85

Calls 2

get_nameFunction · 0.85
IncludeTagClass · 0.85

Tested by

no test coverage detected