Documentation Index
Fetch the complete documentation index at: https://docs.perplexity.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
CAMEL-AI’sSearchToolkit ships a search_perplexity method that wraps the Perplexity Search API as a native CAMEL tool. The tool returns ranked web results — title, URL, snippet, and date — so the calling ChatAgent can ground its responses on fresh, citable sources.
CAMEL-AI is an open-source framework for building communicative multi-agent systems. Learn more at camel-ai.org.
Installation
API Key Setup
Set your Perplexity API key as an environment variable:Get API Key
Generate your API key from the Perplexity dashboard.
Quick Start
Registersearch_perplexity as a tool on a ChatAgent:
POST https://api.perplexity.ai/search under the hood and returns the raw API response so the agent can pick which results to cite.
Configuration
All Search API parameters are supported directly onsearch_perplexity:
extra_params to forward any additional Search API field that isn’t yet a first-class argument:
Response Shape
search_perplexity returns the raw Perplexity Search API response as a Dict[str, Any]. On success it contains a results list along with id and server_time:
error key describing the issue (missing API key, HTTP error, or request exception).
Links & Resources
CAMEL-AI Docs
Build multi-agent systems with CAMEL-AI.
Tool Source
SearchToolkit.search_perplexity implementation.
Search API Quickstart
Learn more about the underlying Perplexity Search API.
Example Script
End-to-end CAMEL example using Perplexity search.
Support
Need help with the integration?- Browse the CAMEL-AI documentation
- Review our FAQ