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

Method __init__

tutorials/05_agentic_loop_complete.py:244–259  ·  view source on GitHub ↗
(
        self,
        session: Session,
        api_client: ApiClient,
        tool_executor: ToolExecutor,
        permission_policy: PermissionPolicy,
        system_prompt: list[str],
        max_iterations: int = 10,
    )

Source from the content-addressed store, hash-verified

242 """
243
244 def __init__(
245 self,
246 session: Session,
247 api_client: ApiClient,
248 tool_executor: ToolExecutor,
249 permission_policy: PermissionPolicy,
250 system_prompt: list[str],
251 max_iterations: int = 10,
252 ):
253 self.session = session
254 self.api_client = api_client
255 self.tool_executor = tool_executor
256 self.permission_policy = permission_policy
257 self.system_prompt = system_prompt
258 self.max_iterations = max_iterations
259 self.usage_tracker = UsageTracker()
260
261 def run_turn(
262 self,

Callers

nothing calls this directly

Calls 1

UsageTrackerClass · 0.70

Tested by

no test coverage detected