# PregelProtocol

> **Class** in `langgraph`

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

## Signature

```python
PregelProtocol()
```

## Extends

- `Runnable[InputT, Any]`
- `Generic[StateT, ContextT, InputT, OutputT]`

## Methods

- [`with_config()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/with_config)
- [`get_graph()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/get_graph)
- [`aget_graph()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/aget_graph)
- [`get_state()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/get_state)
- [`aget_state()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/aget_state)
- [`get_state_history()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/get_state_history)
- [`aget_state_history()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/aget_state_history)
- [`bulk_update_state()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/bulk_update_state)
- [`abulk_update_state()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/abulk_update_state)
- [`update_state()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/update_state)
- [`aupdate_state()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/aupdate_state)
- [`stream()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/stream)
- [`astream()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/astream)
- [`invoke()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/invoke)
- [`ainvoke()`](https://reference.langchain.com/python/langgraph/pregel/protocol/PregelProtocol/ainvoke)

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/b674dd46228b0928a6bc0ad9a3d8e38ef28f6895/libs/langgraph/langgraph/pregel/protocol.py#L25)