4 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.Integration.Tests (1)
ChatClientIntegrationTests.cs (1)
297ToolMode = ChatToolMode.RequireSpecific(shieldsUpTool.Metadata.Name),