Member Junction
    Preparing search index...

    Configuration for a TurnTakingPolicy instance.

    interface TurnTakingPolicyConfig {
        Matcher?: IAddressedMatcher;
        Mode: BridgeTurnMode;
        Now?: () => number;
        Scorer?: IWorthSayingScorer;
        ScoreThreshold?: number;
        SilenceWindowMs?: number;
        ThrottleMs?: number;
    }
    Index

    Properties

    The addressed-matcher (Passive + Hybrid). Required for those modes.

    The turn-taking mode.

    Now?: () => number

    Injected clock returning epoch milliseconds. Defaults to Date.now. Tests inject a controllable function so silence-window and throttle logic are fully deterministic.

    The "worth saying" scorer (Active mode). Required for Active.

    ScoreThreshold?: number

    Worth-saying score threshold in [0, 1] at/above which Active mode speaks. Defaults to 0.7.

    SilenceWindowMs?: number

    Minimum silence (ms) since the last human speech before Active mode may speak. Prevents barging into gaps that are too short to be a real opening. Defaults to 1500ms.

    ThrottleMs?: number

    Minimum interval (ms) between two Active-mode speak decisions, so a proactive agent cannot dominate the room. Defaults to 15000ms.