# 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", "volume_count",
"storage", or None.

## Signature

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

---

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