From 4bacbdd2bd1b1de01c46f9fef3358c5c017c5a70 Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Sun, 21 Jul 2024 17:07:50 -0400 Subject: [PATCH] docs: update create_react_agent to use state_modifier (#1081) --- examples/create-react-agent-system-prompt.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/create-react-agent-system-prompt.ipynb b/examples/create-react-agent-system-prompt.ipynb index 6b04f77a1..c258a74c5 100644 --- a/examples/create-react-agent-system-prompt.ipynb +++ b/examples/create-react-agent-system-prompt.ipynb @@ -9,7 +9,7 @@ "\n", "This tutorial will show how to add a custom system prompt to the prebuilt ReAct agent. Please see [this tutorial](./create-react-agent.ipynb) for how to get started with the prebuilt ReAct agent\n", "\n", - "You can add a custom system prompt by passing a string to the `messages_modifier` param." + "You can add a custom system prompt by passing a string to the `state_modifier` param." ] }, { @@ -112,7 +112,7 @@ "\n", "from langgraph.prebuilt import create_react_agent\n", "\n", - "graph = create_react_agent(model, tools=tools, messages_modifier=prompt)" + "graph = create_react_agent(model, tools=tools, state_modifier=prompt)" ] }, {