You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -63,17 +69,16 @@ std::wstring prompt = L"Summarize the following text concisely:\n\n" + inputText
63
69
64
70
auto result = languageModel.GenerateResponseAsync(prompt).get();
65
71
66
-
std::wcout << result.Response() << std::endl;
72
+
std::wcout << result.Text() << std::endl;
67
73
```
68
74
69
75
> [!NOTE]
70
-
> The `LanguageModelSkill` enum (`Summarize`, `Rewrite`) is not available in the current experimental build. The examples above use prompt engineering — prepending an instruction to the input text — to achieve the same result. When the Skill API is released, you can replace the prompt construction with `new LanguageModelOptions { Skill = LanguageModelSkill.Summarize }`.
76
+
> The `LanguageModelSkill` enum (`Summarize`, `Rewrite`) is not available in Windows App SDK 2.0 preview. The examples above use prompt engineering — prepending an instruction to the input text — to achieve the same result. When the Skill API is released, you can replace the prompt construction with `new LanguageModelOptions { Skill = LanguageModelSkill.Summarize }`.
71
77
72
78
## Build and run the sample
73
79
74
80
1. Clone the [WindowsAppSDK-Samples](https://github.com/microsoft/WindowsAppSDK-Samples) repo.
75
-
1. Switch to the "release/experimental" branch.
76
-
1. Navigate to the [Samples/WindowsAIFoundry/cs-maui](https://github.com/microsoft/WindowsAppSDK-Samples/tree/release/experimental/Samples/WindowsAIFoundry/cs-maui) folder.
81
+
1. Navigate to the [Samples/WindowsAIFoundry/cs-maui](https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/WindowsAIFoundry/cs-maui) folder.
77
82
1. Open MauiWindowsAISample.sln in Visual Studio 2022.
78
83
1. Ensure the debug toolbar has "Windows Machine" set as the target device.
79
84
1. Press F5 or select "Start Debugging" from the Debug menu to run the sample (the sample can also be run without debugging by selecting "Start Without Debugging" from the Debug menu or Ctrl+F5).
0 commit comments