diff --git a/dotnet/src/Microsoft.Agents.AI/Functions/ContextualFunctionProvider.cs b/dotnet/src/Microsoft.Agents.AI/Functions/ContextualFunctionProvider.cs index 8aba47b7d9..3f5cda31d0 100644 --- a/dotnet/src/Microsoft.Agents.AI/Functions/ContextualFunctionProvider.cs +++ b/dotnet/src/Microsoft.Agents.AI/Functions/ContextualFunctionProvider.cs @@ -151,7 +151,7 @@ public sealed class ContextualFunctionProvider : AIContextProvider return await this._options.ContextEmbeddingValueProvider.Invoke(recentMessages, newMessages, cancellationToken).ConfigureAwait(false); } - // Build context from the recent messages that already include the new messages + // Build context by concatenating the recent messages and the new messages return string.Join( Environment.NewLine, this._recentMessages diff --git a/dotnet/src/Microsoft.Agents.AI/Functions/ContextualFunctionProviderOptions.cs b/dotnet/src/Microsoft.Agents.AI/Functions/ContextualFunctionProviderOptions.cs index 74b8027b8b..f56a18b183 100644 --- a/dotnet/src/Microsoft.Agents.AI/Functions/ContextualFunctionProviderOptions.cs +++ b/dotnet/src/Microsoft.Agents.AI/Functions/ContextualFunctionProviderOptions.cs @@ -20,7 +20,7 @@ public sealed class ContextualFunctionProviderOptions public string? CollectionName { get; set; } /// - /// Gets or sets the number of recent messages(messages from previous model/agent invocations) the provider uses to form a context. + /// Gets or sets the number of recent messages (messages from previous model/agent invocations) the provider uses to form a context. /// The provider collects all messages from all model/agent invocations, up to this number, /// and prepends them to the new messages of the current model/agent invocation to build a context. /// While collecting new messages, the provider will remove the oldest messages diff --git a/dotnet/tests/Microsoft.Agents.AI.UnitTests/Functions/FunctionStoreTests.cs b/dotnet/tests/Microsoft.Agents.AI.UnitTests/Functions/FunctionStoreTests.cs index ebc84f4c3b..139c5da085 100644 --- a/dotnet/tests/Microsoft.Agents.AI.UnitTests/Functions/FunctionStoreTests.cs +++ b/dotnet/tests/Microsoft.Agents.AI.UnitTests/Functions/FunctionStoreTests.cs @@ -58,7 +58,7 @@ public sealed class FunctionStoreTests } [Fact] - public async Task SaveAsync_ShouldUpsertFunctions_Async() + public async Task SaveAsync_ShouldUpsertFunctionsAsync() { // Arrange var functions = new List