chore: log to stdout on message buffer autoclear step (#1413)
This commit is contained in:
@@ -760,6 +760,7 @@ class Agent(BaseAgent):
|
||||
break
|
||||
|
||||
if 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)
|
||||
|
||||
Reference in New Issue
Block a user