Skip to content

FromSpeaker

autogen.beta.network.transitions.FromSpeaker dataclass #

FromSpeaker(agent_id)

Fires when the just-accepted envelope was sent by agent_id.

agent_id instance-attribute #

agent_id

name class-attribute #

name = 'from_speaker'

evaluate #

evaluate(state, envelope)
Source code in autogen/beta/network/transitions.py
def evaluate(self, state: "WorkflowState", envelope: Envelope) -> bool:
    return envelope.sender_id == self.agent_id