OpenAIRealtimeClient Sınıf

Tanım

OpenAI Gerçek Zamanlı API'sinin bir IRealtimeClient değerini temsil eder.

public ref class OpenAIRealtimeClient sealed : IDisposable, Microsoft::Extensions::AI::IRealtimeClient
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public sealed class OpenAIRealtimeClient : IDisposable, Microsoft.Extensions.AI.IRealtimeClient
public sealed class OpenAIRealtimeClient : IDisposable, Microsoft.Extensions.AI.IRealtimeClient
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type OpenAIRealtimeClient = class
    interface IRealtimeClient
    interface IDisposable
type OpenAIRealtimeClient = class
    interface IRealtimeClient
    interface IDisposable
Public NotInheritable Class OpenAIRealtimeClient
Implements IDisposable, IRealtimeClient
Devralma
OpenAIRealtimeClient
Öznitelikler
Uygulamalar

Oluşturucular

Name Description
OpenAIRealtimeClient(RealtimeClient, String)

OpenAIRealtimeClient sınıfının yeni bir örneğini başlatır.

OpenAIRealtimeClient(String, String)

OpenAIRealtimeClient sınıfının yeni bir örneğini başlatır.

Yöntemler

Name Description
CreateSessionAsync(RealtimeSessionOptions, CancellationToken)

Belirtilen seçeneklerle yeni bir gerçek zamanlı oturum oluşturur.

Dispose()

Yönetilmeyen kaynakları serbest bırakma, serbest bırakma veya sıfırlama ile ilişkili uygulama tanımlı görevleri gerçekleştirir.

Belirtik Arabirim Kullanımları

Name Description
IRealtimeClient.GetService(Type, Object)

IRealtimeClient belirtilen türde serviceTypebir nesnesi ister.

Uzantı Metotları

Name Description
AsBuilder(IRealtimeClient)

İç istemcisi olarak kullanarak RealtimeClientBuilder yeni innerClient bir oluşturur.

GetRequiredService(IRealtimeClient, Type, Object)

IRealtimeClient belirtilen türde serviceType bir nesne ister ve kullanılamıyorsa bir özel durum oluşturur.

GetRequiredService<TService>(IRealtimeClient, Object)

IRealtimeClient türünde TService bir nesne ister ve kullanılamıyorsa bir özel durum oluşturur.

GetService<TService>(IRealtimeClient, Object)

IRealtimeClient türünde TServicebir nesne ister.

Şunlara uygulanır