Skip to content

[WIP] Add mermaid diagram for Microsoft.Agents.AI.Compaction namespace#4507

Closed
Copilot wants to merge 2 commits intocrickman/feature-compactionfrom
copilot/create-mermaid-diagram-ai-compaction
Closed

[WIP] Add mermaid diagram for Microsoft.Agents.AI.Compaction namespace#4507
Copilot wants to merge 2 commits intocrickman/feature-compactionfrom
copilot/create-mermaid-diagram-ai-compaction

Conversation

Copy link
Contributor

Copilot AI commented Mar 5, 2026

  • Explore all types in Microsoft.Agents.AI.Compaction namespace
  • Create docs/design/compaction-namespace.md with a Mermaid class diagram covering:
    • Core interface: IChatHistoryMetricsCalculator
    • Abstract base: ChatHistoryCompactionStrategy
    • Pipeline: ChatHistoryCompactionPipeline (implements IChatReducer)
    • Data models: ChatHistoryMetric, ChatMessageGroup, ChatMessageGroupKind
    • Result types: CompactionResult, CompactionPipelineResult
    • Default implementation: DefaultChatHistoryMetricsCalculator
    • Concrete strategies: ToolResultCompactionStrategy, SummarizationCompactionStrategy, SlidingWindowCompactionStrategy, TruncationCompactionStrategy, ChatReducerCompactionStrategy
    • Factory enums: ChatHistoryCompactionPipeline.Size and .Approach
    • Integration points with IChatReducer and InMemoryChatHistoryProviderOptions

💡 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.

Co-authored-by: crickman <66376200+crickman@users.noreply.github.com>
@crickman
Copy link
Contributor

crickman commented Mar 6, 2026

Better late than never, I suppose...

@crickman crickman closed this Mar 6, 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