2 writes to _sessionClient
Microsoft.Extensions.AI.OpenAI (2)
..\..\..\..\src\Libraries\Microsoft.Extensions.AI.OpenAI\OpenAIRealtimeClientSession.cs (2)
62_sessionClient = Throw.IfNull(sessionClient); 78_sessionClient = await _ownedRealtimeClient.StartConversationSessionAsync(
21 references to _sessionClient
Microsoft.Extensions.AI.OpenAI (21)
..\..\..\..\src\Libraries\Microsoft.Extensions.AI.OpenAI\OpenAIRealtimeClientSession.cs (21)
84if (_sessionClient is not null) 91await _sessionClient.ConfigureTranscriptionSessionAsync(rawTransOptions, cancellationToken).ConfigureAwait(false); 96await _sessionClient.ConfigureTranscriptionSessionAsync(transOpts, cancellationToken).ConfigureAwait(false); 101await _sessionClient.ConfigureConversationSessionAsync(convOpts, cancellationToken).ConfigureAwait(false); 115if (_sessionClient is null) 142await _sessionClient.SendCommandAsync(cmd, cancellationToken).ConfigureAwait(false); 146await _sessionClient.CommitPendingAudioAsync(cancellationToken).ConfigureAwait(false); 161if (_sessionClient is null) 166await foreach (var update in _sessionClient.ReceiveUpdatesAsync(cancellationToken).ConfigureAwait(false)) 185_sessionClient is not null && serviceType.IsInstanceOfType(_sessionClient) ? _sessionClient : 197_sessionClient?.Dispose(); 294await _sessionClient!.SendCommandAsync(cmd, cancellationToken).ConfigureAwait(false); 298await _sessionClient!.StartResponseAsync(responseOptions, cancellationToken).ConfigureAwait(false); 328await _sessionClient!.SendCommandAsync(cmd, cancellationToken).ConfigureAwait(false); 332await _sessionClient!.AddItemAsync(sdkItem, cancellationToken).ConfigureAwait(false); 348await _sessionClient!.SendCommandAsync(cmd, cancellationToken).ConfigureAwait(false); 352await _sessionClient!.SendInputAudioAsync(audioData, cancellationToken).ConfigureAwait(false); 360await _sessionClient!.SendCommandAsync(sdkCmd, cancellationToken).ConfigureAwait(false); 379await _sessionClient!.SendCommandAsync(BinaryData.FromString(jsonString), null).ConfigureAwait(false);