Table of Contents

Event AfterTokenSampling

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

Fired immediately after a token is selected.

Handlers can override the chosen token, stop generation, or keep the last token out of the final output (useful for control tokens).

public event EventHandler<AfterTokenSamplingEventArgs> AfterTokenSampling

Returns

EventHandler<AfterTokenSamplingEventArgs>
Fired immediately after a token is selected. Handlers can override the chosen token, stop generation, or keep the last token out of the final output (useful for control tokens).
Implements