Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Updates the Concurrent Workflow .NET sample to use Azure AI Projects, and adjusts streaming/executor behavior so the workflow output is cleaner and no longer polluted by agent streaming or duplicated input.
Changes:
- Migrate from
Azure.AI.OpenAIclient usage toAzure.AI.ProjectsviaAIProjectClient. - Prevent agent streaming events and duplicated input from appearing as workflow output (
emitEvents: false,ForwardIncomingMessages = false). - Improve console output readability and add explicit error handling for workflow/executor failures.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| dotnet/samples/03-workflows/Concurrent/Concurrent/Program.cs | Switch client API, adjust executor/streaming behavior, and improve output/error formatting. |
| dotnet/samples/03-workflows/Concurrent/Concurrent/Concurrent.csproj | Replace Azure.AI.OpenAI package reference with Azure.AI.Projects. |
1a9e60a to
94b8827
Compare
94b8827 to
ddf3049
Compare
* Switch to using Azure AI Projects APIs * Remove agent streaming outputs by changing emitEvents to false on TurnToken * Disable forwarding input from agent host executors * Make output format more legible
ddf3049 to
2838918
Compare
2838918 to
073114d
Compare
peibekwe
approved these changes
Apr 3, 2026
westey-m
approved these changes
Apr 7, 2026
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.
Description
emitEventstofalseonTurnToken, since these were treated as the workflow outputCloses #3994
Contribution Checklist
[ ] Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.