From 1428286bd18421628a21a7710d799113912ba877 Mon Sep 17 00:00:00 2001 From: Chris Rickman Date: Thu, 5 Mar 2026 02:41:26 -0800 Subject: [PATCH] Formatting --- dotnet/src/Microsoft.Agents.AI/Compaction/MessageGroupKind.cs | 2 ++ dotnet/src/Microsoft.Agents.AI/Compaction/MessageIndex.cs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dotnet/src/Microsoft.Agents.AI/Compaction/MessageGroupKind.cs b/dotnet/src/Microsoft.Agents.AI/Compaction/MessageGroupKind.cs index f3ee4c072f..68d7d1fc09 100644 --- a/dotnet/src/Microsoft.Agents.AI/Compaction/MessageGroupKind.cs +++ b/dotnet/src/Microsoft.Agents.AI/Compaction/MessageGroupKind.cs @@ -37,6 +37,7 @@ public enum MessageGroupKind /// ToolCall, +#pragma warning disable IDE0001 // Simplify Names /// /// A summary message group produced by a compaction strategy (e.g., SummarizationCompactionStrategy). /// @@ -45,5 +46,6 @@ public enum MessageGroupKind /// They are identified by the metadata entry /// on the underlying . /// +#pragma warning restore IDE0001 // Simplify Names Summary, } diff --git a/dotnet/src/Microsoft.Agents.AI/Compaction/MessageIndex.cs b/dotnet/src/Microsoft.Agents.AI/Compaction/MessageIndex.cs index 87c4597f96..f8467eb3ce 100644 --- a/dotnet/src/Microsoft.Agents.AI/Compaction/MessageIndex.cs +++ b/dotnet/src/Microsoft.Agents.AI/Compaction/MessageIndex.cs @@ -1,6 +1,7 @@ // Copyright (c) Microsoft. All rights reserved. using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Text; using Microsoft.Extensions.AI; @@ -97,7 +98,8 @@ public sealed class MessageIndex /// public static MessageIndex Create(IList messages, Tokenizer? tokenizer = null) { - MessageIndex instance = new(new List(), tokenizer); + Debug.WriteLine("COMPACTION: Creating index x{messages.Count} messages"); + MessageIndex instance = new([], tokenizer); instance.AppendFromMessages(messages, 0); return instance; }