Skip to content

docs: Add README for Agent_Step18_CompactionPipeline#4513

Draft
Copilot wants to merge 2 commits intocrickman/feature-compaction-deuxfrom
copilot/create-readme-compaction-pipeline
Draft

docs: Add README for Agent_Step18_CompactionPipeline#4513
Copilot wants to merge 2 commits intocrickman/feature-compaction-deuxfrom
copilot/create-readme-compaction-pipeline

Conversation

Copy link
Contributor

Copilot AI commented Mar 5, 2026

No developer documentation existed for the Agent_Step18_CompactionPipeline sample, leaving the compaction API undiscovered and unexplained.

Changes

  • New README.md at dotnet/samples/02-agents/Agents/Agent_Step18_CompactionPipeline/
    • Explains why context compaction is needed and how the framework models it (MessageIndex, atomic groups, trigger/target lifecycle)
    • Reference table of all five built-in strategies (ToolResultCompactionStrategy, SummarizationCompactionStrategy, SlidingWindowCompactionStrategy, TruncationCompactionStrategy, ChatReducerCompactionStrategy) with aggressiveness level and use-case guidance
    • Reference table of all CompactionTriggers factory methods plus All/Any/Always/Never
    • Prerequisites including the [Experimental]/AGENTSAI001 suppression note and the two-client pattern for the summarizer
    • Environment variable setup, run instructions, and annotated expected output describing which strategy fires at each threshold
    • Key-concept snippets: single-strategy, IChatReducer adapter, custom trigger lambda, combined triggers

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 README for CompactionPipeline usage docs: Add README for Agent_Step18_CompactionPipeline Mar 5, 2026
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