# ShellToolState

> **Class** in `langchain`

📖 [View in docs](https://reference.langchain.com/python/langchain/agents/middleware/shell_tool/ShellToolState)

Agent state extension for tracking shell session resources.

## Signature

```python
ShellToolState()
```

## Extends

- `AgentState[ResponseT]`

## Properties

- `shell_session_resources`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/42f8f79293cfb7589e5bc1d74a8ae4dfd0bf15e3/libs/langchain_v1/langchain/agents/middleware/shell_tool.py#L100)