microsoft / microsoft/agent-framework

.NET: [Feature]: .NET Microsoft.Agents.AI.Compaction restrictions

Open
#7,335 0 comments 0 reactions 1 assignee View on GitHub

@westey-m is already working on this.

Since Jul 27, 2026.

.NET compaction
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

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.