Skip to content

Commit

Permalink
Fix docs to focus on chat scenarios.
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrandvd authored Sep 14, 2024
1 parent 2965ff6 commit 321a98a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
}
```
Expand Down

0 comments on commit 321a98a

Please sign in to comment.