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

Method __init__

mini_claude_code/api_client.py:151–162  ·  view source on GitHub ↗
(
        self,
        api_key: str,
        model: str,
        tools: list[dict] | None = None,
        emit_output: bool = True,
    )

Source from the content-addressed store, hash-verified

149 """
150
151 def __init__(
152 self,
153 api_key: str,
154 model: str,
155 tools: list[dict] | None = None,
156 emit_output: bool = True,
157 ):
158 import anthropic
159 self.client = anthropic.Anthropic(api_key=api_key)
160 self.model = model
161 self.tools = tools or []
162 self.emit_output = emit_output
163
164 def stream(self, system_prompt: list[str], messages: list[Message]) -> list[AssistantEvent]:
165 import sys as _sys

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected