| 17 | |
| 18 | |
| 19 | class FakeLLMClient: |
| 20 | def __init__(self, response_text: str = "mock response"): |
| 21 | self.response_text: str = response_text |
| 22 | self.calls: list[list[dict[str, str]]] = [] |
| 23 | |
| 24 | def chat(self, messages: list[dict[str, str]], **kwargs: object): |
| 25 | _ = kwargs |
| 26 | self.calls.append(messages) |
| 27 | from researchclaw.llm.client import LLMResponse |
| 28 | |
| 29 | return LLMResponse(content=self.response_text, model="fake-model") |
| 30 | |
| 31 | |
| 32 | class FakeLLMClientWithConfig(FakeLLMClient): |
no outgoing calls