Table of Contents

Property ToolPolicy

Namespace
LMKit.Retrieval
Assembly
LM-Kit.NET.dll

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

ToolCallPolicy

Examples

using var chat = new RagChat(ragEngine, chatModel);

// Access the tool call policy to check current settings
Console.WriteLine($"Tool policy: {chat.ToolPolicy}");
Share