6 writes to Parameters
Microsoft.Extensions.AI (1)
Functions\AIFunctionFactory.cs (1)
271Parameters = options.Parameters ?? parameterMetadata!,
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionMetadata.cs (1)
55Parameters = metadata.Parameters;
Microsoft.Extensions.AI.Abstractions.Tests (4)
Contents\FunctionCallContentTests..cs (1)
257Parameters =
Functions\AIFunctionMetadataTests.cs (3)
44Parameters = [new AIFunctionParameterMetadata("param")], 61Assert.Throws<ArgumentNullException>("value", () => new AIFunctionMetadata("name") { Parameters = null! }); 84Parameters =
21 references to Parameters
Microsoft.Extensions.AI.Abstractions (2)
Functions\AIFunctionMetadata.cs (2)
48/// This creates a shallow clone of <paramref name="metadata"/>. The new instance's <see cref="Parameters"/> and 55Parameters = metadata.Parameters;
Microsoft.Extensions.AI.Abstractions.Tests (8)
Functions\AIFunctionMetadataTests.cs (6)
26Assert.Empty(f.Parameters); 52Assert.Same(f1.Parameters, f2.Parameters); 92Assert.Same(f.Parameters[0], f.GetParameter("param0")); 93Assert.Same(f.Parameters[1], f.GetParameter("param1")); 94Assert.Same(f.Parameters[2], f.GetParameter("param2"));
Utilities\AIJsonUtilitiesTests.cs (2)
219AIFunctionParameterMetadata param = metadata.Parameters[0]; 240foreach (var param in metadata.Parameters)
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
379var parameters = aiFunction.Metadata.Parameters;
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
184Arguments = tool.Metadata.Parameters.ToDictionary(
Microsoft.Extensions.AI.Ollama (2)
OllamaChatClient.cs (2)
443Properties = function.Metadata.Parameters.ToDictionary( 446Required = function.Metadata.Parameters.Where(p => p.IsRequired).Select(p => p.Name).ToList(),
Microsoft.Extensions.AI.OpenAI (3)
OpenAIChatClient.cs (1)
500var parameters = aiFunction.Metadata.Parameters;
OpenAIRealtimeExtensions.cs (2)
35Properties = aiFunction.Metadata.Parameters 37Required = aiFunction.Metadata.Parameters
Microsoft.Extensions.AI.Tests (4)
Functions\AIFunctionFactoryTest.cs (4)
138Assert.Empty(func.Metadata.Parameters); 144Assert.Single(func.Metadata.Parameters); 150Assert.Collection(func.Metadata.Parameters, 181Assert.Equal(parameterMetadata, func.Metadata.Parameters);