Skip to content

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

Merged
SergeyMenshykh merged 8 commits into
mainfrom
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 into
mainfrom
copilot/move-text-search-classes

Conversation

CopilotAI commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

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:

usingMicrosoft.Agents.AI.Data;varprovider=newTextSearchProvider(...);

After:

usingMicrosoft.Agents.AI;varprovider=newTextSearchProvider(...);

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>
CopilotAI changed the title [WIP] Move TextSearchProvider and TextSearchProviderOptions to Microsoft.Agents.AI namespaceMove TextSearchProvider and TextSearchProviderOptions to Microsoft.Agents.AI namespaceDec 4, 2025
@markwallace-microsoftMark Wallace (markwallace-microsoft) added the .NET Usage: [Issues, PRs], Target: .Net label Dec 4, 2025
@github-actionsgithub-actionsBot changed the title Move TextSearchProvider and TextSearchProviderOptions to Microsoft.Agents.AI namespace.NET: Move TextSearchProvider and TextSearchProviderOptions to Microsoft.Agents.AI namespaceDec 4, 2025
@SergeyMenshykh

Copy link
Copy Markdown
Contributor

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>

CopilotAI commented Dec 4, 2025

Copy link
Copy Markdown
ContributorAuthor

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>
Aris Nguyen (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 freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NETUsage: [Issues, PRs], Target: .Net

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants

@SergeyMenshykh@rogerbarreto@westey-m@markwallace-microsoft