diff --git a/swarms/structs/agent.py b/swarms/structs/agent.py index a4c04a16..1c6cc24c 100644 --- a/swarms/structs/agent.py +++ b/swarms/structs/agent.py @@ -1711,7 +1711,7 @@ class Agent: # Shorten the context window if it exceeds the limit, keeping the last n tokens, need to implement the indexing if count > self.context_length: - history = history[-self.context_length :] + history = history[-self.context_length :] # noqa: E203 return history