Skip to content

Commit 5531bea

Browse files
authored
Update 43_Building_a_Tool_Calling_Agent.ipynb
Use outputs_to_string
1 parent 7a7adba commit 5531bea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tutorials/43_Building_a_Tool_Calling_Agent.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,10 @@
269269
" output_mapping={\"output_adapter.output\": \"search_result\"}\n",
270270
")\n",
271271
"search_tool = ComponentTool(\n",
272-
" name=\"search\", description=\"Use this tool to search for information on the internet.\", component=search_component\n",
272+
" name=\"search\",\n",
273+
" description=\"Use this tool to search for information on the internet.\",\n",
274+
" component=search_component,\n",
275+
" outputs_to_string={\"source\": \"search_result\"}\n",
273276
")\n",
274277
"\n",
275278
"agent = Agent(\n",

0 commit comments

Comments
 (0)