CompactionTriggers.TokensExceed(Int32) Method

Definition

Creates a trigger that fires when the included token count exceeds the specified maximum.

public static Microsoft.Agents.AI.Compaction.CompactionTrigger TokensExceed(int maxTokens);
static member TokensExceed : int -> Microsoft.Agents.AI.Compaction.CompactionTrigger
Public Shared Function TokensExceed (maxTokens As Integer) As CompactionTrigger

Parameters

maxTokens
Int32

The token threshold.

Returns

A CompactionTrigger that evaluates included token count.

Applies to