# is_stream_class_type

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_openapi_client/_streaming/is_stream_class_type)

TypeGuard for determining whether or not the given type is a subclass of `Stream` / `AsyncStream`

## Signature

```python
is_stream_class_type(
    typ: type,
) -> TypeGuard[type[Stream[object]] | type[AsyncStream[object]]]
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/33995e14a84c53b65b82482b3d2fe0624b379bda/python/langsmith/_openapi_client/_streaming.py#L310)