5 writes to Description
Microsoft.Extensions.AI (1)
Functions\AIFunctionFactory.cs (1)
270Description = options.Description ?? method.GetCustomAttribute<DescriptionAttribute>(inherit: true)?.Description ?? string.Empty,
Microsoft.Extensions.AI.Abstractions (1)
Functions\AIFunctionMetadata.cs (1)
54Description = metadata.Description;
Microsoft.Extensions.AI.Abstractions.Tests (3)
Contents\FunctionCallContentTests..cs (1)
256Description = "AIFunction with parameters that lack .NET types",
Functions\AIFunctionMetadataTests.cs (2)
43Description = "description", 69AIFunctionMetadata f = new("name") { Description = null };
16 references to Description
Microsoft.Extensions.AI.Abstractions (3)
Functions\AIFunction.cs (2)
46string.IsNullOrWhiteSpace(Metadata.Description) ? 48$"{Metadata.Name} ({Metadata.Description})";
Functions\AIFunctionMetadata.cs (1)
54Description = metadata.Description;
Microsoft.Extensions.AI.Abstractions.Tests (4)
Functions\AIFunctionMetadataTests.cs (4)
25Assert.Empty(f.Description); 51Assert.Equal(f1.Description, f2.Description); 70Assert.Equal("", f.Description);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
402Description = aiFunction.Metadata.Description,
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
183Description = tool.Metadata.Description,
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
440Description = function.Metadata.Description,
Microsoft.Extensions.AI.OpenAI (2)
OpenAIChatClient.cs (1)
519return ChatTool.CreateFunctionTool(aiFunction.Metadata.Name, aiFunction.Metadata.Description, resultParameters, strict);
OpenAIRealtimeExtensions.cs (1)
45Description = aiFunction.Metadata.Description,
Microsoft.Extensions.AI.Tests (4)
Functions\AIFunctionFactoryTest.cs (4)
137Assert.Empty(func.Metadata.Description); 143Assert.Empty(func.Metadata.Description); 149Assert.Equal("This is a test function", func.Metadata.Description); 180Assert.Equal("test description", func.Metadata.Description);