perplexity_reason
Generate well-reasoned responses using AI by processing conversation messages with Perplexity's sonar-reasoning-pro model. Accepts message arrays with role/content pairs and optionally removes thinking tags to optimize token usage.
Instructions
Performs reasoning tasks using the Perplexity API. Accepts an array of messages (each with a role and content) and returns a well-reasoned response using the sonar-reasoning-pro model.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | Array of conversation messages | |
| strip_thinking | No | If true, removes <think>...</think> tags and their content from the response to save context tokens. Default is false. |