1 write to RequiredFunctionName
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\RequiredChatToolMode.cs (1)
40RequiredFunctionName = requiredFunctionName;
9 references to RequiredFunctionName
Microsoft.Extensions.AI.Abstractions (4)
ChatCompletion\RequiredChatToolMode.cs (4)
51private string DebuggerDisplay => $"Required: {RequiredFunctionName ?? "Any"}"; 56RequiredFunctionName == other.RequiredFunctionName; 60RequiredFunctionName?.GetHashCode(StringComparison.Ordinal) ??
Microsoft.Extensions.AI.AzureAIInference (2)
AzureAIInferenceChatClient.cs (2)
356result.ToolChoice = required.RequiredFunctionName is null ? 358new ChatCompletionsToolChoice(new FunctionDefinition(required.RequiredFunctionName));
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceChatClientTests.cs (1)
713mode is RequiredChatToolMode { RequiredFunctionName: not null } f ? "{\"type\":\"function\",\"function\":{\"name\":\"GetPersonAge\"}}" :
Microsoft.Extensions.AI.OpenAI (2)
OpenAIModelMapper.ChatCompletion.cs (2)
319result.ToolChoice = required.RequiredFunctionName is null ? 321ChatToolChoice.CreateFunctionChoice(required.RequiredFunctionName);