# DuplexStream

> **Function** in `langgraph`

📖 [View in docs](https://reference.langchain.com/python/langgraph/pregel/_loop/DuplexStream)

## Signature

```python
DuplexStream(
    streams: StreamProtocol = (),
) -> StreamProtocol
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/a4d4187e82cdb0a73d68c76d70d655dd73a6db0b/libs/langgraph/langgraph/pregel/_loop.py#L157)