Microsoft Agent Framework Workflow: Understanding Edges & Message Routing
Learn Microsoft AI explains how edges in Microsoft Agent Framework workflows control message routing between executors, including conditional paths for dynamic branching based on message content or execution results.
Overview
Edges define how messages move between executors in a Microsoft Agent Framework workflow.
What an edge represents
- An edge is the connection between executors in a workflow graph.
- It determines the path data follows as it moves from one executor to another.
Message routing and control flow
- Edges control how messages are routed through the workflow.
- This routing determines which executor runs next and how information flows through the graph.
Conditional edges for intelligent routing
Edges can include conditions to support dynamic branching, such as:
- Routing based on message content
- Routing based on execution results
- Routing based on custom logic
Why this matters for agent orchestration
- Conditional routing enables workflows to branch dynamically.
- Different executors can be invoked depending on runtime conditions.
- This supports flexible, event-driven orchestration patterns for agent workflows.