Python: Workflow Edge Groups (#393)

* Introducing edge groups

* Add conditional and partitioning edge groups; next add samples and tests

* Add unit tests

* Add samples

* Address comments 1

* Address comments 2

* Update conditional edge group to take in cases and default

* Minor updates to sample

* Collapsing Paritioning Edge group and Conditional Edge group to source edge group

* Improve sample clarity

* Name consolidation

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
This commit is contained in:
Tao Chen
2025-08-15 11:11:35 -07:00
committed by GitHub
Unverified
parent 19d91bb950
commit ed86baa6cb
18 changed files with 1672 additions and 232 deletions
@@ -32,6 +32,8 @@ _IMPORTS = [
"InMemoryCheckpointStorage",
"CheckpointStorage",
"WorkflowCheckpoint",
"Case",
"Default",
]
@@ -6,7 +6,9 @@ from agent_framework_workflow import (
AgentExecutorResponse,
AgentRunEvent,
AgentRunStreamingEvent,
Case,
CheckpointStorage,
Default,
Executor,
ExecutorCompletedEvent,
ExecutorEvent,
@@ -34,7 +36,9 @@ __all__ = [
"AgentExecutorResponse",
"AgentRunEvent",
"AgentRunStreamingEvent",
"Case",
"CheckpointStorage",
"Default",
"Executor",
"ExecutorCompletedEvent",
"ExecutorEvent",