LanguageModelExperimental.CompressPromptAsync(String, Single) 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.
public:
virtual IAsyncOperation<Platform::String ^> ^ CompressPromptAsync(Platform::String ^ prompt, float preferredRetentionRatio) = CompressPromptAsync;
/// [Windows.Foundation.Metadata.Experimental]
IAsyncOperation<winrt::hstring> CompressPromptAsync(winrt::hstring const& prompt, float const& preferredRetentionRatio);
[Windows.Foundation.Metadata.Experimental]
public IAsyncOperation<string> CompressPromptAsync(string prompt, float preferredRetentionRatio);
function compressPromptAsync(prompt, preferredRetentionRatio)
Public Function CompressPromptAsync (prompt As String, preferredRetentionRatio As Single) As IAsyncOperation(Of String)
Parameters
- prompt
-
String
Platform::String
winrt::hstring
- preferredRetentionRatio
-
Single
float
Returns
- Attributes