Skip to content

Conversation

@moonbox3
Copy link
Collaborator

Motivation and Context

The current copilot studio client doesn't support streaming invocation. The underlying orchestration patterns rely on agents to have an invoke_stream. Since it doesn't exist in the copilot agent, that agent type cannot be used. This PR implements a pseudo-invoke_stream so that the agent can be used with patterns - although it doesn't stream the response back in chunks, it unblocks the use if one desired to use our new orchestration patterns.

Description

Contribution Checklist

@moonbox3 moonbox3 self-assigned this Jun 20, 2025
@moonbox3 moonbox3 requested a review from a team as a code owner June 20, 2025 07:38
@markwallace-microsoft markwallace-microsoft added the python Pull requests for the Python Semantic Kernel label Jun 20, 2025
@markwallace-microsoft
Copy link
Member

@moonbox3 moonbox3 enabled auto-merge June 20, 2025 09:49
@moonbox3 moonbox3 added this pull request to the merge queue Jun 20, 2025
Merged via the queue into microsoft:main with commit 2bfa31b Jun 20, 2025
32 checks passed
@moonbox3 moonbox3 deleted the copilot-invoke-stream branch June 20, 2025 15:30
jcruzmot-te pushed a commit to thousandeyes/aia-semantic-kernel that referenced this pull request Sep 15, 2025
### Motivation and Context

The current copilot studio client doesn't support streaming invocation.
The underlying orchestration patterns rely on agents to have an
invoke_stream. Since it doesn't exist in the copilot agent, that agent
type cannot be used. This PR implements a pseudo-invoke_stream so that
the agent can be used with patterns - although it doesn't stream the
response back in chunks, it unblocks the use if one desired to use our
new orchestration patterns.

<!-- 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.
-->

### Description

- Closes microsoft#12449

<!-- Describe your changes, the overall approach, the underlying design.
These notes will help understanding how your code works. Thanks! -->

### 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

None yet

Development

Successfully merging this pull request may close these issues.

Python: Bug: CopilotStudioAgent in Orchestration gets stuck, always timeout

4 participants