6 references to TryGetValue
Microsoft.Extensions.AI.Abstractions (2)
AdditionalPropertiesDictionary{TValue}.cs (1)
162if (TryGetValue(key, out TValue? obj))
UsageDetails.cs (1)
49AdditionalCounts[kvp.Key] = AdditionalCounts.TryGetValue(kvp.Key, out var existingValue) ?
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\ChatCompletionTests.cs (1)
166Assert.True(result.AdditionalProperties.TryGetValue("key", out object? value));
ChatCompletion\ChatOptionsTests.cs (1)
167Assert.True(deserialized.AdditionalProperties.TryGetValue("key", out object? value));
ChatCompletion\StreamingChatCompletionUpdateTests.cs (1)
216Assert.True(result.AdditionalProperties.TryGetValue("key", out object? value));
Embeddings\EmbeddingGenerationOptionsTests.cs (1)
82Assert.True(deserialized.AdditionalProperties.TryGetValue("key", out object? value));