Python API Reference#
This reference is auto-generated from source code docstrings.
Core Classes#
The primary entry points for the NeMo Guardrails library.
Rails based on a given configuration. |
|
Configuration object for the models and the rails. |
Generation Options and Responses#
Control generation behavior and inspect results.
A set of options that should be applied during a generation. |
|
Options for what rails should be used during the generation. |
|
Options for what should be included in the generation log. |
|
Contains additional logging information associated with a generation call. |
|
General stats about the generation. |
|
A rail that was activated during the generation. |
|
Information about an action that was executed. |
Actions#
Register custom Python functions as actions for use in guardrails flows.
Decorator to mark a function or class as an action. |
Enumerations#
An enumeration. |
|
An enumeration. |
|