mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-23 23:29:21 +00:00
fix: remove useless variable k (#6524)
remove useless variable k --------- Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
parent
7f8ff2a317
commit
92ef77da35
@ -44,7 +44,7 @@ class DuckDuckGoSearchRun(BaseTool):
|
|||||||
|
|
||||||
|
|
||||||
class DuckDuckGoSearchResults(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"
|
name = "DuckDuckGo Results JSON"
|
||||||
description = (
|
description = (
|
||||||
|
@ -12,10 +12,9 @@ from pydantic.class_validators import root_validator
|
|||||||
class DuckDuckGoSearchAPIWrapper(BaseModel):
|
class DuckDuckGoSearchAPIWrapper(BaseModel):
|
||||||
"""Wrapper for DuckDuckGo Search API.
|
"""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"
|
region: Optional[str] = "wt-wt"
|
||||||
safesearch: str = "moderate"
|
safesearch: str = "moderate"
|
||||||
time: Optional[str] = "y"
|
time: Optional[str] = "y"
|
||||||
|
Loading…
Reference in New Issue
Block a user