reference: remove incorrect example from pregel class (#3476)

Remove incorrect example from Pregel class. Will follow later this week
with better docs
This commit is contained in:
Eugene Yurtsev
2025-02-18 13:33:15 -05:00
committed by GitHub
parent cb9989030e
commit 9f15e15e26
@@ -250,25 +250,6 @@ class Pregel(PregelProtocol):
Repeat until no chains are planned for execution, or a maximum number of steps
is reached.
Example:
```python
from langgraph import Channel, Pregel
grow_value = (
Channel.subscribe_to("value")
| (lambda x: x + x)
| Channel.write_to(value=lambda x: x if len(x) < 10 else None)
)
app = Pregel(
chains={"grow_value": grow_value},
input="value",
output="value",
)
assert app.invoke("a") == "aaaaaaaa"
```
"""
nodes: dict[str, PregelNode]