LanguageModel.GenerateResponseAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| GenerateResponseAsync(LanguageModelContext, String, LanguageModelOptions) |
言語モデルによって生成された各トークンの進行状況を返しながら、文字列プロンプトへの応答を生成します。 |
| GenerateResponseAsync(String, LanguageModelOptions) |
言語モデルによって生成された各トークンの進行状況を返しながら、文字列プロンプトへの応答を生成します。 |
| GenerateResponseAsync(String) |
言語モデルによって生成された各トークンの進行状況を返しながら、文字列プロンプトへの応答を生成します。 |
GenerateResponseAsync(LanguageModelContext, String, LanguageModelOptions)
言語モデルによって生成された各トークンの進行状況を返しながら、文字列プロンプトへの応答を生成します。
public:
virtual IAsyncOperationWithProgress<LanguageModelResponseResult ^, Platform::String ^> ^ GenerateResponseAsync(LanguageModelContext ^ context, Platform::String ^ prompt, LanguageModelOptions ^ options) = GenerateResponseAsync;
/// [Windows.Foundation.Metadata.Overload("GenerateResponseAsync3")]
IAsyncOperationWithProgress<LanguageModelResponseResult, winrt::hstring const&> GenerateResponseAsync(LanguageModelContext const& context, winrt::hstring const& prompt, LanguageModelOptions const& options);
[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)
パラメーター
- context
- LanguageModelContext
言語モデルが入力プロンプトを理解し、応答を生成するために一度に処理できるトークンを定義するコンテキスト ウィンドウ。 コンテキスト ウィンドウはモデルの短期メモリのように機能し、入力プロンプトと前の会話を保持して一貫性を維持します。
- prompt
-
String
Platform::String
winrt::hstring
応答を必要とする文字列プロンプト。
- options
- LanguageModelOptions
言語モデルがプロンプトに応答する方法に影響するオプション。
返品
IAsyncOperationWithProgress<LanguageModelResponseResult,String>
IAsyncOperationWithProgress<LanguageModelResponseResult,Platform::String>
IAsyncOperationWithProgress<LanguageModelResponseResult,winrt::hstring>
プロンプトへの応答。
- 属性
適用対象
GenerateResponseAsync(String, LanguageModelOptions)
言語モデルによって生成された各トークンの進行状況を返しながら、文字列プロンプトへの応答を生成します。
public:
virtual IAsyncOperationWithProgress<LanguageModelResponseResult ^, Platform::String ^> ^ GenerateResponseAsync(Platform::String ^ prompt, LanguageModelOptions ^ options) = GenerateResponseAsync;
/// [Windows.Foundation.Metadata.Overload("GenerateResponseAsync2")]
IAsyncOperationWithProgress<LanguageModelResponseResult, winrt::hstring const&> GenerateResponseAsync(winrt::hstring const& prompt, LanguageModelOptions const& options);
[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)
パラメーター
- prompt
-
String
Platform::String
winrt::hstring
応答を必要とする文字列プロンプト。
- options
- LanguageModelOptions
言語モデルがプロンプトに応答する方法に影響するオプション。
返品
IAsyncOperationWithProgress<LanguageModelResponseResult,String>
IAsyncOperationWithProgress<LanguageModelResponseResult,Platform::String>
IAsyncOperationWithProgress<LanguageModelResponseResult,winrt::hstring>
プロンプトへの応答。
- 属性
適用対象
GenerateResponseAsync(String)
言語モデルによって生成された各トークンの進行状況を返しながら、文字列プロンプトへの応答を生成します。
public:
virtual IAsyncOperationWithProgress<LanguageModelResponseResult ^, Platform::String ^> ^ GenerateResponseAsync(Platform::String ^ prompt) = GenerateResponseAsync;
/// [Windows.Foundation.Metadata.Overload("GenerateResponseAsync")]
IAsyncOperationWithProgress<LanguageModelResponseResult, winrt::hstring const&> GenerateResponseAsync(winrt::hstring const& prompt);
[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)
パラメーター
- prompt
-
String
Platform::String
winrt::hstring
応答を必要とする文字列プロンプト。
返品
IAsyncOperationWithProgress<LanguageModelResponseResult,String>
IAsyncOperationWithProgress<LanguageModelResponseResult,Platform::String>
IAsyncOperationWithProgress<LanguageModelResponseResult,winrt::hstring>
プロンプトへの応答。
- 属性