Skip to content

Conversation

@markwallace-microsoft
Copy link
Member

Motivation and Context

Closes #323

Description

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
  • I didn't break anyone 😄

Copilot AI review requested due to automatic review settings August 20, 2025 10:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses bugbash issues by refactoring OpenAI agent integration code for better usability and cleaner API design. The changes focus on simplifying how developers configure OpenAI agents and disable response storage functionality.

  • Extract response storage configuration into a reusable extension method
  • Update sample code to use the new extension method and improve clarity
  • Simplify agent creation calls by using named parameters instead of options objects

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
ChatOptionsExtensions.cs Adds new extension method to encapsulate response storage disabling logic
AIAgent_With_OpenAIResponseClient.cs Refactors to use new extension method and removes inline configuration
AIAgent_With_OpenAIClient.cs Updates comment to better describe the agent creation approach
AIAgent_With_OpenAIAssistant.cs Simplifies agent creation by using named parameters instead of options object

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions github-actions bot changed the title Fix bugbash issues .NET: Fix bugbash issues Aug 20, 2025
…ponseClient.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@markwallace-microsoft markwallace-microsoft added this pull request to the merge queue Aug 20, 2025
Merged via the queue into microsoft:main with commit 0982aa9 Aug 20, 2025
14 checks passed
ReubenBond pushed a commit to ReubenBond/agent-framework that referenced this pull request Oct 28, 2025
* Fix bugbash issues

* Update dotnet/samples/GettingStarted/Providers/AIAgent_With_OpenAIResponseClient.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET: OpenAI and Foundry SDK Alignment Bugbash Issues

4 participants