# extract_quota_type

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/sandbox/_helpers/extract_quota_type)

Extract quota type from error message.

Returns one of: "sandbox_count", "cpu", "memory", "storage", or None.

## Signature

```python
extract_quota_type(
    message: str,
) -> Optional[str]
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/aadfe00ed2cf31808d14a32646e73030a9eeb0b5/python/langsmith/sandbox/_helpers.py#L173)