Table of Contents

Class BeforeToolInvocationEventArgs

Namespace
LMKit.TextGeneration.Events
Assembly
LM-Kit.NET.dll

Raised just before a tool is invoked. Handlers may set Cancel to true to skip the invocation.

public sealed class BeforeToolInvocationEventArgs : EventArgs
Inheritance
BeforeToolInvocationEventArgs
Inherited Members

Properties

Cancel

Set to true to cancel the invocation. When cancelled, no call to the tool is performed.

PermissionResult

Gets the permission result from the ToolPermissionPolicy, or null if no policy is configured.

Tool

Gets the tool instance that will be invoked, or null if the tool was not found in the registry.

ToolCall

The tool call the model requested.