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