microsoft / microsoft/agent-framework
.NET: [Feature]: Make TextSearchProvider inheritable
@westey-m is already working on this.
Since May 28, 2026.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.