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