35 instantiations of AdditionalPropertiesDictionary
Microsoft.Extensions.AI.Abstractions (2)
AdditionalPropertiesDictionary.cs (1)
37public new AdditionalPropertiesDictionary Clone() => new(this);
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (1)
118message.AdditionalProperties = new(update.AdditionalProperties);
Microsoft.Extensions.AI.Abstractions.Tests (24)
AdditionalPropertiesDictionaryTests.cs (4)
15AdditionalPropertiesDictionary d = new(); 18d = new(new Dictionary<string, object?> { ["key1"] = "value1" }); 21d = new((IEnumerable<KeyValuePair<string, object?>>)new Dictionary<string, object?> { ["key1"] = "value1", ["key2"] = "value2" }); 28AdditionalPropertiesDictionary d = new()
ChatCompletion\ChatCompletionTests.cs (3)
214AdditionalProperties = new() { ["key1"] = "value1", ["key2"] = 42 }, 246AdditionalProperties = new() { ["choice1Key"] = "choice1Value" }, 255AdditionalProperties = new() { ["choice2Key"] = "choice2Value" },
ChatCompletion\ChatMessageTests.cs (7)
266AdditionalProperties = new() { ["metadata-key-1"] = "metadata-value-1" } 270AdditionalProperties = new() { ["metadata-key-2"] = "metadata-value-2" } 274AdditionalProperties = new() { ["metadata-key-3"] = "metadata-value-3" } 278AdditionalProperties = new() { ["metadata-key-4"] = "metadata-value-4" } 282AdditionalProperties = new() { ["metadata-key-5"] = "metadata-value-5" } 286AdditionalProperties = new() { ["metadata-key-6"] = "metadata-value-6" } 297AdditionalProperties = new() { ["message-metadata-key-1"] = "message-metadata-value-1" },
ChatCompletion\ChatOptionsTests.cs (2)
63AdditionalPropertiesDictionary additionalProps = new() 123AdditionalPropertiesDictionary additionalProps = new()
ChatCompletion\StreamingChatCompletionUpdateTests.cs (1)
65AdditionalPropertiesDictionary props = new() { ["key"] = "value" };
Contents\AIContentTests.cs (1)
29AdditionalPropertiesDictionary props = new() { { "key", "value" } };
Contents\FunctionCallContentTests..cs (2)
59AdditionalPropertiesDictionary props = new() { { "key", "value" } }; 68AdditionalPropertiesDictionary args = new() { { "key", "value" } };
Contents\FunctionResultContentTests.cs (1)
47AdditionalPropertiesDictionary props = new() { { "key", "value" } };
Contents\TextContentTests.cs (1)
33AdditionalPropertiesDictionary props = new() { { "key", "value" } };
Embeddings\EmbeddingGenerationOptionsTests.cs (2)
39AdditionalPropertiesDictionary additionalProps = new() 63AdditionalPropertiesDictionary additionalProps = new()
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
117AdditionalProperties = new()
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatCompletion.cs (1)
347AdditionalPropertiesDictionary additionalProperties = new();
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIChatClientTests.cs (1)
332AdditionalProperties = new()
OpenAISerializationTests.cs (2)
471AdditionalProperties = new() 602AdditionalProperties = new()
Microsoft.Extensions.AI.Tests (4)
ChatCompletion\OpenTelemetryChatClientTests.cs (2)
91AdditionalProperties = new() 130AdditionalProperties = new()
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
21AdditionalProperties = new() { ["a"] = "b" },
Embeddings\OpenTelemetryEmbeddingGeneratorTests.cs (1)
61AdditionalProperties = new()
34 references to AdditionalPropertiesDictionary
Microsoft.Extensions.AI.Abstractions (12)
AdditionalPropertiesDictionary.cs (4)
15/// <summary>Initializes a new instance of the <see cref="AdditionalPropertiesDictionary"/> class.</summary> 20/// <summary>Initializes a new instance of the <see cref="AdditionalPropertiesDictionary"/> class.</summary> 26/// <summary>Initializes a new instance of the <see cref="AdditionalPropertiesDictionary"/> class.</summary> 37public new AdditionalPropertiesDictionary Clone() => new(this);
ChatCompletion\ChatCompletion.cs (1)
86public AdditionalPropertiesDictionary? AdditionalProperties { get; set; }
ChatCompletion\ChatMessage.cs (1)
94public AdditionalPropertiesDictionary? AdditionalProperties { get; set; }
ChatCompletion\ChatOptions.cs (1)
61public AdditionalPropertiesDictionary? AdditionalProperties { get; set; }
ChatCompletion\StreamingChatCompletionUpdate.cs (1)
100public AdditionalPropertiesDictionary? AdditionalProperties { get; set; }
Contents\AIContent.cs (1)
36public AdditionalPropertiesDictionary? AdditionalProperties { get; set; }
Embeddings\Embedding.cs (1)
33public AdditionalPropertiesDictionary? AdditionalProperties { get; set; }
Embeddings\EmbeddingGenerationOptions.cs (1)
32public AdditionalPropertiesDictionary? AdditionalProperties { get; set; }
Embeddings\GeneratedEmbeddings.cs (1)
46public AdditionalPropertiesDictionary? AdditionalProperties { get; set; }
Microsoft.Extensions.AI.Abstractions.Tests (20)
AdditionalPropertiesDictionaryTests.cs (6)
15AdditionalPropertiesDictionary d = new(); 28AdditionalPropertiesDictionary d = new() 75AdditionalPropertiesDictionary d = []; 87AdditionalPropertiesDictionary d = []; 97AdditionalPropertiesDictionary d = []; 112AdditionalPropertiesDictionary d = [];
ChatCompletion\ChatCompletionTests.cs (1)
116AdditionalPropertiesDictionary additionalProps = [];
ChatCompletion\ChatMessageTests.cs (1)
243AdditionalPropertiesDictionary props = [];
ChatCompletion\ChatOptionsTests.cs (2)
63AdditionalPropertiesDictionary additionalProps = new() 123AdditionalPropertiesDictionary additionalProps = new()
ChatCompletion\StreamingChatCompletionUpdateTests.cs (1)
65AdditionalPropertiesDictionary props = new() { ["key"] = "value" };
Contents\AIContentTests.cs (1)
29AdditionalPropertiesDictionary props = new() { { "key", "value" } };
Contents\FunctionCallContentTests..cs (2)
59AdditionalPropertiesDictionary props = new() { { "key", "value" } }; 68AdditionalPropertiesDictionary args = new() { { "key", "value" } };
Contents\FunctionResultContentTests.cs (1)
47AdditionalPropertiesDictionary props = new() { { "key", "value" } };
Contents\TextContentTests.cs (1)
33AdditionalPropertiesDictionary props = new() { { "key", "value" } };
Embeddings\EmbeddingGenerationOptionsTests.cs (2)
39AdditionalPropertiesDictionary additionalProps = new() 63AdditionalPropertiesDictionary additionalProps = new()
Embeddings\EmbeddingTests.cs (1)
18AdditionalPropertiesDictionary props = [];
Embeddings\GeneratedEmbeddingsTests.cs (1)
105AdditionalPropertiesDictionary props = [];
Microsoft.Extensions.AI.OpenAI (2)
OpenAIModelMapper.ChatCompletion.cs (2)
347AdditionalPropertiesDictionary additionalProperties = new(); 584private static T? GetValueOrDefault<T>(this AdditionalPropertiesDictionary? dict, string key) =>