MCPcopy Create free account
hub / github.com/Claw-AI-Lab/Claw-AI-Lab / FakeLLMClient

Class FakeLLMClient

backend/agent/tests/test_rc_executor.py:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18
19class 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
32class FakeLLMClientWithConfig(FakeLLMClient):

Calls

no outgoing calls