# InterpreterConfig

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/configuration/interpreter/InterpreterConfig)

Configuration consumed by `CodeInterpreterMiddleware`.

## Signature

```python
InterpreterConfig(
    self,
    timeout_seconds: float,
    memory_limit_mb: int,
    max_ptc_calls: int,
    max_result_chars: int,
    ptc: str | bool | list[str],
    ptc_acknowledge_unsafe: bool,
)
```

## Constructors

```python
__init__(
    self,
    timeout_seconds: float,
    memory_limit_mb: int,
    max_ptc_calls: int,
    max_result_chars: int,
    ptc: str | bool | list[str],
    ptc_acknowledge_unsafe: bool,
) -> None
```

| Name | Type |
|------|------|
| `timeout_seconds` | `float` |
| `memory_limit_mb` | `int` |
| `max_ptc_calls` | `int` |
| `max_result_chars` | `int` |
| `ptc` | `str \| bool \| list[str]` |
| `ptc_acknowledge_unsafe` | `bool` |


## Properties

- `timeout_seconds`
- `memory_limit_mb`
- `max_ptc_calls`
- `max_result_chars`
- `ptc`
- `ptc_acknowledge_unsafe`

## Methods

- [`from_resolver()`](https://reference.langchain.com/python/deepagents-code/configuration/interpreter/InterpreterConfig/from_resolver)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/configuration/interpreter.py#L49)