// Copyright (c) Microsoft. All rights reserved.
using System.Diagnostics.CodeAnalysis;
using Microsoft.Shared.DiagnosticIds;
namespace Microsoft.Agents.AI.Compaction;
///
/// Defines a condition based on metrics used by a
/// to determine when to trigger compaction and when the target compaction threshold has been met.
///
/// An index over conversation messages that provides group, token, message, and turn metrics.
/// to indicate the condition has been met; otherwise .
[Experimental(DiagnosticIds.Experiments.AgentsAIExperiments)]
public delegate bool CompactionTrigger(CompactionMessageIndex index);