Skip to content

Python: pseudo-stream copilot invoke_stream #12548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 20, 2025

Conversation

moonbox3
Copy link
Contributor

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