PerplexitySearchTool
with AG2 Agents.
Sign Up
and create an accountPerplexity Search
integration in AG2, follow these steps:
Install AG2 with openai
since we use OpenAI’s LLMs in our example:
Note: If you have been usingYou’re all set! Now you can start using Perplexity AI Search with AG2.autogen
orag2
, all you need to do is upgrade it using:orasautogen
andag2
are aliases for the same PyPI package.
max_tokens
parameter.search_domain_filter
parameter to restrict the search results to specific domains.search_domain_filter
parameter is an advanced feature available exclusively to Pro Tier or higher subscribers of the Perplexity API; please consult Perplexity’s usage tiers documentation for further details.