7 writes to ToolMode
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (2)
274options.ToolMode = ChatToolMode.Auto; 380options.ToolMode = ChatToolMode.Auto;
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
83ToolMode = ToolMode,
Microsoft.Extensions.AI.Abstractions.Tests (2)
ChatCompletion\ChatOptionsTests.cs (2)
78options.ToolMode = ChatToolMode.RequireAny; 138options.ToolMode = ChatToolMode.RequireAny;
Microsoft.Extensions.AI.Integration.Tests (2)
ChatClientIntegrationTests.cs (2)
275ToolMode = ChatToolMode.RequireAny, 297ToolMode = ChatToolMode.RequireSpecific(shieldsUpTool.Metadata.Name),
10 references to ToolMode
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (2)
271case ContinueMode.Continue when options.ToolMode is RequiredChatToolMode: 377case ContinueMode.Continue when options.ToolMode is RequiredChatToolMode:
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatOptions.cs (1)
83ToolMode = ToolMode,
Microsoft.Extensions.AI.Abstractions.Tests (5)
ChatCompletion\ChatOptionsTests.cs (5)
26Assert.Same(ChatToolMode.Auto, options.ToolMode); 41Assert.Same(ChatToolMode.Auto, clone.ToolMode); 92Assert.Same(ChatToolMode.RequireAny, options.ToolMode); 107Assert.Same(ChatToolMode.RequireAny, clone.ToolMode); 163Assert.Equal(ChatToolMode.RequireAny, deserialized.ToolMode);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceChatClient.cs (1)
347switch (options.ToolMode)
Microsoft.Extensions.AI.OpenAI (1)
OpenAIChatClient.cs (1)
461switch (options.ToolMode)