From 85e8423312f92f671b7b35ae90103cc324895831 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Mon, 22 Jan 2024 11:11:03 -0800 Subject: [PATCH] community[patch]: Update bing results tool name (#16395) Make BingSearchResults tool name OpenAI functions compatible (can't have spaces). Fixes #16368 --- libs/community/langchain_community/tools/bing_search/tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/community/langchain_community/tools/bing_search/tool.py b/libs/community/langchain_community/tools/bing_search/tool.py index 027f2750c94..658b5011ca5 100644 --- a/libs/community/langchain_community/tools/bing_search/tool.py +++ b/libs/community/langchain_community/tools/bing_search/tool.py @@ -31,7 +31,7 @@ class BingSearchRun(BaseTool): class BingSearchResults(BaseTool): """Tool that queries the Bing Search API and gets back json.""" - name: str = "Bing Search Results JSON" + name: str = "bing_search_results_json" description: str = ( "A wrapper around Bing Search. " "Useful for when you need to answer questions about current events. "