microsoft / microsoft/agent-framework
.NET: [Feature]: .NET Microsoft.Agents.AI.Compaction restrictions
@westey-m is already working on this.
Since Jul 27, 2026.
- Dominant language
- Python
- Stars
- 13.6k
- Forks
- 2.3k
- Avg merge
- 2d 45m
- Merged PRs (30d)
- 358
Description
### Description
I want to see excluded ChatMessage after
CompactionProvider.CompactAsync(CompactionStrategy compactionStrategy, IEnumerable messages, ILogger? logger = null, CancellationToken cancellationToken = default)
But
- CompactionProvider does not have contructor IEnumerable messages
- CompactionMessageIndex.Create is internal. Why ?
- no CompactionMessageIndex contructor with IList messages, IList only
- but public sealed class CompactionMessageGroup have only internal CompactionMessageGroup constructor
CompactionMessageIndex have many interested properties but I don't see a way to create a CompactionMessageIndex from ChatMessage list
### Code Sample
```markdown
```
### Language/SDK
Both
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.