# BearlyInterpreterTool

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/tools/bearly/tool/BearlyInterpreterTool)

Tool for evaluating python code in a sandbox environment.

## Signature

```python
BearlyInterpreterTool(
    self,
    api_key: str,
)
```

## Constructors

```python
__init__(
    self,
    api_key: str,
)
```

| Name | Type |
|------|------|
| `api_key` | `str` |


## Properties

- `api_key`
- `endpoint`
- `name`
- `args_schema`
- `files`
- `file_description`
- `description`

## Methods

- [`make_input_files()`](https://reference.langchain.com/python/langchain-community/tools/bearly/tool/BearlyInterpreterTool/make_input_files)
- [`add_file()`](https://reference.langchain.com/python/langchain-community/tools/bearly/tool/BearlyInterpreterTool/add_file)
- [`clear_files()`](https://reference.langchain.com/python/langchain-community/tools/bearly/tool/BearlyInterpreterTool/clear_files)
- [`as_tool()`](https://reference.langchain.com/python/langchain-community/tools/bearly/tool/BearlyInterpreterTool/as_tool)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/tools/bearly/tool.py#L72)