microsoft / microsoft/agent-framework

Python: No API support for labels in Edges (for workflow visualizations

Open
#3,976 1 comment 1 reaction 1 assignee View on GitHub

Nobody has claimed this yet.

.NET python workflows
Dominant language
Python
Stars
13.6k
Forks
2.3k
Avg merge
2d 45m
Merged PRs (30d)
358

Description

Description

The WorkflowBuilder API lacks support for adding labels or annotations to workflow edges. This makes it impossible to document edge purpose, data flow, or business logic directly in workflow visualizations.

Edge labels are essential for:
• Self-documenting workflows - Understanding workflow logic without examining code
• Conditional edge clarity - Explaining what conditions mean (e.g., "High Quality" vs "Low Quality")
• Data flow documentation - Showing what data flows between executors
• Stakeholder communication - Making diagrams understandable to non-technical audiences

Both Mermaid and DOT/Graphviz formats support labeled edges, but there's no way to specify labels in the workflow builder API.

This is supported in .NET and should also be in Python, for API Parity.

Code Sample

Language/SDK

Both

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.