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)
100
Assert.True(d.
TryAdd
("key", "value"));
104
Assert.False(d.
TryAdd
("key", "value2"));