perplexity-agent
v1.0.0Search the web using the Perplexity Agent API. Provides real-time information, news, and grounded answers with citations. Use when the user asks for: (1) Current events or news, (2) Information retrieval from the web, (3) Real-time data search, (4) In-depth research using web results.
Installation
Please help me install the skill `perplexity-agent` from SkillHub official store.
npx skills add davidsteelerose/perplexity-agent
Perplexity Agent Search
Use the Perplexity Agent API to perform real-time web searches and get grounded answers.
Workflow
To perform a web search:
- Identify the user's research or search query.
- Execute the
scripts/search.pyscript with the query. - Present the
answerfrom the JSON response to the user.
Example
To search for "latest AI developments":
python3 scripts/search.py "What are the latest developments in AI?"
Important
- Requires
PERPLEXITY_API_KEYto be set in the environment. - Uses the
pro-searchpreset for high-quality, researched results. - Returns a JSON object with
success,answer, and themodelused.