VoiceLiveModelFactory.InterimResponseConfigBase Method

Definition

Base model for interim response configuration. Please note this is the abstract base class. The derived classes available for instantiation are: StaticInterimResponseConfig and LlmInterimResponseConfig.

public static Azure.AI.VoiceLive.InterimResponseConfigBase InterimResponseConfigBase(string type = default, System.Collections.Generic.IEnumerable<Azure.AI.VoiceLive.InterimResponseTrigger> triggers = default, int? latencyThresholdMs = default);
static member InterimResponseConfigBase : string * seq<Azure.AI.VoiceLive.InterimResponseTrigger> * Nullable<int> -> Azure.AI.VoiceLive.InterimResponseConfigBase
Public Shared Function InterimResponseConfigBase (Optional type As String = Nothing, Optional triggers As IEnumerable(Of InterimResponseTrigger) = Nothing, Optional latencyThresholdMs As Nullable(Of Integer) = Nothing) As InterimResponseConfigBase

Parameters

type
String

The type of interim response configuration.

triggers
IEnumerable<InterimResponseTrigger>

List of triggers that can fire the interim response. Any trigger can activate it (OR logic). Supported: 'latency', 'tool'.

latencyThresholdMs
Nullable<Int32>

Latency threshold in milliseconds before triggering interim response. Default is 2000ms.

Returns

A new InterimResponseConfigBase instance for mocking.

Applies to