From 60ba02f5dbd0d74f02443ca8c20452c76b8033fc Mon Sep 17 00:00:00 2001 From: Mohammad Mohtashim <45242107+keenborder786@users.noreply.github.com> Date: Tue, 18 Jun 2024 08:16:24 +0500 Subject: [PATCH] [Community]: Fixed DDG DuckDuckGoSearchResults Docstring (#22968) - **Description:** A very small fix in the Docstring of `DuckDuckGoSearchResults` identified in the following issue. - **Issue:** #22961 --------- Co-authored-by: Harrison Chase --- libs/community/langchain_community/tools/ddg_search/tool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/community/langchain_community/tools/ddg_search/tool.py b/libs/community/langchain_community/tools/ddg_search/tool.py index b9f1b8adb2a..fa1c01bedde 100644 --- a/libs/community/langchain_community/tools/ddg_search/tool.py +++ b/libs/community/langchain_community/tools/ddg_search/tool.py @@ -40,13 +40,14 @@ class DuckDuckGoSearchRun(BaseTool): class DuckDuckGoSearchResults(BaseTool): - """Tool that queries the DuckDuckGo search API and gets back json.""" + """Tool that queries the DuckDuckGo search API and gets back json string.""" name: str = "duckduckgo_results_json" description: str = ( "A wrapper around Duck Duck Go Search. " "Useful for when you need to answer questions about current events. " - "Input should be a search query. Output is a JSON array of the query results" + "Input should be a search query. Output is a JSON string array of the " + "query results" ) max_results: int = Field(alias="num_results", default=4) api_wrapper: DuckDuckGoSearchAPIWrapper = Field(