Implemented interface members:
2 writes to
Microsoft.Extensions.AI.Abstractions.Tests (2)
AdditionalPropertiesDictionaryTests.cs (2)
76
d
[
"key"] = input;
88
d
[
"key"] = input;
26 references to
Microsoft.Extensions.AI.Abstractions.Tests (20)
AdditionalPropertiesDictionaryTests.cs (8)
39
Assert.Equal("value2", d
[
"key1"]);
40
Assert.Equal("value2", d
[
"kEY1"]);
42
Assert.Equal("value3", d
[
"key2"]);
43
Assert.Equal("value3", d
[
"KEY2"]);
45
Assert.Equal("value5", d
[
"Key3"]);
46
Assert.Equal("value5", d
[
"KEy3"]);
102
Assert.Equal("value", d
[
"key"]);
106
Assert.Equal("value", d
[
"key"]);
ChatCompletion\ChatMessageTests.cs (7)
307
Assert.Equal("message-metadata-value-1", deserializedMessage.AdditionalProperties
[
"message-metadata-key-1"]?.ToString());
317
Assert.Equal("metadata-value-1", textContent.AdditionalProperties
[
"metadata-key-1"]?.ToString());
325
Assert.Equal("metadata-value-2", imageContent.AdditionalProperties
[
"metadata-key-2"]?.ToString());
333
Assert.Equal("metadata-value-3", dataContent.AdditionalProperties
[
"metadata-key-3"]?.ToString());
341
Assert.Equal("metadata-value-4", audioContent.AdditionalProperties
[
"metadata-key-4"]?.ToString());
349
Assert.Equal("metadata-value-5", imageContent.AdditionalProperties
[
"metadata-key-5"]?.ToString());
356
Assert.Equal("metadata-value-6", textContent.AdditionalProperties
[
"metadata-key-6"]?.ToString());
ChatCompletion\StreamingChatCompletionUpdateExtensionsTests.cs (5)
76
Assert.Equal("b", message.AdditionalProperties
[
"a"]);
77
Assert.Equal("d", message.AdditionalProperties
[
"c"]);
84
Assert.Equal("h", message.AdditionalProperties
[
"g"]);
85
Assert.Equal("f", message.AdditionalProperties
[
"e"]);
86
Assert.Equal(42, message.AdditionalProperties
[
"i"]);
Microsoft.Extensions.AI.OpenAI.Tests (6)
OpenAIChatClientTests.cs (6)
205
Assert.Equal("fp_f85bea6784", response.AdditionalProperties
[
nameof(OpenAI.Chat.ChatCompletion.SystemFingerprint)]);
279
Assert.Equal(new Dictionary<string, object> { [nameof(ChatOutputTokenUsageDetails.ReasoningTokenCount)] = 0 }, usage.Details.AdditionalProperties
[
nameof(ChatTokenUsage.OutputTokenDetails)]);
478
Assert.Equal("fp_f85bea6784", response.AdditionalProperties
[
nameof(OpenAI.Chat.ChatCompletion.SystemFingerprint)]);
571
Assert.Equal("fp_f85bea6784", response.AdditionalProperties
[
nameof(OpenAI.Chat.ChatCompletion.SystemFingerprint)]);
786
Assert.Equal(new Dictionary<string, object> { [nameof(ChatOutputTokenUsageDetails.ReasoningTokenCount)] = 0 }, usage.Details.AdditionalProperties
[
nameof(ChatTokenUsage.OutputTokenDetails)]);
922
Assert.Equal("fp_f85bea6784", response.AdditionalProperties
[
nameof(OpenAI.Chat.ChatCompletion.SystemFingerprint)]);