# is_stream_class_type

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_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-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/_streaming.py#L353)