17 references to Name
Microsoft.Extensions.AI.Abstractions (4)
Functions\AIFunctionMetadata.cs (1)
88Dictionary<string, AIFunctionParameterMetadata>? parametersByName = _parametersByName ??= _parameters.ToDictionary(p => p.Name);
Functions\AIFunctionParameterMetadata.cs (2)
31_ = Throw.IfNullOrWhitespace(metadata.Name); 33_name = metadata.Name;
Utilities\AIJsonUtilities.Schema.cs (1)
78parameterMetadata.Name,
Microsoft.Extensions.AI.Abstractions.Tests (3)
Functions\AIFunctionParameterMetadataTests.cs (3)
24Assert.Equal("name", p.Name); 47Assert.Equal(p1.Name, p2.Name);
Microsoft.Extensions.AI.AzureAIInference (2)
AzureAIInferenceChatClient.cs (2)
389parameter.Name, 394tool.Required.Add(parameter.Name);
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
185p => p.Name,
Microsoft.Extensions.AI.Ollama (2)
OllamaChatClient.cs (2)
465p => p.Name, 467Required = function.Metadata.Parameters.Where(p => p.IsRequired).Select(p => p.Name).ToList(),
Microsoft.Extensions.AI.OpenAI (4)
OpenAIModelMapper.ChatCompletion.cs (2)
403tool.Properties.Add(parameter.Name, parameter.Schema is JsonElement e ? e : _defaultParameterSchema); 407_ = tool.Required.Add(parameter.Name);
OpenAIRealtimeExtensions.cs (2)
36.ToDictionary(p => p.Name, GetParameterSchema), 39.Select(p => p.Name),
Microsoft.Extensions.AI.OpenAI.Tests (1)
OpenAISerializationTests.cs (1)
347Assert.Equal("personName", parameter.Name);