6 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,
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatCompletion.cs (1)
360IsRequired = openAiChatTool.Required.Contains(property.Key),
11 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)
392if (parameter.IsRequired)
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
191Required = p.IsRequired,
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
467Required = function.Metadata.Parameters.Where(p => p.IsRequired).Select(p => p.Name).ToList(),
Microsoft.Extensions.AI.OpenAI (2)
OpenAIModelMapper.ChatCompletion.cs (1)
405if (parameter.IsRequired)
OpenAIRealtimeExtensions.cs (1)
38.Where(p => p.IsRequired)
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAISerializationTests.cs (1)
348Assert.True(parameter.IsRequired);