Skip to content

.NET: [Breaking] Move TextSearchProvider and TextSearchProviderOptions to Microsoft.Agents.AI namespace#2639

Merged
SergeyMenshykh merged 8 commits intomainfrom
copilot/move-text-search-classes
Dec 5, 2025
Merged

.NET: [Breaking] Move TextSearchProvider and TextSearchProviderOptions to Microsoft.Agents.AI namespace#2639
SergeyMenshykh merged 8 commits intomainfrom
copilot/move-text-search-classes

Conversation

Copy link
Contributor

Copilot AI commented Dec 4, 2025

Motivation and Context

Relocates TextSearchProvider and TextSearchProviderOptions classes from Microsoft.Agents.AI.Data namespace to Microsoft.Agents.AI namespace for better API organization.

Description

  • Namespace change: Both classes now use namespace Microsoft.Agents.AI; instead of namespace Microsoft.Agents.AI.Data;
  • File relocation: Moved files from Data/ subdirectory to parent Microsoft.Agents.AI/ directory
  • Updated consumers: Removed using Microsoft.Agents.AI.Data; from:
    • AgentJsonUtilities.cs
    • TextSearchProviderTests.cs

Note: Sample files retain the using Microsoft.Agents.AI.Data; statement and will be updated separately.

Before:

using Microsoft.Agents.AI.Data;

var provider = new TextSearchProvider(...);

After:

using Microsoft.Agents.AI;

var provider = new TextSearchProvider(...);

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.
Original prompt

Move TextSearchProvider and TextSearchProviderOptions classes to Microsoft.Agents.AI namespace


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…ents.AI namespace

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>
Copilot AI changed the title [WIP] Move TextSearchProvider and TextSearchProviderOptions to Microsoft.Agents.AI namespace Move TextSearchProvider and TextSearchProviderOptions to Microsoft.Agents.AI namespace Dec 4, 2025
Copilot AI requested a review from SergeyMenshykh December 4, 2025 18:14
@github-actions github-actions bot changed the title Move TextSearchProvider and TextSearchProviderOptions to Microsoft.Agents.AI namespace .NET: Move TextSearchProvider and TextSearchProviderOptions to Microsoft.Agents.AI namespace Dec 4, 2025
@SergeyMenshykh
Copy link
Member

@copilot Please revert the exclusion of the AgentWithTextSearchRag project from the solution. The sample will be updated later.

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 4, 2025

@copilot Please revert the exclusion of the AgentWithTextSearchRag project from the solution. The sample will be updated later.

Reverted the exclusion of AgentWithTextSearchRag from the solution in commit f2cf48b.

…mple

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>
…om AgentWithRAG_Step01_BasicTextRAG

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>
arisng pushed a commit to arisng/agent-framework that referenced this pull request Feb 2, 2026
…oft.Agents.AI namespace (microsoft#2639)

* Initial plan

* Move TextSearchProvider and TextSearchProviderOptions to Microsoft.Agents.AI namespace

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>

* Restore AgentWithTextSearchRag project in solution file

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>

* Revert using statement removal in AgentWithRAG_Step01_BasicTextRAG sample

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>

* Revert the previous revert - remove using Microsoft.Agents.AI.Data from AgentWithRAG_Step01_BasicTextRAG

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>

* Revert using statement removal in AgentWithTextSearchRag sample

Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: SergeyMenshykh <68852919+SergeyMenshykh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants