mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-22 23:52:23 +02:00
Update readme
This commit is contained in:
@@ -15,14 +15,14 @@ grow_value = (
|
||||
| Pregel.send_to(value=lambda x: x if len(x) < 10 else None)
|
||||
)
|
||||
|
||||
pubsub = Pregel(
|
||||
app = Pregel(
|
||||
grow_value,
|
||||
channels={"value": channels.LastValue[str]()},
|
||||
input="value",
|
||||
output="value",
|
||||
)
|
||||
|
||||
assert pubsub.invoke("a") == "aaaaaaaa"
|
||||
assert app.invoke("a") == "aaaaaaaa"
|
||||
|
||||
```
|
||||
|
||||
@@ -33,7 +33,7 @@ Check `examples` for more examples.
|
||||
- [x] Iterate on API
|
||||
- [x] do we want api to receive output from multiple channels in invoke()
|
||||
- [x] do we want api to send input to multiple channels in invoke()
|
||||
- [ ] Finish updating tests to new API
|
||||
- [x] Finish updating tests to new API
|
||||
- [ ] Implement input_schema and output_schema in Pregel
|
||||
- [ ] Implement checkpointing
|
||||
- [ ] Save checkpoints at end of each step
|
||||
|
||||
+2
-2
@@ -6,11 +6,11 @@ grow_value = (
|
||||
| Pregel.send_to(value=lambda x: x if len(x) < 10 else None)
|
||||
)
|
||||
|
||||
pubsub = Pregel(
|
||||
app = Pregel(
|
||||
grow_value,
|
||||
channels={"value": channels.LastValue[str]()},
|
||||
input="value",
|
||||
output="value",
|
||||
)
|
||||
|
||||
assert pubsub.invoke("a") == "aaaaaaaa"
|
||||
assert app.invoke("a") == "aaaaaaaa"
|
||||
|
||||
Reference in New Issue
Block a user