The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
[Community]: Fixed DDG DuckDuckGoSearchResults Docstring (#22968)
Mohammad Mohtashim60ba02f5dbd0
diff --git a/libs/community/langchain_community/tools/ddg_search/tool.py b/libs/community/langchain_community/tools/ddg_search/tool.pyindex b9f1b8adb2..fa1c01bedd 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(