1 write to Name
Microsoft.Extensions.AI.Abstractions (1)
Contents\FunctionCallContent.cs (1)
28Name = Throw.IfNull(name);
24 references to Name
Microsoft.Extensions.AI (3)
ChatCompletion\FunctionInvokingChatClient.cs (2)
523AIFunction? function = options.Tools!.OfType<AIFunction>().FirstOrDefault(t => t.Metadata.Name == functionCallContent.Name); 615return new FunctionResultContent(result.CallContent.CallId, result.CallContent.Name, functionResult) { Exception = result.Exception };
ChatCompletion\OpenTelemetryChatClient.cs (1)
487Name = 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)
459callRequest.Name,
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceChatClientTests.cs (2)
529Assert.Equal("GetPersonAge", fcc.Name); 625Assert.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)
404Name = fcc.Name,
Microsoft.Extensions.AI.Ollama.Tests (1)
OllamaChatClientTests.cs (1)
384Assert.Equal("GetPersonAge", fcc.Name);
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
628callRequest.Name,
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIChatClientTests.cs (2)
677Assert.Equal("GetPersonAge", fcc.Name); 778Assert.Equal("GetPersonAge", fcc.Name);
Microsoft.Extensions.AI.Tests (4)
ChatCompletion\FunctionInvokingChatClientTests.cs (4)
552Assert.Equal(expectedFunctionCall.Name, chatFunctionCall.Name); 619Assert.Equal(expectedFunctionCall.Name, chatFunctionCall.Name);