[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 <hw.chase.17@gmail.com>
pull/23068/head
Mohammad Mohtashim 4 months ago committed by GitHub
parent 70761af8cf
commit 60ba02f5db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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(

Loading…
Cancel
Save