Skip to content

Commit f7633d4

Browse files
committed
Start the response after the function call is returned.
1 parent 8fe9bf5 commit f7633d4

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)