diff --git a/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Models/StreamingChatToolCallsBuilder.cs b/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Models/StreamingChatToolCallsBuilder.cs index 80f10c10f..a43b78527 100644 --- a/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Models/StreamingChatToolCallsBuilder.cs +++ b/dotnet/packages/Microsoft.TeamsAI/Microsoft.TeamsAI/AI/Models/StreamingChatToolCallsBuilder.cs @@ -5,9 +5,9 @@ namespace Microsoft.Teams.AI.AI.Models { public class StreamingChatToolCallsBuilder { - private readonly Dictionary _indexToToolCallId = []; - private readonly Dictionary _indexToFunctionName = []; - private readonly Dictionary> _indexToFunctionArguments = []; + private readonly Dictionary _indexToToolCallId = new(); + private readonly Dictionary _indexToFunctionName = new(); + private readonly Dictionary> _indexToFunctionArguments = new(); public void Append(StreamingChatToolCallUpdate toolCallUpdate) { @@ -39,7 +39,7 @@ public void Append(StreamingChatToolCallUpdate toolCallUpdate) public IReadOnlyList Build() { - List toolCalls = []; + List toolCalls = new(); foreach (KeyValuePair indexToToolCallIdPair in _indexToToolCallId) {