Skip to content

Commit

Permalink
Corrected missing variable from nested chat PR
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Sze <[email protected]>
  • Loading branch information
marklysze committed Dec 6, 2024
1 parent 482a60e commit b9352da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autogen/agentchat/contrib/swarm_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,13 @@ def __init__(

self.after_work = None

# use in the tool execution agent to transfer to the next agent
# Used in the tool execution agent to transfer to the next agent
self._next_agent = None

# Store nested chats hand offs as we'll establish these in the initiate_swarm_chat
# List of Dictionaries containing the nested_chats and condition
self._nested_chat_handoffs = []

self.register_update_agent_before_reply(update_agent_before_reply)

def register_update_agent_before_reply(self, functions: Optional[Union[List[Callable], Callable]]):
Expand Down

0 comments on commit b9352da

Please sign in to comment.