Skip to content

docs: Trim chat-history compaction blog section to be concise#4573

Draft
Copilot wants to merge 4 commits intocopilot/create-message-compaction-providerfrom
copilot/copilotcreate-message-compaction-provider-again
Draft

docs: Trim chat-history compaction blog section to be concise#4573
Copilot wants to merge 4 commits intocopilot/create-message-compaction-providerfrom
copilot/copilotcreate-message-compaction-provider-again

Conversation

Copy link
Contributor

Copilot AI commented Mar 10, 2026

Motivation and Context

The initial docs/compaction.md draft read as full reference documentation rather than a blog section. A blog shared across multiple features needs to convey the concept quickly, not exhaustively document every API.

Description

Rewrote docs/compaction.md from ~200 lines down to ~55, keeping only what a reader needs to understand the feature:

  • Concept — what compaction does and why it matters
  • Key behavior — fires before every model call, including each function-calling loop iteration; tool-call/result pairs are never split
  • Setup — single UseAIContextProviders snippet showing the registration pattern
  • Strategies — one-line description per strategy with the CompactionTrigger concept illustrated inline
  • Pipeline pattern — one clean PipelineCompactionStrategy example (gentle → aggressive) with a link to the full sample for detail

Removed: exhaustive trigger reference table, per-strategy code snippets, duplicate pipeline example, and strategy comparison table.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>
Copilot AI changed the title [WIP] Add chat-history compaction feature to Microsoft Agent Framework docs: Add chat-history compaction blog post Mar 10, 2026
Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>
Copilot AI changed the title docs: Add chat-history compaction blog post docs: Trim chat-history compaction blog section to be concise Mar 10, 2026
@markwallace-microsoft markwallace-microsoft added the documentation Improvements or additions to documentation label Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants