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

Method __init__

tutorials/18_design_patterns_for_agents.py:816–817  ·  view source on GitHub ↗
(self, workspace: str)

Source from the content-addressed store, hash-verified

814 class WorkspaceOnly(IsolationStrategy):
815 """WorkspaceOnly 模式: 只允许访问工作区"""
816 def __init__(self, workspace: str):
817 self.workspace = workspace
818 def check_path(self, path):
819 return path.startswith(self.workspace)
820 def name(self): return "WorkspaceOnly"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected