LanguageModel.GenerateResponseAsync Method

Definition

Overloads

GenerateResponseAsync(LanguageModelContext, String, LanguageModelOptions)

public:
 virtual IAsyncOperationWithProgress<LanguageModelResponseResult ^, Platform::String ^> ^ GenerateResponseAsync(LanguageModelContext ^ context, Platform::String ^ prompt, LanguageModelOptions ^ options) = GenerateResponseAsync;
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.Overload("GenerateResponseAsync3")]
IAsyncOperationWithProgress<LanguageModelResponseResult, winrt::hstring const&> GenerateResponseAsync(LanguageModelContext const& context, winrt::hstring const& prompt, LanguageModelOptions const& options);
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.Overload("GenerateResponseAsync3")]
public IAsyncOperationWithProgress<LanguageModelResponseResult,string> GenerateResponseAsync(LanguageModelContext context, string prompt, LanguageModelOptions options);
function generateResponseAsync(context, prompt, options)
Public Function GenerateResponseAsync (context As LanguageModelContext, prompt As String, options As LanguageModelOptions) As IAsyncOperationWithProgress(Of LanguageModelResponseResult, String)

Parameters

prompt
String

Platform::String

winrt::hstring

Returns

Attributes

Applies to

GenerateResponseAsync(String)

public:
 virtual IAsyncOperationWithProgress<LanguageModelResponseResult ^, Platform::String ^> ^ GenerateResponseAsync(Platform::String ^ prompt) = GenerateResponseAsync;
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.Overload("GenerateResponseAsync")]
IAsyncOperationWithProgress<LanguageModelResponseResult, winrt::hstring const&> GenerateResponseAsync(winrt::hstring const& prompt);
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.Overload("GenerateResponseAsync")]
public IAsyncOperationWithProgress<LanguageModelResponseResult,string> GenerateResponseAsync(string prompt);
function generateResponseAsync(prompt)
Public Function GenerateResponseAsync (prompt As String) As IAsyncOperationWithProgress(Of LanguageModelResponseResult, String)

Parameters

prompt
String

Platform::String

winrt::hstring

Returns

Attributes

Applies to

GenerateResponseAsync(String, LanguageModelOptions)

public:
 virtual IAsyncOperationWithProgress<LanguageModelResponseResult ^, Platform::String ^> ^ GenerateResponseAsync(Platform::String ^ prompt, LanguageModelOptions ^ options) = GenerateResponseAsync;
/// [Windows.Foundation.Metadata.Experimental]
/// [Windows.Foundation.Metadata.Overload("GenerateResponseAsync2")]
IAsyncOperationWithProgress<LanguageModelResponseResult, winrt::hstring const&> GenerateResponseAsync(winrt::hstring const& prompt, LanguageModelOptions const& options);
[Windows.Foundation.Metadata.Experimental]
[Windows.Foundation.Metadata.Overload("GenerateResponseAsync2")]
public IAsyncOperationWithProgress<LanguageModelResponseResult,string> GenerateResponseAsync(string prompt, LanguageModelOptions options);
function generateResponseAsync(prompt, options)
Public Function GenerateResponseAsync (prompt As String, options As LanguageModelOptions) As IAsyncOperationWithProgress(Of LanguageModelResponseResult, String)

Parameters

prompt
String

Platform::String

winrt::hstring

Returns

Attributes

Applies to