graph_utils
autogen.graph_utils.has_self_loops
has_self_loops
Check if there are self loops in the allowed_speaker_transitions.
Name | Description |
---|---|
allowed_speaker_transitions | A dictionary of keys and list as values. The keys are the names of the agents, and the values are the names of the agents that the key agent can transition Type: dict[str, list[Agent]] |
Type | Description |
---|---|
bool | True if there are self loops in the allowed_speaker_transitions_Dict. |