This page contains reference documentation for Perplexity. See the docs for conceptual guides, tutorials, and examples on using Perplexity modules.
Perplexity Search tool.
Perplexity AI embeddings.
A JSON output parser that strips reasoning tags before parsing.
This parser removes any content enclosed in
A structured output parser that strips reasoning tags before parsing.
This parser removes any content enclosed in
Raised when a Perplexity Responses (Agent) API stream fails mid-flight.
Carries the structured error fields the API surfaces (code, type,
param, request_id) and the original event payload so
Perplexity AI Chat models API.
Perplexity Search retriever.