feat: made program reset LLM

also added test_bdi_program_manager back cause
it was somehow missing in my files

ref: N25B-355
This commit is contained in:
Pim Hutting
2025-12-15 17:57:38 +01:00
parent de2e56ffce
commit cd0ca77af9
4 changed files with 143 additions and 2 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.")