MCPcopy Create free account
hub / github.com/Louisym/MiniCC / execute

Method execute

tutorials/18_design_patterns_for_agents.py:512–515  ·  view source on GitHub ↗
(self, name: str, inp: str)

Source from the content-addressed store, hash-verified

510 return self # 链式调用
511
512 def execute(self, name: str, inp: str) -> str:
513 if name not in self._handlers:
514 raise KeyError(f"unknown tool: {name}")
515 return self._handlers[name](inp)
516
517 executor = (
518 StaticToolExecutor()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected