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

Method __init__

tutorials/05_agentic_loop_complete.py:105–107  ·  view source on GitHub ↗
(self, mode: PermissionMode)

Source from the content-addressed store, hash-verified

103
104class PermissionPolicy:
105 def __init__(self, mode: PermissionMode):
106 self.mode = mode
107 self._requirements: dict[str, PermissionMode] = {}
108
109 def with_tool_requirement(self, tool_name: str, required: PermissionMode) -> "PermissionPolicy":
110 self._requirements[tool_name] = required

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected