(
self,
api_key: str,
model: str,
tools: list[dict] | None = None,
emit_output: bool = True,
)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected