invert_disallowed_to_allowed

invert_disallowed_to_allowed(disallowed_speaker_transitions_dict: dict, agents: list[autogen.agentchat.agent.Agent]) -> dict

Start with a fully connected allowed_speaker_transitions_dict of all agents. Remove edges from the fully connected allowed_speaker_transitions_dict according to the disallowed_speaker_transitions_dict to form the allowed_speaker_transitions_dict.

Parameters:
NameDescription
disallowed_speaker_transitions_dictType: dict
agentsType: list[autogen.agentchat.agent.Agent]