(self, prompt, speech_module)
| 25 | model_provider=provider.get_model_name()) |
| 26 | |
| 27 | async def process(self, prompt, speech_module) -> str: |
| 28 | exec_success = False |
| 29 | prompt += f"\nYou must work in directory: {self.work_dir}" |
| 30 | self.memory.push('user', prompt) |
| 31 | while exec_success is False and not self.stop: |
| 32 | await self.wait_message(speech_module) |
| 33 | animate_thinking("Thinking...", color="status") |
| 34 | answer, reasoning = await self.llm_request() |
| 35 | self.last_reasoning = reasoning |
| 36 | exec_success, _ = self.execute_modules(answer) |
| 37 | answer = self.remove_blocks(answer) |
| 38 | self.last_answer = answer |
| 39 | self.status_message = "Ready" |
| 40 | return answer, reasoning |
| 41 | |
| 42 | if __name__ == "__main__": |
| 43 | pass |
nothing calls this directly
no test coverage detected