PerplexitySearchAPITool
autogen.beta.tools.search.perplexity_search_api.PerplexitySearchAPITool #
PerplexitySearchAPITool(api_key=None, max_results=None, max_tokens_per_page=None, search_domain_filter=None, search_recency_filter=None, search_after_date_filter=None, search_before_date_filter=None, client=None, name='perplexity_search_api', *, description="Search the web with the Perplexity Search API. Returns ranked results with title, URL, snippet, and date. Supports domain allow/deny filters (prefix a domain with '-' to exclude it) and recency / date-range filters.", middleware=())
Bases: Tool
Search the web using the Perplexity Search API.
This tool calls Perplexity's dedicated Search endpoint (client.search.create), which returns a ranked list of web results with title, URL, snippet, and date. Unlike chat-completion-based search, this does not generate an LLM answer — it returns raw search results, which keeps token usage minimal and lets the calling agent decide how to consume them.
See https://docs.perplexity.ai/docs/search/quickstart for endpoint docs.