Skip to content

Commit

Permalink
.Net: Fixed typos (#9503)
Browse files Browse the repository at this point in the history
### Motivation and Context

<!-- Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
  2. What problem does it solve?
  3. What scenario does it contribute to?
  4. If it fixes an open issue, please link to the issue here.
-->

Fixed typos that are blocking other PRs from merge due to Spell Checker.

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [x] I didn't break anyone 😄
  • Loading branch information
dmytrostruk authored Nov 1, 2024
1 parent 6f223c2 commit 936366e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/_typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ extend-exclude = [
"PopulationByCountry.csv",
"PopulationByAdmin1.csv",
"WomensSuffrage.txt",
"SK-dotnet.sln.DotSettings"
]

[default.extend-words]
Expand Down
12 changes: 6 additions & 6 deletions dotnet/src/Agents/UnitTests/Core/History/MockHistoryGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static IEnumerable<ChatMessageContent> CreateHistoryWithUserInput(int mes
{
yield return
index % 2 == 1 ?
new ChatMessageContent(AuthorRole.Assistant, $"asistant response: {index}") :
new ChatMessageContent(AuthorRole.Assistant, $"assistant response: {index}") :
new ChatMessageContent(AuthorRole.User, $"user input: {index}");
}
}
Expand All @@ -49,18 +49,18 @@ public static IEnumerable<ChatMessageContent> CreateHistoryWithUserInput(int mes
public static IEnumerable<ChatMessageContent> CreateHistoryWithFunctionContent()
{
yield return new ChatMessageContent(AuthorRole.User, "user input: 0");
yield return new ChatMessageContent(AuthorRole.Assistant, "asistant response: 1");
yield return new ChatMessageContent(AuthorRole.Assistant, "assistant response: 1");
yield return new ChatMessageContent(AuthorRole.User, "user input: 2");
yield return new ChatMessageContent(AuthorRole.Assistant, "asistant response: 3");
yield return new ChatMessageContent(AuthorRole.Assistant, "assistant response: 3");
yield return new ChatMessageContent(AuthorRole.User, "user input: 4");
yield return new ChatMessageContent(AuthorRole.Assistant, [new FunctionCallContent("function call: 5")]);
yield return new ChatMessageContent(AuthorRole.Tool, [new FunctionResultContent("function result: 6")]);
yield return new ChatMessageContent(AuthorRole.Assistant, "asistant response: 7");
yield return new ChatMessageContent(AuthorRole.Assistant, "assistant response: 7");
yield return new ChatMessageContent(AuthorRole.User, "user input: 8");
yield return new ChatMessageContent(AuthorRole.Assistant, [new FunctionCallContent("function call: 9")]);
yield return new ChatMessageContent(AuthorRole.Tool, [new FunctionResultContent("function result: 10")]);
yield return new ChatMessageContent(AuthorRole.Assistant, "asistant response: 11");
yield return new ChatMessageContent(AuthorRole.Assistant, "assistant response: 11");
yield return new ChatMessageContent(AuthorRole.User, "user input: 12");
yield return new ChatMessageContent(AuthorRole.Assistant, "asistant response: 13");
yield return new ChatMessageContent(AuthorRole.Assistant, "assistant response: 13");
}
}

0 comments on commit 936366e

Please sign in to comment.