Type alias AgentSessionUpdateOptions

AgentSessionUpdateOptions: {
    expressive?: boolean | ExpressiveOptions;
    keyterms?: string[];
    turnDetection?: TurnDetectionMode | null;
    turnHandling?: {
        endpointing?: Partial<EndpointingOptions>;
        turnDetection?: TurnDetectionMode | null;
    };
}

Type declaration

  • Optional expressive?: boolean | ExpressiveOptions

    Change expressive TTS delivery for subsequent replies.

  • Optional keyterms?: string[]

    Replace the user-defined keyterms applied to the STT. Auto-detected keyterms are left untouched.

  • Optional turnDetection?: TurnDetectionMode | null

    Deprecated

    use turnHandling.turnDetection instead.

    • undefined: leave the current turn detection setting unchanged.
    • null: clear the current turn detection setting and return to automatic selection.
    • TurnDetectionMode: set the turn detection strategy to the provided value.
  • Optional turnHandling?: {
        endpointing?: Partial<EndpointingOptions>;
        turnDetection?: TurnDetectionMode | null;
    }

    Configuration updates for turn handling.

    • Optional endpointing?: Partial<EndpointingOptions>

      Endpointing options to merge into the current session defaults.

    • Optional turnDetection?: TurnDetectionMode | null

      Strategy for deciding when the user has finished speaking.

      • undefined: leave the current turn detection setting unchanged.
      • null: clear the current turn detection setting and return to automatic selection.
      • TurnDetectionMode: set the turn detection strategy to the provided value.