Python: Clean left-over WorkflowCompletedEvent (#884)

* Clean left-over WorkflowCompletedEvent

* Improve comments

* Fix type check error
This commit is contained in:
Tao Chen
2025-09-23 17:52:51 -07:00
committed by GitHub
Unverified
parent 06827e9f1a
commit 36933de345
7 changed files with 18 additions and 19 deletions
@@ -39,7 +39,7 @@ Pipeline:
2) ReverseTextExecutor reverses the string.
3) SubmitToLowerAgent prepares an AgentExecutorRequest for the lowercasing agent.
4) lower_agent (AgentExecutor) converts text to lowercase via Azure OpenAI.
5) FinalizeFromAgent emits a WorkflowCompletedEvent with the final result.
5) FinalizeFromAgent yields the final result.
What you learn:
- How to persist executor state using ctx.get_state and ctx.set_state.