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(