> 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 Capability Registry

> Registry holding capabilities for all known backends.

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

```rust
pub struct CapabilityRegistry { /* private fields */ }
```

Registry holding capabilities for all known backends.

Provides feature discovery so the policy engine and validation framework know which intents can be expressed on which targets.

## Implementations

### `impl CapabilityRegistry`

<pre />

#### `new`

<pre />

Create a new empty capability registry.

#### `with_defaults`

<pre />

Create a registry pre-populated with known Anthropic and OpenAI capabilities.

#### `register_backend`

<pre />

Register a backend's capabilities in the registry.

#### `get_backend`

<pre />

Retrieve a backend's capabilities by ID.

#### `supports_feature`

<pre />

Check if a backend supports a feature at the backend level.

#### `model_supports_feature`

<pre />

Check if a specific model family on a backend supports a feature.

Falls back to backend-level if the model family is not registered.

#### `list_backend_ids`

<pre />

Return a sorted list of all registered backend IDs.

## Trait Implementations

### `impl Clone for CapabilityRegistry`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for CapabilityRegistry`

<pre />

#### `fmt`

<pre />

### `impl Default for CapabilityRegistry`

<pre />

#### `default`

<pre />

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

<pre />

#### `deserialize`

<pre />

### `impl Serialize for CapabilityRegistry`

<pre />

#### `serialize`

<pre />