Skip to content

Python: Add sample on how to share a thread between agents in a workflow#3405

Merged
TaoChenOSU merged 8 commits intomicrosoft:mainfrom
TaoChenOSU:taochen/shared-thread-in-workflows
Jan 30, 2026
Merged

Python: Add sample on how to share a thread between agents in a workflow#3405
TaoChenOSU merged 8 commits intomicrosoft:mainfrom
TaoChenOSU:taochen/shared-thread-in-workflows

Conversation

@TaoChenOSU
Copy link
Contributor

@TaoChenOSU TaoChenOSU commented Jan 23, 2026

Motivation and Context

Part of #761

Description

  1. Add a sample to show how to share a thread between agents in a workflow.
  2. Fix python/samples/getting_started/agents/azure_ai/azure_ai_with_thread.py where store=False no longer has effects.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

@TaoChenOSU TaoChenOSU self-assigned this Jan 23, 2026
@TaoChenOSU TaoChenOSU added the workflows Related to Workflows in agent-framework label Jan 23, 2026
Copilot AI review requested due to automatic review settings January 23, 2026 04:15
@TaoChenOSU TaoChenOSU added the samples Issue relates to the samples label Jan 23, 2026
Copy link
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@github-actions github-actions bot changed the title Add sample on how to share a thread between agents in a workflow Python: Add sample on how to share a thread between agents in a workflow Jan 23, 2026
@markwallace-microsoft
Copy link
Member

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
packages/core/agent_framework
   _types.py94713286%71, 94–95, 149, 154, 173, 175, 179, 183, 185, 187, 189, 206–207, 209–211, 213–214, 216–217, 219–220, 235–237, 239–242, 259, 264, 269, 273, 299, 303, 647–648, 1019, 1081, 1098, 1116, 1121, 1139, 1147–1149, 1166–1167, 1169, 1187–1188, 1190, 1197–1198, 1200, 1235, 1246–1247, 1249, 1268–1269, 1272–1281, 1284–1287, 1289, 1293, 1327, 1360, 1532, 1537, 1541, 1545, 1737, 1747, 1792, 1837–1842, 1864, 1869, 2228, 2237, 2373, 2461–2463, 2502, 2558, 2579, 2588, 2817–2819, 2822–2824, 2828, 2833, 2837, 2949–2951, 2979, 3015, 3033, 3037–3039, 3041, 3052–3053, 3056–3060, 3066
TOTAL17482270484% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3229 213 💤 0 ❌ 0 🔥 1m 2s ⏱️

@markwallace-microsoft markwallace-microsoft added the documentation Improvements or additions to documentation label Jan 28, 2026
Copy link
Member

@eavanvalkenburg eavanvalkenburg left a comment

Choose a reason for hiding this comment

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

nit, otherwise good

@TaoChenOSU TaoChenOSU enabled auto-merge January 30, 2026 00:08
@TaoChenOSU TaoChenOSU added this pull request to the merge queue Jan 30, 2026
Merged via the queue into microsoft:main with commit 0fcf075 Jan 30, 2026
23 checks passed
eavanvalkenburg pushed a commit to eavanvalkenburg/agent-framework that referenced this pull request Feb 1, 2026
…low (microsoft#3405)

* Add sample on how to share a thread between agents in a workflow

* Fix sample

* Fix formatting

* Comments

* comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation python samples Issue relates to the samples workflows Related to Workflows in agent-framework

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants