(self, messages, tools=None, **kwargs)
| 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" |
no test coverage detected