mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-25 08:03:39 +00:00
docs: duckduckgosearch options listed (#22568)
Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
parent
ef868bc24b
commit
148088a588
@ -15,11 +15,26 @@ class DuckDuckGoSearchAPIWrapper(BaseModel):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
region: Optional[str] = "wt-wt"
|
region: Optional[str] = "wt-wt"
|
||||||
|
"""
|
||||||
|
See https://pypi.org/project/duckduckgo-search/#regions
|
||||||
|
"""
|
||||||
safesearch: str = "moderate"
|
safesearch: str = "moderate"
|
||||||
|
"""
|
||||||
|
Options: strict, moderate, off
|
||||||
|
"""
|
||||||
time: Optional[str] = "y"
|
time: Optional[str] = "y"
|
||||||
|
"""
|
||||||
|
Options: d, w, m, y
|
||||||
|
"""
|
||||||
max_results: int = 5
|
max_results: int = 5
|
||||||
backend: str = "api" # which backend to use in DDGS.text() (api, html, lite)
|
backend: str = "api"
|
||||||
source: str = "text" # which function to use in DDGS (DDGS.text() or DDGS.news())
|
"""
|
||||||
|
Options: api, html, lite
|
||||||
|
"""
|
||||||
|
source: str = "text"
|
||||||
|
"""
|
||||||
|
Options: text, news
|
||||||
|
"""
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
"""Configuration for this pydantic object."""
|
"""Configuration for this pydantic object."""
|
||||||
|
Loading…
Reference in New Issue
Block a user