Skip to content

Adding workflows for presentation#10

Merged
pamelafox merged 6 commits intoAzure-Samples:mainfrom
pamelafox:workflows
Feb 28, 2026
Merged

Adding workflows for presentation#10
pamelafox merged 6 commits intoAzure-Samples:mainfrom
pamelafox:workflows

Conversation

@pamelafox
Copy link
Copy Markdown
Contributor

Purpose

  • Add workflow-focused examples for presentation use, including agent workflow patterns and streaming events.
  • Add corresponding Spanish translations under examples/spanish/.
  • Update documentation and dependencies required by the new examples.

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Documentation content changes
[ ] Other... Please describe:

How to Test

  • Get the code
git clone https://github.com/Azure-Samples/python-agentframework-demos.git
cd python-agentframework-demos
git checkout workflows
uv sync
  • Test the code
uv run examples/workflow_basic.py
uv run examples/workflow_agents.py
uv run examples/workflow_agents_streaming.py

What to Check

Verify that the following are valid

  • New workflow examples run successfully with configured model credentials.
  • Streaming workflow emits expected event types (started, executor_invoked, output, executor_completed, etc.).
  • Spanish examples mirror the corresponding English examples and remain aligned.
  • README updates correctly describe workflow examples.

Other Information

  • This PR is scoped to the single commit on this branch relative to origin/main.
  • Local untracked files (PythonAgents-FirstWorkflows.md, PythonAgents-FirstWorkflows.pdf) are not part of this PR.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 markitdown for document conversion and agent-framework-orchestrations for sequential workflow orchestration
  • Fixed bug in workflow_basic.py: changed agent_run_response to agent_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.

Comment thread examples/workflow_conditional.py
@pamelafox pamelafox merged commit 72ecee9 into Azure-Samples:main Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants