1 write to Name
Microsoft.Extensions.AI.Abstractions (1)
Contents\FunctionCallContent.cs (1)
28Name = Throw.IfNull(name);
26 references to Name
Microsoft.Extensions.AI (3)
ChatCompletion\FunctionInvokingChatClient.cs (2)
539AIFunction? function = options.Tools!.OfType<AIFunction>().FirstOrDefault(t => t.Metadata.Name == functionCallContent.Name); 631return new FunctionResultContent(result.CallContent.CallId, result.CallContent.Name, functionResult) { Exception = result.Exception };
ChatCompletion\OpenTelemetryChatClient.cs (1)
517Name = fc.Name,
Microsoft.Extensions.AI.Abstractions (2)
Contents\FunctionCallContent.cs (2)
110$"Call = {Name}({string.Join(", ", Arguments)})" : 111$"Call = {Name}()";
Microsoft.Extensions.AI.Abstractions.Tests (6)
ChatCompletion\ChatMessageTests.cs (1)
360Assert.Equal("plugin-name-function-name", functionCallContent.Name);
ChatCompletion\StreamingChatCompletionUpdateTests.cs (1)
199Assert.Equal("fc1", ((FunctionCallContent)result.Contents[2]).Name);
Contents\FunctionCallContentTests..cs (4)
27Assert.Equal("name", c.Name); 43Assert.Equal("name", c.Name); 92Assert.Equal("functionName", deserializedSut.Name); 322Assert.Equal("functionName", content.Name);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
463callRequest.Name,
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
786Assert.Equal("GetPersonAge", fcc.Name); 877Assert.Equal("GetPersonAge", fcc.Name);
Microsoft.Extensions.AI.Integration.Tests (1)
PromptBasedFunctionCallingChatClient.cs (1)
72var toolCallJson = JsonSerializer.Serialize(new { fcc.CallId, fcc.Name, fcc.Arguments }, _jsonOptions);
Microsoft.Extensions.AI.Ollama (1)
OllamaChatClient.cs (1)
425Name = fcc.Name,
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
384Assert.Equal("GetPersonAge", fcc.Name);
Microsoft.Extensions.AI.OpenAI (3)
OpenAIModelMapper.ChatCompletion.cs (1)
43callRequest.Name,
OpenAIModelMapper.ChatMessage.cs (1)
169callRequest.Name,
OpenAIModelMappers.StreamingChatCompletion.cs (1)
39functionName: functionCallContent.Name,
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
771Assert.Equal("GetPersonAge", fcc.Name); 872Assert.Equal("GetPersonAge", fcc.Name);
Microsoft.Extensions.AI.Tests (4)
ChatCompletion\FunctionInvokingChatClientTests.cs (4)
614Assert.Equal(expectedFunctionCall.Name, chatFunctionCall.Name); 704Assert.Equal(expectedFunctionCall.Name, chatFunctionCall.Name);