> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/relay/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct NeMo Guardrails Config

> Canonical config document for the planned NeMo Guardrails component.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi`.

<pre />

Canonical config document for the planned NeMo Guardrails component.

## Fields

### `version: u32`

NeMo Guardrails config schema version.

### `mode: String`

Backend mode: `remote` or `local`.

### `config_path: Option<String>`

Path to a native NeMo Guardrails config directory.

### `config_yaml: Option<String>`

Inline native NeMo Guardrails YAML config.

### `colang_content: Option<String>`

Optional inline Colang content. Valid only with `config_yaml`.

### `codec: Option<String>`

Provider request/response codec for LLM-managed surfaces.

### `input: bool`

Whether to run input rails around managed LLM execution.

### `output: bool`

Whether to run output rails around managed LLM execution.

### `tool_input: bool`

Whether to run tool-input rails around managed tool execution.

### `tool_output: bool`

Whether to run tool-output rails around managed tool execution.

### `priority: i32`

Intercept priority. Lower values run earlier.

### `remote: Option<RemoteBackendConfig>`

Remote-backend settings used when `mode = "remote"`.

### `local: Option<LocalBackendConfig>`

Local-backend settings used when `mode = "local"`.

### `request_defaults: Option<RequestDefaultsConfig>`

Default request semantics passed through to the selected Guardrails backend.

This models request-time concepts such as rail selection and generation options without claiming backend parity for every Guardrails feature.

### `policy: ConfigPolicy`

Component-local unsupported-config policy.

## Trait Implementations

### `impl Clone for NeMoGuardrailsConfig`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for NeMoGuardrailsConfig`

<pre />

#### `fmt`

<pre />

### `impl Default for NeMoGuardrailsConfig`

<pre />

#### `default`

<pre />

### `impl<'de> Deserialize<'de> for NeMoGuardrailsConfig`

<pre />

#### `deserialize`

<pre />

### `impl EditorConfig for NeMoGuardrailsConfig`

<pre />

#### `editor_schema`

<pre />

### `impl Serialize for NeMoGuardrailsConfig`

<pre />

#### `serialize`

<pre />