Sprog

ProjectsAgentsModelFactory.VoiceAgentSubagentResponsePolicy Method

Definition

Policy for delivering responses while a voice agent waits for a subagent.

public static Azure.AI.Projects.Agents.VoiceAgentSubagentResponsePolicy VoiceAgentSubagentResponsePolicy(bool? immediateAck = default, TimeSpan? gapFillingInterval = default, string ackInstructions = default, string gapFillingInstructions = default, bool? enableDeltaProgress = default, string progressInstructions = default, TimeSpan? progressUpdateInterval = default);
static member VoiceAgentSubagentResponsePolicy : Nullable<bool> * Nullable<TimeSpan> * string * string * Nullable<bool> * string * Nullable<TimeSpan> -> Azure.AI.Projects.Agents.VoiceAgentSubagentResponsePolicy
Public Shared Function VoiceAgentSubagentResponsePolicy (Optional immediateAck As Nullable(Of Boolean) = Nothing, Optional gapFillingInterval As Nullable(Of TimeSpan) = Nothing, Optional ackInstructions As String = Nothing, Optional gapFillingInstructions As String = Nothing, Optional enableDeltaProgress As Nullable(Of Boolean) = Nothing, Optional progressInstructions As String = Nothing, Optional progressUpdateInterval As Nullable(Of TimeSpan) = Nothing) As VoiceAgentSubagentResponsePolicy

Parameters

immediateAck
Nullable<Boolean>

Whether the voice agent provides an immediate acknowledgement before forwarding a request to a subagent.

gapFillingInterval
Nullable<TimeSpan>

The number of seconds without subagent content or user input before the voice agent provides a gap-filling response.

ackInstructions
String

Instructions used to generate the immediate acknowledgement.

gapFillingInstructions
String

Instructions used to generate gap-filling speech while waiting for progress.

enableDeltaProgress
Nullable<Boolean>

Whether progress updates are emitted incrementally instead of only when the subagent invocation completes. Defaults to false.

progressInstructions
String

Instructions used to summarize streamed subagent progress for speech.

progressUpdateInterval
Nullable<TimeSpan>

The minimum number of seconds between spoken progress updates.

Returns

A new VoiceAgentSubagentResponsePolicy instance for mocking.

Applies to