Skip to content

ConversationState

autogen.beta.network.adapters.conversation.ConversationState dataclass #

ConversationState(turn_count=0, last_speaker_id=None, last_envelope_id=None)

Folded state for a conversation session.

Conversations have no per-turn ordering constraint, so the state only tracks bookkeeping for views and observability — the adapter never returns a next_state from on_accepted.

turn_count class-attribute instance-attribute #

turn_count = 0

last_speaker_id class-attribute instance-attribute #

last_speaker_id = None

last_envelope_id class-attribute instance-attribute #

last_envelope_id = None