# 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/a39745c67839496a98e5e846122664d8070c8dca/python/langsmith/_openapi_client/_streaming.py#L309)