MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / chat

Method chat

tests/test_compact_provider_chat_async.py:49–55  ·  view source on GitHub ↗
(self, messages, tools=None, **kwargs)

Source from the content-addressed store, hash-verified

47 self.chat_thread: int | None = None
48
49 def chat(self, messages, tools=None, **kwargs) -> ChatResponse:
50 self.chat_thread = threading.get_ident()
51 self.calls.append({"messages": messages, "tools": tools, "kwargs": kwargs})
52 return ChatResponse(
53 content="SUMMARY_TEXT", model="m", usage={"input_tokens": 1, "output_tokens": 1},
54 finish_reason="stop",
55 )
56
57 def chat_stream(self, messages, tools=None, **kwargs):
58 yield "x"

Calls 2

ChatResponseClass · 0.90
appendMethod · 0.45

Tested by

no test coverage detected