@@ -115,7 +115,7 @@ async def should_agent_terminate(self, agent, history):
115115 return terminate
116116
117117 def __init__ (
118- self ,
118+ self ,
119119 agent_dict ,
120120 exception_types : tuple = (Exception ,),
121121 max_retries : int = 10 ,
@@ -124,7 +124,7 @@ def __init__(
124124 simple_truncation : int = None ,
125125 ):
126126 """Initialize the CommsManager and agent_chat with the given agents.
127-
127+
128128 Args:
129129 agent_dict: Dictionary of agents
130130 exception_types: Tuple of exception types that should trigger a retry
@@ -139,7 +139,7 @@ def __init__(
139139 self .backoff_factor = backoff_factor
140140 self .exception_types = exception_types
141141 self .simple_truncation = simple_truncation
142-
142+
143143 # Initialize the group chat (maintaining original functionality)
144144 self .group_chat = AgentGroupChat (
145145 agents = agent_dict .values (),
@@ -168,12 +168,12 @@ async def async_invoke(self) -> AsyncIterable[ChatMessageContent]:
168168 # Grab a snapshot of the history of the group chat
169169 # Using copy to avoid getting a reference to the original list
170170 history_snap = copy .deepcopy (self .group_chat .history )
171-
171+
172172 self .logger .debug (
173173 "History before invoke: %s" ,
174174 [msg .name for msg in self .group_chat .history ],
175175 )
176-
176+
177177 # Get a fresh iterator from the function
178178 async_iter = self .group_chat .invoke ()
179179
@@ -257,4 +257,4 @@ async def async_invoke(self) -> AsyncIterable[ChatMessageContent]:
257257 )
258258
259259 await asyncio .sleep (current_delay )
260- current_delay *= self .backoff_factor
260+ current_delay *= self .backoff_factor
0 commit comments