Wrapper around Perplexity APIs.
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 observability
pipelines can inspect them programmatically instead of regex-parsing the
message string.
Perplexity AI Chat models API.