# NovaCodeInterpreterTool

> **Class** in `langchain_aws`

📖 [View in docs](https://reference.langchain.com/python/langchain-aws/tools/nova_tools/NovaCodeInterpreterTool)

Helper for Nova's code interpreter system tool.

The nova_code_interpreter tool enables the model to execute Python code
in a sandboxed environment. Useful for calculations, data analysis, and
other computational tasks.

## Signature

```python
NovaCodeInterpreterTool()
```

## Description

**Note:**

Requires bedrock:InvokeTool IAM permission.
Consider increasing timeout for complex code execution.

**Example:**

.. code-block:: python

from langchain_aws import ChatBedrockConverse
from langchain_aws.tools import NovaCodeInterpreterTool

model = ChatBedrockConverse(model="amazon.nova-2-lite-v1:0")
model_with_code = model.bind_tools([NovaCodeInterpreterTool()])
response = model_with_code.invoke(
    "Calculate the square root of 475878756857"
)

## Extends

- `NovaSystemTool`

## Properties

- `name`
- `description`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-aws/blob/10d18256d46953e5fc8dca313a2c41eee29c2a80/libs/aws/langchain_aws/tools/nova_tools.py#L205)