Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
chore: log to stdout on message buffer autoclear step (#1413)
cthomas07411bcba237
diff --git a/letta/agent.py b/letta/agent.pyindex 9fa442eb3..cfdfd7a87 100644--- a/letta/agent.py+++ b/letta/agent.py@@ -760,6 +760,7 @@ class Agent(BaseAgent):breakif self.agent_state.message_buffer_autoclear:+ self.logger.info("Autoclearing message buffer")self.agent_state = self.agent_manager.trim_all_in_context_messages_except_system(self.agent_state.id, actor=self.user)return LettaUsageStatistics(**total_usage.model_dump(), step_count=step_count, steps_messages=steps_messages)