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

# nemoguardrails.tracing.adapters.registry

## Module Contents

### Classes

| Name                                                                                 | Description |
| ------------------------------------------------------------------------------------ | ----------- |
| [`LogAdapterRegistry`](#nemoguardrails-tracing-adapters-registry-LogAdapterRegistry) | -           |

### Functions

| Name                                                                                     | Description                     |
| ---------------------------------------------------------------------------------------- | ------------------------------- |
| [`register_log_adapter`](#nemoguardrails-tracing-adapters-registry-register_log_adapter) | Register an embedding provider. |

### API

```python
class nemoguardrails.tracing.adapters.registry.LogAdapterRegistry()
```

**Bases:** [Registry](/guardrails-python-sdk/nemoguardrails/registry#nemoguardrails-registry-Registry)

```python
nemoguardrails.tracing.adapters.registry.LogAdapterRegistry.validate(
    name: str,
    item: typing.Type
) -> None
```

Validate the item to be registered.
Raises:
TypeError: If an item is not an instance of InteractionLogAdapter.

```python
nemoguardrails.tracing.adapters.registry.register_log_adapter(
    model: typing.Type,
    name: typing.Optional[str] = None
)
```

Register an embedding provider.

**Parameters:**

The embedding model class.

The name of the embedding engine.

**Raises:**

* `ValueError`: If the engine name is not provided and the model does not have an engine name.
* `TypeError`: If the model is not an instance of `EmbeddingModel`.
* `ValueError`: If the model does not have 'encode' or 'encode\_async' methods.