4 writes to AdditionalProperties
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
84AdditionalProperties = AdditionalProperties?.Clone(),
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatOptionsTests.cs (2)
80options.AdditionalProperties = additionalProps; 144options.AdditionalProperties = additionalProps;
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
118AdditionalProperties = new()
12 references to AdditionalProperties
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatOptions.cs (2)
67/// <see cref="StopSequences"/>, and <see cref="AdditionalProperties"/>, are shallow-cloned, meaning a new collection instance is created, 84AdditionalProperties = AdditionalProperties?.Clone(),
Microsoft.Extensions.AI.Abstractions.Tests (7)
ChatCompletion\ChatOptionsTests.cs (7)
28Assert.Null(options.AdditionalProperties); 43Assert.Null(clone.AdditionalProperties); 94Assert.Same(additionalProps, options.AdditionalProperties); 109Assert.Equal(additionalProps, clone.AdditionalProperties); 166Assert.NotNull(deserialized.AdditionalProperties); 167Assert.Single(deserialized.AdditionalProperties); 168Assert.True(deserialized.AdditionalProperties.TryGetValue("key", out object? value));
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
318if (options.AdditionalProperties is { } props)
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
339if (options.AdditionalProperties?.TryGetValue(propertyName, out T? t) is true)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
420if (options.AdditionalProperties is { Count: > 0 } additionalProperties)