From 4fa386ec894e2b29015755c1b9a3e09cc5bffd26 Mon Sep 17 00:00:00 2001 From: CrazyFrog Date: Mon, 20 Jan 2025 04:14:06 +0100 Subject: [PATCH] Fix Grammar and Variable Name Typos (#544) * Update MistralClientAgentTests.cs * Update OllamaAgentTests.cs --- .../test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs | 8 ++++---- dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs b/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs index 6715954936..ddd9a76594 100644 --- a/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs +++ b/dotnet/test/AutoGen.Mistral.Tests/MistralClientAgentTests.cs @@ -87,13 +87,13 @@ public async Task MistralAgentFunctionCallMessageTest() randomSeed: 0) .RegisterMessageConnector(); - var weatherFunctionArgumets = """ + var weatherFunctionArguments = """ { "city": "Seattle" } """; - var functionCallResult = await this.GetWeatherWrapper(weatherFunctionArgumets); - var toolCall = new ToolCall(this.GetWeatherFunctionContract.Name!, weatherFunctionArgumets) + var functionCallResult = await this.GetWeatherWrapper(weatherFunctionArguments); + var toolCall = new ToolCall(this.GetWeatherFunctionContract.Name!, weatherFunctionArguments) { ToolCallId = "012345678", // Mistral AI requires the tool call id to be a length of 9 Result = functionCallResult, @@ -101,7 +101,7 @@ public async Task MistralAgentFunctionCallMessageTest() IMessage[] chatHistory = [ new TextMessage(Role.User, "what's the weather in Seattle?"), new ToolCallMessage([toolCall], from: agent.Name), - new ToolCallResultMessage([toolCall], weatherFunctionArgumets), + new ToolCallResultMessage([toolCall], weatherFunctionArguments), ]; var reply = await agent.SendAsync(chatHistory: chatHistory); diff --git a/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs b/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs index b085534049..efcb015dda 100644 --- a/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs +++ b/dotnet/test/AutoGen.Ollama.Tests/OllamaAgentTests.cs @@ -96,7 +96,7 @@ public async Task GenerateStreamingReplyAsync_ReturnsValidMessages_WhenCalled() } [ApiKeyFact("OLLAMA_HOST")] - public async Task ItReturnValidMessageUsingLLavaAsync() + public async Task ItReturnsValidMessageUsingLLavaAsync() { var host = Environment.GetEnvironmentVariable("OLLAMA_HOST") ?? throw new InvalidOperationException("OLLAMA_HOST is not set."); @@ -160,7 +160,7 @@ public async Task ItCanProcessImageMessageUsingLLavaAsync() } [ApiKeyFact("OLLAMA_HOST")] - public async Task ItReturnValidStreamingMessageUsingLLavaAsync() + public async Task ItReturnsValidStreamingMessageUsingLLavaAsync() { var host = Environment.GetEnvironmentVariable("OLLAMA_HOST") ?? throw new InvalidOperationException("OLLAMA_HOST is not set.");