Table of Contents

Event BeforeToolInvocation

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

Fired before a tool invocation. Handlers may cancel the call.

public event EventHandler<BeforeToolInvocationEventArgs> BeforeToolInvocation

Returns

EventHandler<BeforeToolInvocationEventArgs>
Fired before a tool invocation. Handlers may cancel the call.
Implements

Examples

chat.BeforeToolInvocation += (sender, e) =>
{
    Console.WriteLine($"Invoking tool: {e.ToolName}");
};
Share