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

Method __init__

mini_claude_code/multi_agent.py:211–226  ·  view source on GitHub ↗

参数: store_dir: agent 文件存储目录 (manifest JSON + output MD) spawn_fn: 自定义 spawn 策略。None 时使用默认的 threading.Thread。 CC 对照: - store_dir: 环境变量 CLAWD_AGENT_STORE 或默认 ~/.clawd/agents/ - spawn_fn: lib.rs:1347 的泛型 F: FnOnce(AgentJob) -> Result<(), String>

(
        self,
        store_dir: Path,
        spawn_fn: Optional[SpawnFn] = None,
    )

Source from the content-addressed store, hash-verified

209
210class AgentOrchestrator:
211 def __init__(
212 self,
213 store_dir: Path,
214 spawn_fn: Optional[SpawnFn] = None,
215 ):
216 """
217 参数:
218 store_dir: agent 文件存储目录 (manifest JSON + output MD)
219 spawn_fn: 自定义 spawn 策略。None 时使用默认的 threading.Thread。
220
221 CC 对照:
222 - store_dir: 环境变量 CLAWD_AGENT_STORE 或默认 ~/.clawd/agents/
223 - spawn_fn: lib.rs:1347 的泛型 F: FnOnce(AgentJob) -> Result<(), String>
224 """
225 self._store_dir = store_dir
226 self._spawn_fn = spawn_fn or self._default_spawn
227
228 # --------------------------------------------------------
229 # spawn_agent — 创建并启动一个 subagent

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected