Skip to content

Commit 9fa10b4

Browse files
committed
Start the response after the function call is returned.
1 parent 7d0a489 commit 9fa10b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdk/ai/Azure.AI.VoiceLive/samples/CustomerServiceBot/CustomerServiceBot.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ private async Task HandleFunctionCallAsync(string functionName, string callId, s
554554

555555
// Add the result to the conversation
556556
await _session!.AddItemAsync(outputItem, cancellationToken).ConfigureAwait(false);
557+
await _session!.StartResponseAsync(cancellationToken).ConfigureAwait(false);
557558

558559
_logger.LogInformation("✅ Function {FunctionName} completed successfully", functionName);
559560
}

0 commit comments

Comments
 (0)