Skip to content

AgentTarget

autogen.beta.network.transitions.AgentTarget dataclass #

AgentTarget(agent_id)

Resolve to a named agent.

agent_id instance-attribute #

agent_id

name class-attribute #

name = 'agent'

resolve #

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