Perplexity Search SDK
What is Perplexity Search SDK?
The Perplexity Search SDK is an agents-first Python library that enables AI agents to orchestrate custom search pipelines using 'Search as Code' primitives. By allowing agents to write Python code to control retrieval, ranking, and filtering, it reduces token usage and improves performance for complex, multi-step research tasks.
Perplexity Search SDK introduces a 'Search as Code' paradigm that shifts search orchestration from monolithic API calls to programmable, composable Python primitives. Designed specifically for AI agents, the SDK allows models to execute complex retrieval pipelines—including parallel fan-out, filtering, and ranking—directly within a secure runtime. This approach keeps intermediate state out of the model's context window, significantly reducing token consumption and latency while increasing the precision of research-heavy workflows.
Who Perplexity Search SDK is for
Teams and individual developers working in AI Coding, Agentic AI and API.