From e59afe292d1cd37d094afc9421f38faa04a38adc Mon Sep 17 00:00:00 2001 From: Matthew Koski Date: Fri, 17 May 2024 12:19:57 -0500 Subject: [PATCH] langchain: Fixing import in docs per https://github.com/langchain-ai/langchain/issues/21814 (#21815) Description: The example in the How-To guide had an import which did not work. I changed it to use an import from langchain_core. Issue: https://github.com/langchain-ai/langchain/issues/21814 --- docs/docs/how_to/tools_prompting.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/how_to/tools_prompting.ipynb b/docs/docs/how_to/tools_prompting.ipynb index f4ea7631b75..ec700a8795b 100644 --- a/docs/docs/how_to/tools_prompting.ipynb +++ b/docs/docs/how_to/tools_prompting.ipynb @@ -162,7 +162,7 @@ } ], "source": [ - "from langchain.tools.render import render_text_description\n", + "from langchain_core.tools import render_text_description\n", "\n", "rendered_tools = render_text_description([multiply])\n", "rendered_tools"