mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-29 19:29:43 +02:00
join(question, draft) -> join([question, draft])
This commit is contained in:
@@ -98,7 +98,7 @@ editor = (
|
||||
reviser = (
|
||||
# subscribe to new values of "notes" channel,
|
||||
# and join them with the current values of "question" and "draft"
|
||||
Pregel.subscribe_to(["notes"]).join("question", "draft")
|
||||
Pregel.subscribe_to(["notes"]).join(["question", "draft"])
|
||||
| reviser_chain
|
||||
| Pregel.send_to("draft")
|
||||
)
|
||||
|
||||
+1
-1
@@ -101,7 +101,7 @@ class PregelInvoke(RunnableBinding):
|
||||
|
||||
kwargs: Mapping[str, Any] = Field(default_factory=dict)
|
||||
|
||||
def join(self, *channels: str) -> PregelInvoke:
|
||||
def join(self, channels: Sequence[str]) -> PregelInvoke:
|
||||
joiner = RunnablePassthrough.assign(
|
||||
**{chan: PregelRead(chan) for chan in channels}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user