Skip to content

Python: streaming agent response callback in agent orchestrations#12360

Merged
TaoChenOSU merged 10 commits into
mainfrom
taochen/streaming_agent_response_callback
Jun 4, 2025
Merged

Python: streaming agent response callback in agent orchestrations#12360
TaoChenOSU merged 10 commits into
mainfrom
taochen/streaming_agent_response_callback

Conversation

@TaoChenOSU

@TaoChenOSU TaoChenOSU commented Jun 3, 2025

Copy link
Copy Markdown
Contributor

Motivation and Context

Issue: #12306
Discussion: #12302

Currently, we only have a non-streaming agent response callback for users to interact with the agents inside an orchestration. Support for a stream one has been requested by developers.

Description

Add support for a streaming agent response callback to all orchestrations.

Contribution Checklist

@TaoChenOSU TaoChenOSU self-assigned this Jun 3, 2025
@TaoChenOSU TaoChenOSU added python Pull requests for the Python Semantic Kernel agents labels Jun 3, 2025
@TaoChenOSU TaoChenOSU changed the title Taochen/streaming agent response callback Streaming agent response callback Jun 3, 2025
@github-actions github-actions Bot changed the title Streaming agent response callback Python: Taochen/streaming agent response callback Jun 3, 2025
Comment thread python/semantic_kernel/agents/orchestration/agent_actor_base.py
@TaoChenOSU TaoChenOSU marked this pull request as ready for review June 3, 2025 21:12
@TaoChenOSU TaoChenOSU requested a review from a team as a code owner June 3, 2025 21:12
@markwallace-microsoft

Copy link
Copy Markdown
Contributor

Python Test Coverage

Python Test Coverage Report •
FileStmtsMissCoverMissing
agents/orchestration
   agent_actor_base.py61690%33, 79, 96, 127, 147, 150
   concurrent.py720100% 
   group_chat.py1911393%111, 114–117, 119–120, 122, 314–316, 318, 383
   handoffs.py1932686%224–225, 229–231, 254, 257–260, 262, 264, 271, 279, 293, 297–298, 301, 312–313, 318, 330–333, 364
   magentic.py29410464%122–124, 256, 379, 447, 450, 457, 461, 463, 490–495, 497, 502, 504, 510, 512, 517–518, 520–521, 527, 529–530, 533–534, 540, 548–549, 558, 561–562, 564–567, 570–571, 575–578, 580–581, 583, 585–591, 594–595, 602, 611–613, 615, 617, 625–626, 628, 633, 637–638, 640, 642–643, 647–648, 650, 653, 658–660, 663, 665, 679–682, 688, 690–691, 697, 701–702, 704, 706, 710, 712, 714, 723–727, 794–795
   orchestration_base.py123595%65, 168, 173, 178, 201
   sequential.py640100% 
TOTAL27108462582% 

Python Unit Test Overview

Tests Skipped Failures Errors Time
3623 22 💤 0 ❌ 0 🔥 1m 47s ⏱️

@TaoChenOSU TaoChenOSU changed the title Python: Taochen/streaming agent response callback Python: streaming agent response callback in agent orchestrations Jun 3, 2025
@TaoChenOSU TaoChenOSU enabled auto-merge June 4, 2025 23:05
@crickman crickman self-requested a review June 4, 2025 23:06
@TaoChenOSU TaoChenOSU added this pull request to the merge queue Jun 4, 2025
Merged via the queue into main with commit 3baaee2 Jun 4, 2025
28 checks passed
@TaoChenOSU TaoChenOSU deleted the taochen/streaming_agent_response_callback branch June 4, 2025 23:14
@github-project-automation github-project-automation Bot moved this to Sprint: Done in Semantic Kernel Jun 4, 2025
jcruzmot-te pushed a commit to thousandeyes/aia-semantic-kernel that referenced this pull request Sep 15, 2025
…crosoft#12360)

### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->
Issue: microsoft#12306 
Discussion: microsoft#12302 

Currently, we only have a **non-streaming** agent response callback for
users to interact with the agents inside an orchestration. Support for a
stream one has been requested by developers.

### Description

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->
Add support for a streaming agent response callback to all
orchestrations.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents python Pull requests for the Python Semantic Kernel

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants