Table of Contents

Constructor DelegateToolInvocationFilter

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

DelegateToolInvocationFilter(Func<ToolInvocationFilterContext, Func<ToolInvocationFilterContext, Task>, Task>)

Initializes a new instance with the specified handler delegate.

public DelegateToolInvocationFilter(Func<ToolInvocationFilterContext, Func<ToolInvocationFilterContext, Task>, Task> handler)

Parameters

handler Func<ToolInvocationFilterContext, Func<ToolInvocationFilterContext, Task>, Task>

The delegate to invoke when the filter executes.

Exceptions

ArgumentNullException

Thrown when handler is null.