Skip to main content

Module inference_guard

Module inference_guard 

Source
Expand description

Graph-backed inference guard.

This is the small, deterministic boundary between a generative backend and the semantic graph. It deliberately returns an action rather than emitting text: the caller owns rollback, UI copy, and any corrective prompt.

Structs§

InferenceGuardVerdict

Enums§

InferenceGuardAction
InferenceGuardReason

Constants§

MAX_GUARD_GRAPH_QUINS
Maximum graph facts that the browser guard admits in one pass. This keeps its two caller-owned scratch buffers below 25 KiB.

Functions§

evaluate_inference_guard
Evaluate graph logic before (or between tokens of) inference.