nemoguardrails.rails.llm.options.GenerationOptions#

class nemoguardrails.rails.llm.options.GenerationOptions[source]#

Bases: BaseModel

A set of options that should be applied during a generation.

The GenerationOptions control various things such as what rails are enabled, additional parameters for the main LLM, whether the rails should be enforced or ran in parallel, what to be included in the generation log, etc.

rails: GenerationRailsOptions#
llm_params: Optional[dict]#
llm_output: bool#
output_vars: Union[bool, List[str], None]#
log: GenerationLogOptions#
classmethod check_fields(values)[source]#
model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].