28 instantiations of AdditionalPropertiesDictionary
Microsoft.Extensions.AI.Abstractions (2)
AdditionalPropertiesDictionary.cs (1)
58
public AdditionalPropertiesDictionary Clone() =>
new
(_dictionary);
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (1)
118
message.AdditionalProperties =
new
(update.AdditionalProperties);
Microsoft.Extensions.AI.Abstractions.Tests (24)
AdditionalPropertiesDictionaryTests.cs (4)
15
AdditionalPropertiesDictionary d =
new
();
18
d =
new
(new Dictionary<string, object?> { ["key1"] = "value1" });
21
d =
new
((IEnumerable<KeyValuePair<string, object?>>)new Dictionary<string, object?> { ["key1"] = "value1", ["key2"] = "value2" });
28
AdditionalPropertiesDictionary d =
new
()
ChatCompletion\ChatCompletionTests.cs (3)
214
AdditionalProperties =
new
() { ["key1"] = "value1", ["key2"] = 42 },
246
AdditionalProperties =
new
() { ["choice1Key"] = "choice1Value" },
255
AdditionalProperties =
new
() { ["choice2Key"] = "choice2Value" },
ChatCompletion\ChatMessageTests.cs (7)
266
AdditionalProperties =
new
() { ["metadata-key-1"] = "metadata-value-1" }
270
AdditionalProperties =
new
() { ["metadata-key-2"] = "metadata-value-2" }
274
AdditionalProperties =
new
() { ["metadata-key-3"] = "metadata-value-3" }
278
AdditionalProperties =
new
() { ["metadata-key-4"] = "metadata-value-4" }
282
AdditionalProperties =
new
() { ["metadata-key-5"] = "metadata-value-5" }
286
AdditionalProperties =
new
() { ["metadata-key-6"] = "metadata-value-6" }
297
AdditionalProperties =
new
() { ["message-metadata-key-1"] = "message-metadata-value-1" },
ChatCompletion\ChatOptionsTests.cs (2)
63
AdditionalPropertiesDictionary additionalProps =
new
()
123
AdditionalPropertiesDictionary additionalProps =
new
()
ChatCompletion\StreamingChatCompletionUpdateTests.cs (1)
65
AdditionalPropertiesDictionary props =
new
() { ["key"] = "value" };
Contents\AIContentTests.cs (1)
29
AdditionalPropertiesDictionary props =
new
() { { "key", "value" } };
Contents\FunctionCallContentTests..cs (2)
59
AdditionalPropertiesDictionary props =
new
() { { "key", "value" } };
68
AdditionalPropertiesDictionary args =
new
() { { "key", "value" } };
Contents\FunctionResultContentTests.cs (1)
47
AdditionalPropertiesDictionary props =
new
() { { "key", "value" } };
Contents\TextContentTests.cs (1)
33
AdditionalPropertiesDictionary props =
new
() { { "key", "value" } };
Embeddings\EmbeddingGenerationOptionsTests.cs (2)
39
AdditionalPropertiesDictionary additionalProps =
new
()
63
AdditionalPropertiesDictionary additionalProps =
new
()
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
118
AdditionalProperties =
new
()
Microsoft.Extensions.AI.Tests (1)
Embeddings\DistributedCachingEmbeddingGeneratorTest.cs (1)
21
AdditionalProperties =
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>
58
public
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>
231
private sealed class DebugView(
AdditionalPropertiesDictionary
properties)
233
private readonly
AdditionalPropertiesDictionary
_properties = Throw.IfNull(properties);
ChatCompletion\ChatCompletion.cs (1)
86
public
AdditionalPropertiesDictionary
? AdditionalProperties { get; set; }
ChatCompletion\ChatMessage.cs (1)
94
public
AdditionalPropertiesDictionary
? AdditionalProperties { get; set; }
ChatCompletion\ChatOptions.cs (1)
61
public
AdditionalPropertiesDictionary
? AdditionalProperties { get; set; }
ChatCompletion\StreamingChatCompletionUpdate.cs (1)
100
public
AdditionalPropertiesDictionary
? AdditionalProperties { get; set; }
Contents\AIContent.cs (1)
36
public
AdditionalPropertiesDictionary
? AdditionalProperties { get; set; }
Embeddings\Embedding.cs (1)
33
public
AdditionalPropertiesDictionary
? AdditionalProperties { get; set; }
Embeddings\EmbeddingGenerationOptions.cs (1)
32
public
AdditionalPropertiesDictionary
? AdditionalProperties { get; set; }
Embeddings\GeneratedEmbeddings.cs (1)
46
public
AdditionalPropertiesDictionary
? AdditionalProperties { get; set; }
UsageDetails.cs (1)
23
public
AdditionalPropertiesDictionary
? AdditionalProperties { get; set; }
Microsoft.Extensions.AI.Abstractions.Tests (20)
AdditionalPropertiesDictionaryTests.cs (6)
15
AdditionalPropertiesDictionary
d = new();
28
AdditionalPropertiesDictionary
d = new()
75
AdditionalPropertiesDictionary
d = [];
87
AdditionalPropertiesDictionary
d = [];
97
AdditionalPropertiesDictionary
d = [];
112
AdditionalPropertiesDictionary
d = [];
ChatCompletion\ChatCompletionTests.cs (1)
116
AdditionalPropertiesDictionary
additionalProps = [];
ChatCompletion\ChatMessageTests.cs (1)
243
AdditionalPropertiesDictionary
props = [];
ChatCompletion\ChatOptionsTests.cs (2)
63
AdditionalPropertiesDictionary
additionalProps = new()
123
AdditionalPropertiesDictionary
additionalProps = new()
ChatCompletion\StreamingChatCompletionUpdateTests.cs (1)
65
AdditionalPropertiesDictionary
props = new() { ["key"] = "value" };
Contents\AIContentTests.cs (1)
29
AdditionalPropertiesDictionary
props = new() { { "key", "value" } };
Contents\FunctionCallContentTests..cs (2)
59
AdditionalPropertiesDictionary
props = new() { { "key", "value" } };
68
AdditionalPropertiesDictionary
args = new() { { "key", "value" } };
Contents\FunctionResultContentTests.cs (1)
47
AdditionalPropertiesDictionary
props = new() { { "key", "value" } };
Contents\TextContentTests.cs (1)
33
AdditionalPropertiesDictionary
props = new() { { "key", "value" } };
Embeddings\EmbeddingGenerationOptionsTests.cs (2)
39
AdditionalPropertiesDictionary
additionalProps = new()
63
AdditionalPropertiesDictionary
additionalProps = new()
Embeddings\EmbeddingTests.cs (1)
18
AdditionalPropertiesDictionary
props = [];
Embeddings\GeneratedEmbeddingsTests.cs (1)
105
AdditionalPropertiesDictionary
props = [];
Microsoft.Extensions.AI.Ollama (4)
OllamaChatClient.cs (2)
209
private static
AdditionalPropertiesDictionary
? ParseOllamaChatResponseProps(OllamaChatResponse response)
211
AdditionalPropertiesDictionary
? metadata = null;
OllamaEmbeddingGenerator.cs (1)
129
AdditionalPropertiesDictionary
? responseProps = null;
OllamaUtilities.cs (1)
20
public static void TransferNanosecondsTime<TResponse>(TResponse response, Func<TResponse, long?> getNanoseconds, string key, ref
AdditionalPropertiesDictionary
? metadata)