Skip to content

.NET: fix: 04_MultiModelService Workflows sample - #5074

Merged
Jacob Alber (lokitoth) merged 4 commits into
mainfrom
dev/dotnet_workflow/fix_multimodel_sample
Apr 3, 2026
Merged

Jacob Alber (lokitoth) merged 4 commits into
mainfrom
dev/dotnet_workflow/fix_multimodel_sample

Conversation

@lokitoth

Copy link
Copy Markdown
Contributor

Description

  • Change Bedrock to Google GenAI provider
  • Fix use of OpenAI ("gpt-4o-mini" requires Responses API to use HostedWebSearchTool)
  • Clean up output

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.

Copilot AI review requested due to automatic review settings April 3, 2026 07:40
@markwallace-microsoft Mark Wallace (markwallace-microsoft) added .NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows labels Apr 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the .NET workflow sample 04_MultiModelService to use Google GenAI instead of Bedrock, and adjusts the OpenAI client setup to use the Responses API so the sample can use HostedWebSearchTool with gpt-4o-mini. It also tweaks streaming output handling.

Changes:

  • Switch multi-model workflow “researcher” backend from Amazon Bedrock to Google GenAI (Gemini).
  • Update OpenAI client initialization to use the Responses API for compatibility with hosted tools (e.g., web search).
  • Add logic intended to suppress WorkflowEvent-only streaming updates in console output.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
dotnet/samples/03-workflows/_StartHere/04_MultiModelService/Program.cs Replaces Bedrock with Google GenAI, updates OpenAI to Responses API, and adjusts streaming output filtering.
dotnet/samples/03-workflows/_StartHere/04_MultiModelService/04_MultiModelService.csproj Swaps Bedrock package reference for Google.GenAI.

Comment thread dotnet/samples/03-workflows/_StartHere/04_MultiModelService/Program.cs Outdated
- Change Bedrock to Google GenAI provider
- Fix use of OpenAI ("gpt-4o-mini" requires Responses API to use HostedWebSearchTool)
- Clean up output
@lokitoth
Jacob Alber (lokitoth) added this pull request to the merge queue Apr 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 3, 2026
@lokitoth
Jacob Alber (lokitoth) added this pull request to the merge queue Apr 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Apr 3, 2026
@lokitoth
Jacob Alber (lokitoth) added this pull request to the merge queue Apr 3, 2026
Merged via the queue into main with commit d284d96 Apr 3, 2026
27 of 30 checks passed
@baywet
Vincent Biret (baywet) deleted the dev/dotnet_workflow/fix_multimodel_sample branch September 17, 2026 14:44
westey (westey-m) added a commit to Laurianti/agent-framework that referenced this pull request Oct 1, 2026
…rosoft#8879)

claude-sonnet-4-20250514 was retired by Anthropic on 2026-06-15; its
listed replacement is claude-sonnet-4-6. Also list the keys the sample
reads in its verify-samples entry (Google instead of Bedrock since microsoft#5074).

Fixes microsoft#8878

Co-authored-by: westey <164392973+westey-m@users.noreply.github.com>

This branch was previously deployed

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

Labels

.NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants