MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / executor_factory

Function executor_factory

KVCOMM/tools/coding/executor_factory.py:10–16  ·  view source on GitHub ↗
(lang: str)

Source from the content-addressed store, hash-verified

8}
9
10def executor_factory(lang: str) -> Executor:
11
12 if lang not in EXECUTOR_MAPPING:
13 raise ValueError(f"Invalid language for executor: {lang}")
14
15 executor_class = EXECUTOR_MAPPING[lang]
16 return executor_class()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected