nemo_gym.models.token_capture.replay
nemo_gym.models.token_capture.replay
Source-content facts for source-history capture decisions.
This module records what the gateway received and exposed. It does not decide whether to splice tokens, compact a context, or create a training segment.
Module Contents
Functions
API
Identify the effective gateway options that can shape a rendered prompt.
Hash ordered source items without discarding exposed reasoning content.
Only documented non-prompt response metadata is ignored. Unknown item kinds fail instead of collapsing to a fingerprint that could restore edited text. Media URLs/data are hashed here, never copied into the capture manifest.
Compare source facts; render compatibility remains the worker’s decision.
Summarize a complete source history or a prefix of the current request.
Roles and item order are authenticated along with the normalized content. Reject an unavailable prefix rather than silently hashing a shorter slice.