check_graph_validity

check_graph_validity(allowed_speaker_transitions_dict: dict[str, list[Agent]], agents: list[Agent]) -> None

Check the validity of the allowed_speaker_transitions_dict.

Parameters:
NameDescription
allowed_speaker_transitions_dictA 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 to.

Type: dict[str, list[Agent]]
agentsA list of Agents

Type: list[Agent]