3 writes to AdditionalProperties
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\EmbeddingGenerationOptions.cs (1)
45AdditionalProperties = AdditionalProperties?.Clone(),
Microsoft.Extensions.AI.Abstractions.Tests (2)
Embeddings\EmbeddingGenerationOptionsTests.cs (2)
46options.AdditionalProperties = additionalProps; 69options.AdditionalProperties = additionalProps;
12 references to AdditionalProperties
Microsoft.Extensions.AI.Abstractions (2)
Embeddings\EmbeddingGenerationOptions.cs (2)
37/// The clone will have the same values for all properties as the original instance. Any collections, like <see cref="AdditionalProperties"/> 45AdditionalProperties = AdditionalProperties?.Clone(),
Microsoft.Extensions.AI.Abstractions.Tests (7)
Embeddings\EmbeddingGenerationOptionsTests.cs (7)
17Assert.Null(options.AdditionalProperties); 22Assert.Null(clone.AdditionalProperties); 50Assert.Same(additionalProps, options.AdditionalProperties); 55Assert.Equal(additionalProps, clone.AdditionalProperties); 80Assert.NotNull(deserialized.AdditionalProperties); 81Assert.Single(deserialized.AdditionalProperties); 82Assert.True(deserialized.AdditionalProperties.TryGetValue("key", out object? value));
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceEmbeddingGenerator.cs (1)
170if (options?.AdditionalProperties is { } props)
Microsoft.Extensions.AI.Ollama (1)
OllamaEmbeddingGenerator.cs (1)
93if (options?.AdditionalProperties is { } requestProps)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIEmbeddingGenerator.cs (1)
147if (options?.AdditionalProperties is { Count: > 0 } additionalProperties)