5 writes to IsRequired
Microsoft.Extensions.AI (1)
Functions\AIFunctionFactory.cs (1)
420IsRequired = !parameter.IsOptional,
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionParameterMetadata.cs (1)
38IsRequired = metadata.IsRequired;
Microsoft.Extensions.AI.Abstractions.Tests (3)
Functions\AIFunctionParameterMetadataTests.cs (3)
40IsRequired = true, 63IsRequired = true, 73IsRequired = false,
10 references to IsRequired
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionParameterMetadata.cs (1)
38IsRequired = metadata.IsRequired;
Microsoft.Extensions.AI.Abstractions.Tests (4)
Functions\AIFunctionParameterMetadataTests.cs (4)
27Assert.False(p.IsRequired); 50Assert.Equal(p1.IsRequired, p2.IsRequired); 81Assert.False(p2.IsRequired);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
390if (parameter.IsRequired)
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
191Required = p.IsRequired,
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
446Required = function.Metadata.Parameters.Where(p => p.IsRequired).Select(p => p.Name).ToList(),
Microsoft.Extensions.AI.OpenAI (2)
OpenAIChatClient.cs (1)
509if (parameter.IsRequired)
OpenAIRealtimeExtensions.cs (1)
38.Where(p => p.IsRequired)