Skip to content

[WIP] Add chat-history compaction feature for agent framework#4572

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/copilotcreate-message-compaction-provider
Closed

[WIP] Add chat-history compaction feature for agent framework#4572
Copilot wants to merge 1 commit intomainfrom
copilot/copilotcreate-message-compaction-provider

Conversation

Copy link
Contributor

Copilot AI commented Mar 10, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

Write me a blog post in markdown that describe the chat-history compaction feature for the microsoft agent framework.

agent framework repo: https://github.com/microsoft/agent-framework

compaction feature branch: copilot/create-message-compaction-provider

compaction feature source: dotnet\src\Microsoft.Agents.AI\Compaction

compaction feature sample: dotnet\samples\02-agents\Agents\Agent_Step18_CompactionPipeline

Explain that compaction occurs for all model invocations, including the function calling loop.

Show pattern for creating an agent with CompactionProvider

Describe various compaction strategies highlighting usage of CompactionTriggers

Note, this is just one section of a larger blog...so be concise without sacrificing information.

Create the blog post as docs/compaction.md


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants