mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-31 18:38:48 +00:00
community[patch]: Update bing results tool name (#16395)
Make BingSearchResults tool name OpenAI functions compatible (can't have spaces). Fixes #16368
This commit is contained in:
@@ -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. "
|
||||
|
Reference in New Issue
Block a user