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

Method chat

backend/agent/tests/test_code_agent.py:36–43  ·  view source on GitHub ↗
(self, messages: list[dict], **kwargs: Any)

Source from the content-addressed store, hash-verified

34 self._call_idx = 0
35
36 def chat(self, messages: list[dict], **kwargs: Any) -> LLMResponse:
37 self.calls.append({"messages": messages, **kwargs})
38 if self._responses:
39 text = self._responses[min(self._call_idx, len(self._responses) - 1)]
40 else:
41 text = '```filename:main.py\nprint("hello")\n```'
42 self._call_idx += 1
43 return LLMResponse(content=text, model="fake-model")
44
45
46@dataclass

Calls 2

LLMResponseClass · 0.90
appendMethod · 0.45

Tested by

no test coverage detected