microsoft / microsoft/agent-framework

.NET: [Feature]: Make TextSearchProvider inheritable

Open
#5,853 2 comments 4 reactions 1 assignee View on GitHub

@westey-m is already working on this.

Since May 28, 2026.

.NET
Dominant language
Python
Stars
13.6k
Forks
2.3k
Avg merge
2d 45m
Merged PRs (30d)
358

Description

### Description

At the moment, the `TextSearchProvider` class is sealed. This means that if we need to define custom logic, for example:

- customizing the `AIContext` created in `ProvideAIContextAsync`
- extracting data from messages to be used in the `SearchAsync` method (since the delegate expects a simple string input, which is currently just the concatenation of all request messages)

we need to create an entirely new `MessageAIContextProvider` implementation and reimplement all the existing `TextSearchProvider` behaviors (context and citation prompts, built-in support for message memory, redaction, etc.).

For this reason, it would be useful to make the `TextSearchProvider` class inheritable.

### Language/SDK

.NET

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.