mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
11 lines
516 B
C#
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);
|