6 references to RequireSpecific
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatToolMode.cs (1)
13/// To nominate a specific function, use <see cref="RequireSpecific(string)"/>.
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatToolModeTests.cs (2)
70string json = JsonSerializer.Serialize(ChatToolMode.RequireSpecific("myFunc"), TestJsonSerializerContext.Default.ChatToolMode); 74Assert.Equal(ChatToolMode.RequireSpecific("myFunc"), result);
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
AzureAIInferenceChatClientTests.cs (1)
676yield return [ChatToolMode.RequireSpecific("GetPersonAge")];
Microsoft.Extensions.AI.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
307ToolMode = ChatToolMode.RequireSpecific(shieldsUpTool.Metadata.Name),
Microsoft.Extensions.AI.OpenAI (1)
OpenAIModelMapper.ChatCompletion.cs (1)
223result.ToolMode = ChatToolMode.RequireSpecific(functionElement.GetString()!);