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

Method __init__

tutorials/18_design_patterns_for_agents.py:540–542  ·  view source on GitHub ↗
(self, active_mode: PermissionMode)

Source from the content-addressed store, hash-verified

538 class PermissionPolicy:
539 """对应 permissions.rs:49-73"""
540 def __init__(self, active_mode: PermissionMode):
541 self._active_mode = active_mode
542 self._requirements: dict[str, PermissionMode] = {}
543
544 def with_tool_requirement(
545 self, tool_name: str, required: PermissionMode

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected