Skip to main content

Parameters

ParameterTypeDefaultDescription
titlestr-The title of the search result
hrefstr-The URL of the search result
bodystr-The body of the search result

Functions

No specific functions - TypedDict for DuckDuckGo search results.

title: DuckDuckGoSearchTool sidebarTitle: DuckDuckGoSearchTool

Parameters

ParameterTypeDefaultDescription
clientDDGS-The DuckDuckGo search client
max_results`intNone`-The maximum number of results. If None, returns results only from the first response

Functions

__call__

Searches DuckDuckGo for the given query and returns the results. Parameters:
  • query (str): The query to search for
Returns:
  • list[DuckDuckGoResult]: The search results


title: duckduckgo_search_tool sidebarTitle: duckduckgo_search_tool

Functions

duckduckgo_search_tool

Creates a DuckDuckGo search tool. Parameters:
  • duckduckgo_client (DDGS | None): The DuckDuckGo search client
  • max_results (int | None): The maximum number of results. If None, returns results only from the first response
Returns:
  • Callable: The DuckDuckGo search tool function
I