From ae5b4e834ed49da0ac0089585bc55676377a5a20 Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Mon, 12 May 2025 09:46:50 -0400 Subject: [PATCH] docs: replace state_modifier w/ prompt in func how-tos (#4659) --- .../how-tos/multi-agent-multi-turn-convo-functional.ipynb | 4 ++-- docs/docs/how-tos/multi-agent-network-functional.ipynb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/how-tos/multi-agent-multi-turn-convo-functional.ipynb b/docs/docs/how-tos/multi-agent-multi-turn-convo-functional.ipynb index 519eeddf7..5a51eedac 100644 --- a/docs/docs/how-tos/multi-agent-multi-turn-convo-functional.ipynb +++ b/docs/docs/how-tos/multi-agent-multi-turn-convo-functional.ipynb @@ -237,7 +237,7 @@ "travel_advisor = create_react_agent(\n", " model,\n", " travel_advisor_tools,\n", - " state_modifier=(\n", + " prompt=(\n", " \"You are a general travel expert that can recommend travel destinations (e.g. countries, cities, etc). \"\n", " \"If you need hotel recommendations, ask 'hotel_advisor' for help. \"\n", " \"You MUST include human-readable response before transferring to another agent.\"\n", @@ -258,7 +258,7 @@ "hotel_advisor = create_react_agent(\n", " model,\n", " hotel_advisor_tools,\n", - " state_modifier=(\n", + " prompt=(\n", " \"You are a hotel expert that can provide hotel recommendations for a given destination. \"\n", " \"If you need help picking travel destinations, ask 'travel_advisor' for help.\"\n", " \"You MUST include human-readable response before transferring to another agent.\"\n", diff --git a/docs/docs/how-tos/multi-agent-network-functional.ipynb b/docs/docs/how-tos/multi-agent-network-functional.ipynb index 59dc274d3..d0f33e1f3 100644 --- a/docs/docs/how-tos/multi-agent-network-functional.ipynb +++ b/docs/docs/how-tos/multi-agent-network-functional.ipynb @@ -89,7 +89,7 @@ "metadata": {}, "outputs": [ { - "name": "stdin", + "name": "stdout", "output_type": "stream", "text": [ "ANTHROPIC_API_KEY: ········\n" @@ -238,7 +238,7 @@ "travel_advisor = create_react_agent(\n", " model,\n", " travel_advisor_tools,\n", - " state_modifier=(\n", + " prompt=(\n", " \"You are a general travel expert that can recommend travel destinations (e.g. countries, cities, etc). \"\n", " \"If you need hotel recommendations, ask 'hotel_advisor' for help. \"\n", " \"You MUST include human-readable response before transferring to another agent.\"\n", @@ -259,7 +259,7 @@ "hotel_advisor = create_react_agent(\n", " model,\n", " hotel_advisor_tools,\n", - " state_modifier=(\n", + " prompt=(\n", " \"You are a hotel expert that can provide hotel recommendations for a given destination. \"\n", " \"If you need help picking travel destinations, ask 'travel_advisor' for help.\"\n", " \"You MUST include human-readable response before transferring to another agent.\"\n",