> 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.colang.v1_0.runtime.eval

## Module Contents

### Functions

| Name                                                                          | Description                                             |
| ----------------------------------------------------------------------------- | ------------------------------------------------------- |
| [`eval_expression`](#nemoguardrails-colang-v1_0-runtime-eval-eval_expression) | Evaluates the provided expression in the given context. |

### API

```python
nemoguardrails.colang.v1_0.runtime.eval.eval_expression(
    expr,
    context
)
```

Evaluates the provided expression in the given context.

**Parameters:**

The expression to be evaluated.

The context containing variable values.

**Returns:**

The result of evaluating the expression.

**Raises:**

* `Exception`: If there is an error evaluating the expression.