From 3a9247728b95cf0ecf697606c8aeae59f1954289 Mon Sep 17 00:00:00 2001 From: Rohit <130643902+Rohit10jr@users.noreply.github.com> Date: Wed, 2 Apr 2025 20:34:22 +0530 Subject: [PATCH] =?UTF-8?q?Fix=20missing=20colon=20in=20function=20definit?= =?UTF-8?q?ion=20in=20langchain-ai.github=20docum=E2=80=A6=20(#4142)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …entation. This commit fixes a syntax error in the "langchain-ai.github" documentation. The function called "some_node_inside_alice" was missing a colon (:) after the function, which is required for valid Python syntax. --- docs/docs/concepts/multi_agent.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/concepts/multi_agent.md b/docs/docs/concepts/multi_agent.md index 6963813f7..6dc2b1287 100644 --- a/docs/docs/concepts/multi_agent.md +++ b/docs/docs/concepts/multi_agent.md @@ -50,7 +50,7 @@ def agent(state) -> Command[Literal["agent", "another_agent"]]: In a more complex scenario where each agent node is itself a graph (i.e., a [subgraph](./low_level.md#subgraphs)), a node in one of the agent subgraphs might want to navigate to a different agent. For example, if you have two agents, `alice` and `bob` (subgraph nodes in a parent graph), and `alice` needs to navigate to `bob`, you can set `graph=Command.PARENT` in the `Command` object: ```python -def some_node_inside_alice(state) +def some_node_inside_alice(state): return Command( goto="bob", update={"my_state_key": "my_state_value"},