1 type derived from AdditionalPropertiesDictionary
Microsoft.Extensions.AI.Abstractions (1)
AdditionalPropertiesDictionary.cs (1)
13public sealed class AdditionalPropertiesDictionary : AdditionalPropertiesDictionary<object?>
7 instantiations of AdditionalPropertiesDictionary
Microsoft.Extensions.AI.Abstractions (2)
AdditionalPropertiesDictionary{TValue}.cs (1)
61public AdditionalPropertiesDictionary<TValue> Clone() => new(_dictionary);
UsageDetails.cs (1)
43AdditionalCounts = new(countsToAdd);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatCompletion.cs (1)
425AdditionalCounts = new(),
Microsoft.Extensions.AI.OpenAI.Tests (3)
OpenAIChatClientTests.cs (1)
285Assert.Equal(new AdditionalPropertiesDictionary<long>
OpenAISerializationTests.cs (2)
463AdditionalCounts = new() 582AdditionalCounts = new()
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
647AdditionalCounts = new() { ["firstValue"] = value, ["secondValue"] = value },
16 references to AdditionalPropertiesDictionary
Microsoft.Extensions.AI.Abstractions (13)
AdditionalPropertiesDictionary{TValue}.cs (12)
24[DebuggerTypeProxy(typeof(AdditionalPropertiesDictionary<>.DebugView))] 30/// <summary>Initializes a new instance of the <see cref="AdditionalPropertiesDictionary{TValue}"/> class.</summary> 36/// <summary>Initializes a new instance of the <see cref="AdditionalPropertiesDictionary{TValue}"/> class.</summary> 42/// <summary>Initializes a new instance of the <see cref="AdditionalPropertiesDictionary{TValue}"/> class.</summary> 61public AdditionalPropertiesDictionary<TValue> Clone() => new(_dictionary); 128/// Returns an enumerator that iterates through the <see cref="AdditionalPropertiesDictionary{TValue}"/>. 130/// <returns>An <see cref="AdditionalPropertiesDictionary{TValue}.Enumerator"/> that enumerates the contents of the <see cref="AdditionalPropertiesDictionary{TValue}"/>.</returns> 195/// <returns><see langword="true"/> if the <see cref="AdditionalPropertiesDictionary{TValue}"/> contains an element with the specified key; otherwise <see langword="false"/>.</returns> 204/// <summary>Enumerates the elements of an <see cref="AdditionalPropertiesDictionary{TValue}"/>.</summary> 241private sealed class DebugView(AdditionalPropertiesDictionary<TValue> properties) 243private readonly AdditionalPropertiesDictionary<TValue> _properties = Throw.IfNull(properties);
UsageDetails.cs (1)
29public AdditionalPropertiesDictionary<long>? AdditionalCounts { get; set; }
Microsoft.Extensions.AI.Ollama (3)
OllamaChatClient.cs (1)
201AdditionalPropertiesDictionary<long>? additionalCounts = null;
OllamaEmbeddingGenerator.cs (1)
129AdditionalPropertiesDictionary<long>? additionalCounts = null;
OllamaUtilities.cs (1)
20public static void TransferNanosecondsTime<TResponse>(TResponse response, Func<TResponse, long?> getNanoseconds, string key, ref AdditionalPropertiesDictionary<long>? metadata)