> 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.logging.stats

## Module Contents

### Classes

| Name                                                 | Description                                    |
| ---------------------------------------------------- | ---------------------------------------------- |
| [`LLMStats`](#nemoguardrails-logging-stats-LLMStats) | Simple class to store stats for the LLM usage. |

### API

```python
class nemoguardrails.logging.stats.LLMStats()
```

Simple class to store stats for the LLM usage.

```python
nemoguardrails.logging.stats.LLMStats.__str__()
```

```python
nemoguardrails.logging.stats.LLMStats._get_empty_stats()
```

staticmethod

```python
nemoguardrails.logging.stats.LLMStats.get_stat(
    name
)
```

```python
nemoguardrails.logging.stats.LLMStats.get_stats()
```

```python
nemoguardrails.logging.stats.LLMStats.inc(
    name: str,
    value: typing.Union[float, int] = 1
)
```

Increment a stat.

```python
nemoguardrails.logging.stats.LLMStats.reset()
```