OpenAIRealtimeClientSession.SendAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sends a client message to the session.
public System.Threading.Tasks.Task SendAsync(Microsoft.Extensions.AI.RealtimeClientMessage message, System.Threading.CancellationToken cancellationToken = default);
abstract member SendAsync : Microsoft.Extensions.AI.RealtimeClientMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.SendAsync : Microsoft.Extensions.AI.RealtimeClientMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SendAsync (message As RealtimeClientMessage, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- message
- RealtimeClientMessage
The client message to send.
- cancellationToken
- CancellationToken
A token to cancel the operation.
Returns
A task that represents the asynchronous send operation.