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

Function parse_agent_arg

codeclash/arenas/cyborg/runtime/run_cyborg.py:294–302  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

292
293
294def parse_agent_arg(value: str) -> tuple[str, str]:
295 if "=" not in value:
296 raise argparse.ArgumentTypeError("--agent values must be NAME=/path/to/cyborg_agent.py")
297 name, path = value.split("=", 1)
298 if not name:
299 raise argparse.ArgumentTypeError("agent name cannot be empty")
300 if not Path(path).exists():
301 raise argparse.ArgumentTypeError(f"agent path does not exist: {path}")
302 return name, path
303
304
305def main() -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected