Skip to content

default_expected_next

autogen.beta.network.adapters.base.default_expected_next #

default_expected_next(metadata, state)

Default expected_next: no specific participant expected.

Free-form adapters (e.g. conversation) delegate to this from expected_next. Adapters that enforce turn ordering override to surface the expected speaker.

Source code in autogen/beta/network/adapters/base.py
def default_expected_next(
    metadata: ChannelMetadata,
    state: AdapterState,
) -> "ExpectedTurn | None":
    """Default ``expected_next``: no specific participant expected.

    Free-form adapters (e.g. conversation) delegate to this from
    ``expected_next``. Adapters that enforce turn ordering override
    to surface the expected speaker.
    """
    return None