LanguageModel.GenerateResponseAsync 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.
Overloads
GenerateResponseAsync(LanguageModelContext, String, LanguageModelOptions) | |
GenerateResponseAsync(String) | |
GenerateResponseAsync(String, LanguageModelOptions) |
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
- context
- LanguageModelContext
- prompt
-
String
Platform::String
winrt::hstring
- options
- LanguageModelOptions
Returns
IAsyncOperationWithProgress<LanguageModelResponseResult,String>
IAsyncOperationWithProgress<LanguageModelResponseResult,Platform::String>
IAsyncOperationWithProgress<LanguageModelResponseResult,winrt::hstring>
- 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
IAsyncOperationWithProgress<LanguageModelResponseResult,String>
IAsyncOperationWithProgress<LanguageModelResponseResult,Platform::String>
IAsyncOperationWithProgress<LanguageModelResponseResult,winrt::hstring>
- 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
- options
- LanguageModelOptions
Returns
IAsyncOperationWithProgress<LanguageModelResponseResult,String>
IAsyncOperationWithProgress<LanguageModelResponseResult,Platform::String>
IAsyncOperationWithProgress<LanguageModelResponseResult,winrt::hstring>
- Attributes