TransitionGraph
autogen.beta.network.transitions.TransitionGraph dataclass #
TransitionGraph(initial_speaker, transitions=list(), default_target=TerminateTarget(), max_turns=None)
The orchestrator script: initial speaker + transitions + default fall-through + optional turn cap.
default_target class-attribute instance-attribute #
default_target = field(default_factory=TerminateTarget)
to_dict #
Serialise to a JSON-friendly dict for SessionMetadata.knobs.
Source code in autogen/beta/network/transitions.py
dumps #
loads classmethod #
Inverse of :meth:to_dict / :meth:dumps.
Accepts either a JSON string or already-parsed dict. registry defaults to the process-wide default — pass an explicit instance when you need isolation (e.g. multi-tenant tests) or a registry seeded with custom targets / conditions.
Source code in autogen/beta/network/transitions.py
round_robin classmethod #
Cycle through participants in order; terminate after max_turns.
Source code in autogen/beta/network/transitions.py
sequence classmethod #
Pipeline: steps[0] → steps[1] → ... → terminate.