Skip to content

The agent engineering platform.

fix: remove useless variable k (#6524)

Zeeland92ef77da3523
diff --git a/langchain/tools/ddg_search/tool.py b/langchain/tools/ddg_search/tool.py
index 2020b31340..33b357cee1 100644
--- a/langchain/tools/ddg_search/tool.py
+++ b/langchain/tools/ddg_search/tool.py
@@ -44,7 +44,7 @@ class DuckDuckGoSearchRun(BaseTool):
class DuckDuckGoSearchResults(BaseTool):
- """Tool that queries the Duck Duck Go Search API and get back json."""
+ """Tool that queries the DuckDuckGo search API and get back json."""
name = "DuckDuckGo Results JSON"
description = (
diff --git a/langchain/utilities/duckduckgo_search.py b/langchain/utilities/duckduckgo_search.py
index f90fdf7fec..4349d86f1d 100644
--- a/langchain/utilities/duckduckgo_search.py
+++ b/langchain/utilities/duckduckgo_search.py
@@ -12,10 +12,9 @@ from pydantic.class_validators import root_validator
class DuckDuckGoSearchAPIWrapper(BaseModel):
"""Wrapper for DuckDuckGo Search API.
- Free and does not require any setup
+ Free and does not require any setup.
"""
- k: int = 10
region: Optional[str] = "wt-wt"
safesearch: str = "moderate"
time: Optional[str] = "y"