feat: made program reset LLM

This commit is contained in:
Pim Hutting
2026-01-02 15:13:04 +00:00
parent 2366255b92
commit 6ca86e4b81
5 changed files with 65 additions and 4 deletions

View File

@@ -52,6 +52,10 @@ class LLMAgent(BaseAgent):
await self._process_bdi_message(prompt_message)
except ValidationError:
self.logger.debug("Prompt message from BDI core is invalid.")
elif msg.sender == settings.agent_settings.bdi_program_manager_name:
if msg.body == "clear_history":
self.logger.debug("Clearing conversation history.")
self.history.clear()
else:
self.logger.debug("Message ignored (not from BDI core.")