Table of Contents

Method TerminateActiveGeneration

Namespace
Qavren.Edge.Chat
Assembly
Qavren.Edge.Chat.Onnx.dll

TerminateActiveGeneration()

Sets a volatile abort flag AND calls Generator.SetRuntimeOption("terminate_session", "1") on the live generator - the documented cooperative abort, and the only thing that can stop a multi-second prefill. Safe to call from a lifecycle observer on another thread; it is the one GenAI call sub-project 4 makes outside the turn gate, and section 20 records that as a stated risk.

void TerminateActiveGeneration()