Skip to content

The agent engineering platform.

Update custom_agent.ipynb (#2767)

wangml999fa0c9390c268
diff --git a/docs/modules/agents/agents/custom_agent.ipynb b/docs/modules/agents/agents/custom_agent.ipynb
index 08a7bbb8b1..34a5aa59a9 100644
--- a/docs/modules/agents/agents/custom_agent.ipynb
+++ b/docs/modules/agents/agents/custom_agent.ipynb
@@ -77,7 +77,7 @@
" Returns:\n",
" Action specifying what tool to use.\n",
" \"\"\"\n",
- " return AgentAction(tool=\"Search\", tool_input=\"foo\", log=\"\")\n",
+ " return AgentAction(tool=\"Search\", tool_input=kwargs[\"input\"], log=\"\")\n",
"\n",
" async def aplan(\n",
" self, intermediate_steps: List[Tuple[AgentAction, str]], **kwargs: Any\n",
@@ -92,7 +92,7 @@
" Returns:\n",
" Action specifying what tool to use.\n",
" \"\"\"\n",
- " return AgentAction(tool=\"Search\", tool_input=\"foo\", log=\"\")"
+ " return AgentAction(tool=\"Search\", tool_input=kwargs[\"input\"], log=\"\")"
]
},
{