Python: Define Workflow and Executor APIs (#272)

* Workflow init commit

* Add samples and clean up

* ExecutionContext -> WorkflowContext

* Address comments 1

* Fix mypy

* flatting folder structure, and rename contexts

* Remove add_loop

* Add map reduce sample, remove Activation conditions

* Add AgentExecutor and allow multiple handlers per executor

* Minor improvement

* Add RequestInfoExecutor

* Add unit tests part 1

* Address comments 2

* Pre-commit update

* Add run method and more unit tests

* Add xml docs

* run_stream -> run_streaming

* message_handler -> handler

---------

Co-authored-by: Chris <66376200+crickman@users.noreply.github.com>
Co-authored-by: Evan Mattson <evan.mattson@microsoft.com>
This commit is contained in:
Tao Chen
2025-08-06 16:26:15 -07:00
committed by GitHub
Unverified
parent 0d4d7abde1
commit c8694a8c76
34 changed files with 5036 additions and 431 deletions
+3
View File
@@ -7,6 +7,7 @@ dependencies = [
"agent-framework",
"agent-framework-azure",
"agent-framework-foundry",
"agent_framework-workflow",
]
[dependency-groups]
@@ -42,6 +43,7 @@ dev = [
"diskcache",
"redis",
"sphinx-autobuild",
"aiofiles>=24.1.0",
]
[tool.uv]
@@ -61,6 +63,7 @@ exclude = [ "packages/agent_framework_project.egg-info" ]
agent-framework = { workspace = true }
agent-framework-azure = { workspace = true }
agent-framework-foundry = { workspace = true }
agent-framework-workflow = { workspace = true }
[tool.ruff]
line-length = 120