Files
agent-framework/dotnet/src/Microsoft.Agents.AI/Compaction/CompactionTrigger.cs
T
Chris Rickman 7608005dd7 Encoding
2026-03-05 02:36:22 -08:00

11 lines
516 B
C#

// Copyright (c) Microsoft. All rights reserved.
namespace Microsoft.Agents.AI.Compaction;
/// <summary>
/// A predicate that evaluates whether compaction should proceed based on current <see cref="MessageIndex"/> metrics.
/// </summary>
/// <param name="index">The current message index with group, token, message, and turn metrics.</param>
/// <returns><see langword="true"/> if compaction should proceed; <see langword="false"/> to skip.</returns>
public delegate bool CompactionTrigger(MessageIndex index);