nemoguardrails.server.experimental.providers.openai.chat_completions.stream_projection
nemoguardrails.server.experimental.providers.openai.chat_completions.stream_projection
Declare guarded text, closed content boundaries, and opaque stream metadata.
These handwritten models own per-event field policy. The classifier binds them to event roles; handwritten hooks enforce ordering and terminal-state behavior.
Module Contents
Classes
API
Bases: PolicyModel, GuardedContentModel
Require integer choice zero and reject unreviewed choice-level content.
Bases: PolicyModel, GuardedContentModel
Accept assistant text or metadata-only deltas within a closed boundary.
Bases: PolicyModel, GuardedContentModel
Validate the native error message without treating it as guarded text.
Bases: PolicyModel, GuardedProjectionModel
Accept only an error envelope, never an error mixed with generated content.
Bases: PolicyModel, GuardedProjectionModel
Allow one text choice or an empty usage chunk, preserving root metadata.