CompactionTriggers.TurnsExceed(Int32) Method

Definition

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

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

Parameters

maxTurns
Int32

The turn threshold.

Returns

A CompactionTrigger that evaluates included turn count.

Remarks

A user turn starts with a User group and includes all subsequent non-user, non-system groups until the next user group or end of conversation. Each group is assigned a TurnIndex indicating which user turn it belongs to. System messages (System) are always assigned a nullTurnIndex since they never belong to a user turn.

The turn count is the number of distinct values defined by TurnIndex.

Applies to