nemoguardrails.guardrails.guardrails_types
nemoguardrails.guardrails.guardrails_types
Module Contents
Classes
Functions
Data
API
Bases: enum.Enum
Direction of a rail check, used for logging.
INPUT
OUTPUT
Dataclass
Result of a rail safety check.
is_safe
reason
Set an explicit request ID (e.g., derived from an OTEL trace ID).
Unlike set_new_request_id which generates a random ID, this accepts
a caller-provided string. Returns the reset token for use with
reset_request_id.
Return the current per-request correlation ID.
Restore the request ID ContextVar to its previous value.
Generate a random request ID, set it in the current context, and return the reset token.
Return str(text) truncated to max_len characters (default: LOG_CONTENT_TRUNCATE_LENGTH).