graph_utils
autogen.graph_utils.invert_disallowed_to_allowed
invert_disallowed_to_allowed
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:Name | Description |
---|---|
disallowed_speaker_transitions_dict | Type: dict |
agents | Type: list[autogen.agentchat.agent.Agent] |