3 references to TryAdd
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (1)
125_ = message.AdditionalProperties.TryAdd(entry.Key, entry.Value);
Microsoft.Extensions.AI.Abstractions.Tests (2)
AdditionalPropertiesDictionaryTests.cs (2)
100Assert.True(d.TryAdd("key", "value")); 104Assert.False(d.TryAdd("key", "value2"));