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

Method check

tutorials/18_design_patterns_for_agents.py:946–949  ·  view source on GitHub ↗
(self, tool_name: str)

Source from the content-addressed store, hash-verified

944 self.blocked = set(blocked_tools)
945
946 def check(self, tool_name: str) -> tuple[bool, str]:
947 if tool_name in self.blocked:
948 return False, f"工具 '{tool_name}' 已被禁止"
949 return True, "允许"
950
951 # ==== 5. 依赖注入: Runtime ====
952

Callers 1

run_turnMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected