CompactionTriggers.TokensBelow(Int32) Method

Definition

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

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

Parameters

maxTokens
Int32

The token threshold.

Returns

A CompactionTrigger that evaluates included token count.

Applies to