nemoguardrails.server.experimental.provider.payload
Payload projection models and guarded text locations.
Module Contents
Classes
Functions
Data
_UNKNOWN_CONTENT_FIELDS_CONTEXT
API
Select one array member by provider field values.
Return the single array item matching the declared discriminator.
Bases: GuardedProjectionModel
Mark a content-bearing provider object.
Its object policy decides whether unreviewed members are accepted.
Identify the exact provider message field guarded by the pipeline.
Return whether the target holds text for content checks.
A validated projection reaches an empty or null target only when its location allows empty text. The projection has then rejected generated content in other reviewed fields; opaque metadata is not inspected.
Return the message currently stored at the target.
Replace guarded content when the contract permits modification.
Bases: GuardedProjectionModel
Validate and locate guarded text in a provider payload projection.
Return whether the model declares how to locate guarded text.
Locate the guarded message in the original provider payload.
Validate the declared guarded text location after model parsing.
Bases: BaseModel
Provide common validation behavior for guarded payload projections.
Validate a provider payload with the requested unknown-field policy.
FORBID is the default. ALLOW opens only objects whose policy declares configurable unknown fields, and is reserved for trusted configuration.
Bases: GuardedPayloadModel
Validate a provider request and determine its response mode.
Read the validated selector; a permitted null selects buffered output.
Missing fields use their model default. The field declaration determines whether null is accepted; the binding does not make a field nullable.
Return whether the request declares how to detect streaming.
Select one of several provider encodings for the same guarded text.
Return the single location matching the projected representation.
Locate guarded text using the projected provider representation.
Require exactly one alternative to match the projection.
Locate one guarded text member in a validated provider payload.
Locate guarded text in the original provider payload.
Return whether this location resolves to text in the projection.
Require the projected location to resolve to text.
Bases: enum.Enum
Identify a closed payload capability understood by the framework.
Describe the runtime semantics of one guarded payload projection.
Validate the projection identity and nested model declarations.
Classify every reviewed field of one provider object.
Return every field accounted for by this coverage declaration.
Require each reviewed field to have exactly one classification.
Bind field coverage to one nested projection model.
Validate an explicitly declared provider source schema.
Reject integer values where a strict boolean is required.
Describe one projection failure without echoing provider content.
Return the unknown-field policy requested for a validation, closed by default.
Validate and return the semantic contract attached to a payload model.