4 writes to AdditionalProperties
Microsoft.Extensions.AI (1)
Functions\AIFunctionFactory.cs (1)
278AdditionalProperties = options.AdditionalProperties ?? EmptyReadOnlyDictionary<string, object?>.Instance,
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionMetadata.cs (1)
57AdditionalProperties = metadata.AdditionalProperties;
Microsoft.Extensions.AI.Abstractions.Tests (2)
Functions\AIFunctionMetadataTests.cs (2)
46AdditionalProperties = new Dictionary<string, object?> { { "key", "value" } }, 63Assert.Throws<ArgumentNullException>("value", () => new AIFunctionMetadata("name") { AdditionalProperties = null! });
10 references to AdditionalProperties
Microsoft.Extensions.AI (1)
Functions\AIFunctionFactoryCreateOptions.cs (1)
70/// Gets or sets additional values to store on the resulting <see cref="AIFunctionMetadata.AdditionalProperties" /> property.
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionMetadata.cs (1)
57AdditionalProperties = metadata.AdditionalProperties;
Microsoft.Extensions.AI.Abstractions.Tests (6)
Functions\AIFunctionMetadataTests.cs (6)
33Assert.NotNull(f.AdditionalProperties); 34Assert.Empty(f.AdditionalProperties); 35Assert.Same(f.AdditionalProperties, new AIFunctionMetadata("name2").AdditionalProperties); 54Assert.Same(f1.AdditionalProperties, f2.AdditionalProperties);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
494aiFunction.Metadata.AdditionalProperties.TryGetValue("Strict", out object? strictObj) &&
Microsoft.Extensions.AI.Tests (1)
Functions\AIFunctionFactoryTest.cs (1)
183Assert.Equal(metadata, func.Metadata.AdditionalProperties);