1 write to Name
Microsoft.Extensions.AI.Abstractions (1)
Contents\FunctionCallContent.cs (1)
29Name = Throw.IfNull(name);
31 references to Name
Microsoft.Extensions.AI (3)
ChatCompletion\FunctionInvokingChatClient.cs (2)
588AIFunction? function = options.Tools!.OfType<AIFunction>().FirstOrDefault(t => t.Name == callContent.Name); 669FunctionInvocationStatus.NotFound => $"Error: Requested function \"{result.CallContent.Name}\" not found.",
ChatCompletion\OpenTelemetryChatClient.cs (1)
517Name = fc.Name,
Microsoft.Extensions.AI.Abstractions (2)
Contents\FunctionCallContent.cs (2)
117$"{Name}({string.Join(", ", Arguments)})" : 118$"{Name}()";
Microsoft.Extensions.AI.Abstractions.Tests (6)
ChatCompletion\ChatMessageTests.cs (1)
312Assert.Equal("plugin-name-function-name", functionCallContent.Name);
ChatCompletion\ChatResponseUpdateTests.cs (1)
143Assert.Equal("fc1", ((FunctionCallContent)result.Contents[2]).Name);
Contents\FunctionCallContentTests..cs (4)
27Assert.Equal("name", c.Name); 43Assert.Equal("name", c.Name); 90Assert.Equal("functionName", deserializedSut.Name); 308Assert.Equal("functionName", content.Name);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
480callRequest.Name,
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
816Assert.Equal("GetPersonAge", fcc.Name); 907Assert.Equal("GetPersonAge", fcc.Name);
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
78var toolCallJson = JsonSerializer.Serialize(new { fcc.CallId, fcc.Name, fcc.Arguments }, _jsonOptions);
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
447Name = fcc.Name,
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
390Assert.Equal("GetPersonAge", fcc.Name);
Microsoft.Extensions.AI.OpenAI (3)
OpenAIModelMapper.ChatCompletion.cs (1)
47callRequest.Name,
OpenAIModelMapper.ChatMessage.cs (1)
179callRequest.Name,
OpenAIModelMappers.StreamingChatCompletion.cs (1)
39functionName: functionCallContent.Name,
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
796Assert.Equal("GetPersonAge", fcc.Name); 897Assert.Equal("GetPersonAge", fcc.Name);
Microsoft.Extensions.AI.Tests (9)
ChatCompletion\DistributedCachingChatClientTest.cs (4)
743Assert.Equal(expectedFcc.Name, actualFcc.Name); 777Assert.Equal(expectedFcc.Name, actualFcc.Name);
ChatCompletion\FunctionInvokingChatClientTests.cs (5)
549Assert.Equal("Func1", context.CallContent.Name); 668Assert.Equal(expectedFunctionCall.Name, chatFunctionCall.Name); 759Assert.Equal(expectedFunctionCall.Name, chatFunctionCall.Name);