nemoguardrails.library.pangea.actions
Module Contents
Classes
Functions
Data
API
Bases: BaseModel
Bases: BaseModel
Bases: BaseModel
Whether or not the prompt triggered a block detection.
Updated structured prompt, if applicable.
Whether or not the original input was transformed.
Evaluate input or output content with Pangea AI Guard.
Provider results may allow, block, or transform the selected message. Failures while calling or validating the provider response are logged and fail open with the original content.
Parameters:
Whether to evaluate input or output content.
Rails configuration containing the Pangea settings.
Runtime context used to resolve messages.
Optional user message overriding the context value.
Optional bot message overriding the context value.
Optional caller-owned HTTP client.
Returns: RailOutcome
The provider decision, or an allow outcome after a provider failure.
Raises:
ValueError: If the API token or content is missing.