IOpenAIClient.RunAndGetAssistantResponseAsync

IOpenAIClient.RunAndGetAssistantResponseAsync metodu

Belirtilen threadId ve runCreateRequest ile asistanı çalıştırır ve asenkron olarak asistan yanıtını alır.

public Task<string> RunAndGetAssistantResponseAsync(string threadId, 
    RunCreateRequest runCreateRequest, CancellationToken? cancellationToken)
ParametreTürAçıklama
threadIdStringİpucu kimliği.
runCreateRequestRunCreateRequestÇalıştırma oluşturma isteği.
cancellationTokenNullable`1İptal belirteci (isteğe bağlı).

Dönüş Değeri

Asistan yanıt dizesi ile asenkron işlemi temsil eden bir görev.

Ayrıca Bakınız