Python: Add Handoff + tool approval + checkpointing sample#2346
Merged
moonbox3 merged 8 commits intomicrosoft:mainfrom Nov 21, 2025
Merged
Python: Add Handoff + tool approval + checkpointing sample#2346moonbox3 merged 8 commits intomicrosoft:mainfrom
moonbox3 merged 8 commits intomicrosoft:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a comprehensive Python sample demonstrating how to configure required tool approvals within a handoff workflow, with checkpointing and resumption capabilities after human input. The sample shows the two-step pattern for resuming workflows that have both user input requests and tool approval requests.
- Implements a customer service scenario with triage, refund, and order tracking agents
- Demonstrates checkpoint-based pause/resume with tool approvals requiring human decisions
- Shows how to handle both
HandoffUserInputRequestandFunctionApprovalRequestContentin the same workflow
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| python/samples/getting_started/workflows/checkpoint/handoff_with_tool_approval_checkpoint_resume.py | New comprehensive sample showing handoff workflow with tool approval and checkpoint resume functionality |
| python/samples/getting_started/workflows/README.md | Added entry to checkpoint samples table referencing the new sample |
...samples/getting_started/workflows/checkpoint/handoff_with_tool_approval_checkpoint_resume.py
Outdated
Show resolved
Hide resolved
...samples/getting_started/workflows/checkpoint/handoff_with_tool_approval_checkpoint_resume.py
Show resolved
Hide resolved
...samples/getting_started/workflows/checkpoint/handoff_with_tool_approval_checkpoint_resume.py
Show resolved
Hide resolved
…th_tool_approval_checkpoint_resume.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
TaoChenOSU
reviewed
Nov 20, 2025
...samples/getting_started/workflows/checkpoint/handoff_with_tool_approval_checkpoint_resume.py
Outdated
Show resolved
Hide resolved
TaoChenOSU
reviewed
Nov 20, 2025
...samples/getting_started/workflows/checkpoint/handoff_with_tool_approval_checkpoint_resume.py
Show resolved
Hide resolved
alliscode
approved these changes
Nov 20, 2025
…ramework into handoff-with-checkpoint
TaoChenOSU
approved these changes
Nov 20, 2025
arisng
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
…#2346) * Handoff sample * handoff with tool approval * add Hanoff sample with tool approval and checkpointing * Add to README * Remove unnecessary files * Update python/samples/getting_started/workflows/checkpoint/handoff_with_tool_approval_checkpoint_resume.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Fix comment --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Adding a sample showing how to configure required tool approvals as part of the handoff flow, with checkpointing and resumption after human input.
Description
Contribution Checklist