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

Method __init__

mini_claude_code/runtime.py:282–300  ·  view source on GitHub ↗

源码: conversation.rs:117-133

(
        self,
        session: Session,
        api_client,  # ApiClient Protocol
        tool_executor: ToolExecutor,
        permission_policy: PermissionPolicy,
        system_prompt: list[str],
        hook_runner: Optional[HookRunner] = None,
    )

Source from the content-addressed store, hash-verified

280
281class ConversationRuntime:
282 def __init__(
283 self,
284 session: Session,
285 api_client, # ApiClient Protocol
286 tool_executor: ToolExecutor,
287 permission_policy: PermissionPolicy,
288 system_prompt: list[str],
289 hook_runner: Optional[HookRunner] = None,
290 ):
291 """源码: conversation.rs:117-133"""
292 self._session = session
293 self._api_client = api_client
294 self._tool_executor = tool_executor
295 self._permission_policy = permission_policy
296 self._system_prompt = system_prompt
297 self._hook_runner = hook_runner or HookRunner()
298 self._max_iterations = DEFAULT_MAX_ITERATIONS
299 self._usage_tracker = UsageTracker()
300 self._auto_compact_threshold = DEFAULT_AUTO_COMPACT_THRESHOLD
301
302 # --------------------------------------------------------
303 # Builder 方法 — 链式配置

Callers

nothing calls this directly

Calls 2

HookRunnerClass · 0.90
UsageTrackerClass · 0.70

Tested by

no test coverage detected