Interface UserTurnLimitOptions

Configuration for detecting when a user has been speaking too long without the agent successfully responding.

The framework tracks accumulated word count and wall-clock duration across consecutive user turns. Counters only reset when the agent transitions to speaking state.

Both thresholds default to null (disabled). Set at least one to enable the feature.

interface UserTurnLimitOptions {
    maxDuration: null | number;
    maxWords: null | number;
}

Properties

maxDuration: null | number

Maximum wall-clock duration in milliseconds since the user first started speaking in the current accumulation window. null disables duration-based limiting.

maxWords: null | number

Maximum accumulated word count before triggering. null disables word-based limiting.