Adding workflows for presentation#10
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive workflow-focused examples for presentation purposes, including agent workflow patterns and streaming events. It introduces 9 new workflow examples demonstrating conditional routing, state management, structured outputs, switch-case routing, RAG ingestion, and sequential orchestration. The PR also includes Spanish translations for all new examples under examples/spanish/, updates dependencies by adding markitdown and agent-framework-orchestrations, and fixes a bug in workflow_basic.py where agent_run_response.text is corrected to agent_response.text.
Changes:
- Added 9 new workflow examples (workflow_rag_ingest, workflow_agents, workflow_agents_sequential, workflow_agents_streaming, workflow_conditional, workflow_conditional_structured, workflow_conditional_state, workflow_conditional_state_isolated, workflow_switch_case)
- Added Spanish translations for all new examples
- Updated dependencies: added
markitdownfor document conversion andagent-framework-orchestrationsfor sequential workflow orchestration - Fixed bug in workflow_basic.py: changed
agent_run_responsetoagent_response - Updated README documentation to describe all new examples
Reviewed changes
Copilot reviewed 23 out of 25 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| uv.lock | Updated lock file with new dependencies: markitdown, agent-framework-orchestrations, and their transitive dependencies (onnxruntime, coloredlogs, magika, etc.) |
| pyproject.toml | Added markitdown and agent-framework-orchestrations to dependencies |
| examples/workflow_switch_case.py | Customer message router using structured outputs and switch-case edges for multi-way routing |
| examples/workflow_rag_ingest.py | RAG ingestion pipeline using plain Python executors for document extraction, chunking, and embedding |
| examples/workflow_conditional_structured.py | Writer → Reviewer workflow with structured reviewer decisions using response_format |
| examples/workflow_conditional_state_isolated.py | Writer → Reviewer workflow with state management and workflow factory for state isolation |
| examples/workflow_conditional_state.py | Writer → Reviewer workflow with conditional edges and workflow state management |
| examples/workflow_conditional.py | Minimal Writer → Reviewer workflow with sentinel token-based conditional routing |
| examples/workflow_basic.py | Bug fix: corrected agent_run_response to agent_response |
| examples/workflow_agents_streaming.py | Writer → Reviewer workflow demonstrating streaming events with run(stream=True) |
| examples/workflow_agents_sequential.py | Sequential orchestration using SequentialBuilder with full conversation history sharing |
| examples/workflow_agents.py | Basic workflow with AI agents as executors |
| examples/spanish/* | Spanish translations of all new workflow examples, maintaining consistency with English versions |
| README.md | Updated documentation with descriptions of all new workflow examples |
| examples/spanish/README.md | Spanish version of updated documentation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Purpose
examples/spanish/.Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
How to Test
What to Check
Verify that the following are valid
started,executor_invoked,output,executor_completed, etc.).Other Information
origin/main.PythonAgents-FirstWorkflows.md,PythonAgents-FirstWorkflows.pdf) are not part of this PR.