28 instantiations of AdditionalPropertiesDictionary
Microsoft.Extensions.AI.Abstractions (2)
AdditionalPropertiesDictionary.cs (1)
58public AdditionalPropertiesDictionary Clone() => new(_dictionary);
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)
118AdditionalProperties = new()
Microsoft.Extensions.AI.Tests (1)
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
21AdditionalProperties = new() { ["a"] = "b" },
43 references to AdditionalPropertiesDictionary
Microsoft.Extensions.AI.Abstractions (19)
AdditionalPropertiesDictionary.cs (10)
27/// <summary>Initializes a new instance of the <see cref="AdditionalPropertiesDictionary"/> class.</summary> 33/// <summary>Initializes a new instance of the <see cref="AdditionalPropertiesDictionary"/> class.</summary> 39/// <summary>Initializes a new instance of the <see cref="AdditionalPropertiesDictionary"/> class.</summary> 58public AdditionalPropertiesDictionary Clone() => new(_dictionary); 125/// Returns an enumerator that iterates through the <see cref="AdditionalPropertiesDictionary"/>. 127/// <returns>An <see cref="AdditionalPropertiesDictionary.Enumerator"/> that enumerates the contents of the <see cref="AdditionalPropertiesDictionary"/>.</returns> 194/// <summary>Enumerates the elements of an <see cref="AdditionalPropertiesDictionary"/>.</summary> 231private sealed class DebugView(AdditionalPropertiesDictionary properties) 233private readonly AdditionalPropertiesDictionary _properties = Throw.IfNull(properties);
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; }
UsageDetails.cs (1)
23public 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.Ollama (4)
OllamaChatClient.cs (2)
209private static AdditionalPropertiesDictionary? ParseOllamaChatResponseProps(OllamaChatResponse response) 211AdditionalPropertiesDictionary? metadata = null;
OllamaEmbeddingGenerator.cs (1)
129AdditionalPropertiesDictionary? responseProps = null;
OllamaUtilities.cs (1)
20public static void TransferNanosecondsTime<TResponse>(TResponse response, Func<TResponse, long?> getNanoseconds, string key, ref AdditionalPropertiesDictionary? metadata)