From 321a98a3f1ee025f1624c45479febad2485476ee Mon Sep 17 00:00:00 2001 From: Mehran Davoudi Date: Sun, 15 Sep 2024 02:49:40 +0330 Subject: [PATCH] Fix docs to focus on chat scenarios. --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bcef4bb..8ef79f8 100644 --- a/README.md +++ b/README.md @@ -202,14 +202,19 @@ public class MyTest SemanticKernelAssert SemanticKernelAssert { get; set; } MyTest(ITestOutputHelper output) { - SemanticKernelAssert = new SemanticKernelAssert(_deploymentName, _endpoint, _apiKey, message => output.WriteLine(message)); + SemanticKernelAssert = new SemanticKernelAssert(_deploymentName, _endpoint, _apiKey, output.WriteLine); } [Fact] - MyFunctionShouldWork() + TestChat() { - var scenarios = await InvocationScenario.LoadFromResourceAsync(scenario); - await SemanticKernelAssert.CheckScenarioAsync(Kernel, scenarios); + var scenario = // Load your markdown. + var scenarios = await ChatScenario.LoadFromTest(scenario); + await SemanticKernelAssert.CheckChatScenarioAsync(scenarios, async history => + { + var result = // your logic to be tested; + return result; + }); } } ```