Property ToolPolicy
ToolPolicy
Per-turn tool-calling policy used by the conversation runtime.
Controls whether tools are allowed, required, disabled, or whether a specific tool must be used on the current turn.
public ToolCallPolicy ToolPolicy { get; }
Property Value
Examples
using var chat = new RagChat(ragEngine, chatModel);
// Access the tool call policy to check current settings
Console.WriteLine($"Tool policy: {chat.ToolPolicy}");