Skip to main content

Module marginal_gate

Module marginal_gate 

Source
Expand description

Marginal Information Gate (#1308).

Checks whether a tool response provides enough new information to justify delivery to the model. Based on COMI’s MIG principle (arXiv 2602.01719): content should only be delivered if its information gain relative to what’s already in context exceeds a threshold.

Structs§

GateConfig
Configuration for the marginal information gate.

Enums§

GateDecision
MIG decision.

Functions§

check_information_gain
Check whether response provides sufficient new information given already_delivered content chunks.
suppression_stub
Format a suppression stub when the gate blocks delivery.