Skip to content

.NET: Address RunAsync Extensions Option 2 - #620

Merged
Roger Barreto (rogerbarreto) merged 1 commit into
microsoft:mainfrom
rogerbarreto:issues/521-runasync-extensions-removal-option-2
Sep 5, 2025
Merged

Roger Barreto (rogerbarreto) merged 1 commit into
microsoft:mainfrom
rogerbarreto:issues/521-runasync-extensions-removal-option-2

Conversation

@rogerbarreto

@rogerbarreto Roger Barreto (rogerbarreto) commented Sep 5, 2025 •

Copy link
Copy Markdown
Member

Motivation and Context

Following the recommendation in the issue

Sounds reasonable the full removal of the extensions to address ambiguity between. AgentRunOptions and ChatOptions.

Interstingly enough, the extensions where not being used anywhere in the code, which makes the case stronger for removal.

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

This PR removes extension methods for ChatClientAgent to address ambiguity between AgentRunOptions and ChatOptions parameters, following recommendation from issue #521.

  • Complete removal of ChatClientAgentExtensions class and its extension methods
  • Deletion of all corresponding unit tests for the extension methods

Reviewed Changes

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

File Description
ChatClientAgentExtensions.cs Removes entire extensions class with RunAsync and RunStreamingAsync methods
ChatClientAgentExtensionsTests.cs Removes all unit tests that were validating the extension methods

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

@markwallace-microsoft Mark Wallace (markwallace-microsoft) added the .NET Usage: [Issues, PRs], Target: .Net label Sep 5, 2025
@rogerbarreto
Roger Barreto (rogerbarreto) added this pull request to the merge queue Sep 5, 2025
Merged via the queue into microsoft:main with commit 8d13809 Sep 5, 2025
Reuben Bond (ReubenBond) pushed a commit to ReubenBond/agent-framework that referenced this pull request Oct 28, 2025

This branch was previously deployed

1 inactive deployment
integration — c93f6d6c Deployed Sep 5, 2025 by rogerbarreto
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET: Passing ChatClientAgent specific run options

4 participants