MCPcopy Create free account
hub / github.com/Emmimal/control-layer / register

Method register

control_layer.py:671–674  ·  view source on GitHub ↗
(self, name: str, fn: Callable[[str], str])

Source from the content-addressed store, hash-verified

669 self._order: List[str] = []
670
671 def register(self, name: str, fn: Callable[[str], str]) -> None:
672 self._strategies[name] = fn
673 if name not in self._order:
674 self._order.append(name)
675
676 def route(
677 self, user_input: str, failure_mode: FailureMode

Calls

no outgoing calls