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

Method execute

tutorials/05_agentic_loop_complete.py:131–138  ·  view source on GitHub ↗
(self, tool_name: str, tool_input: str)

Source from the content-addressed store, hash-verified

129 return self
130
131 def execute(self, tool_name: str, tool_input: str) -> tuple[str, bool]:
132 if tool_name not in self._handlers:
133 return (f"Unknown tool: {tool_name}", True)
134 try:
135 result = self._handlers[tool_name](tool_input)
136 return (result, False)
137 except Exception as e:
138 return (str(e), True)
139
140
141# ======================================================================

Callers 1

run_turnMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected