Skip to content

TerminateTarget

autogen.beta.network.transitions.TerminateTarget dataclass #

TerminateTarget(reason='after_work')

End the session with reason.

reason class-attribute instance-attribute #

reason = 'after_work'

name class-attribute #

name = 'terminate'

resolve #

resolve(state, envelope)
Source code in autogen/beta/network/transitions.py
def resolve(self, state: "WorkflowState", envelope: Envelope) -> TransitionDecision:
    return TransitionDecision(next_speaker=None, close_reason=self.reason)