# 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/41341457342327166d72fc11952ab28fb61ec0bf/libs/langgraph/langgraph/pregel/_loop.py#L149)