visualize_speaker_transitions_dict

visualize_speaker_transitions_dict(
    speaker_transitions_dict: dict[str, list[Agent]],
    agents: list[Agent],
    export_path: str | None = None
) -> None

Visualize the speaker_transitions_dict using networkx.

Parameters:
NameDescription
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]
export_pathThe path to export the graph.

If None, the graph will be shown.

Type: str | None

Default: None
Returns:
TypeDescription
NoneNone