Overview
The Perplexity Sonar Pro Agent provides real-time, source-backed information from the live web. It specializes in research, news, competitive analysis, and fact verification.Initialization
Model Configuration
Uses Perplexity’s Sonar Pro model through OpenAI-compatible API:Model Capabilities
- Real-time web access: Searches current web content
- Source attribution: Returns sources for all claims
- Contextual understanding: Uses current date/time for relevance
- Multi-source verification: Cross-references information
Use Cases
The Perplexity Agent is delegated tasks involving:1. Deep Research
Fromsystem_prompt.md:79:
Deep research / real-time web data / complex analysis → delegate to pplx-agent.
- Comprehensive topic analysis
- Multi-source research
- Competitive analysis
- Detailed investigations
2. Real-Time Information
- Current events and news
- Market data and trends
- Live updates
- Breaking information
3. Fact Verification
Fromsystem_prompt.md:93-99:
- Verifying statistics and numbers
- Cross-checking claims
- Providing source citations
- Assessing information credibility
4. Complex Analysis
- Comparative studies
- Trend analysis
- Expert opinion gathering
- Technical research
Tools
The Perplexity Agent does not have explicit tools - its capabilities come from the Sonar Pro model’s native web access:- Searches the web
- Retrieves sources
- Analyzes content
- Generates citations
Context Awareness
- Current date and time (IST)
- Message timestamps
- Temporal context for queries
- Time-sensitive searches (“today’s news”)
- Date-aware research (“recent developments”)
- Historical context (“what happened yesterday”)
Configuration
Environment variables:Delegation Strategy
When to Use Perplexity Agent
✅ Use for:- Web research and information gathering
- Current events and news
- Fact verification
- Source-backed answers
- Competitive analysis
- Code execution (use Code Agent or Groq Compound)
- Chat history analysis (use Context Q&A Agent)
- Math calculations (use Team Leader’s CalculatorTools)
Fallback Behavior
Fromsystem_prompt.md:87-89:
If the chosen agent is unavailable or fails, attempt one fallback (next appropriate agent) before returning a best-effort partial answer.If Perplexity Agent fails:
- Try Code Agent with ExaTools for web search
- Return best-effort answer with uncertainty disclaimer
Response Guidelines
The agent follows these citation standards:Example Queries
Good delegation to Perplexity:- “What are the latest developments in AI regulation?”
- “Compare the top 5 CRM platforms for startups”
- “What’s the current status of the XYZ merger?”
- “Find research papers on quantum computing from 2024”
- “Calculate the ROI for this investment” → Team Leader (CalculatorTools)
- “Run this Python script” → Code Agent or Groq Compound
- “What did I say about this topic last week?” → Context Q&A Agent
Performance Characteristics
- Speed: Moderate (web search adds latency)
- Accuracy: High (source-backed)
- Cost: Higher (Sonar Pro is premium)
- Token usage: Variable (depends on sources)
Best Practices
- Clear queries: Specific questions get better results
- Time bounds: Specify date ranges when relevant
- Source requirements: Request specific source types if needed
- Verification level: Indicate if high-confidence sources are required
Next Steps
- Code Agent - For code execution
- Context Q&A Agent - For chat history
- Creating Custom Agents