You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit da76811
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/docs/content/docs/integrations/perplexity.mdx
+41-2Lines changed: 41 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Perplexity
3
-
description: Use Perplexity AI for chatand search
3
+
description: Use Perplexity AI for chat, search and agent runs
4
4
integration:
5
5
type: "perplexity"
6
6
color: "#20808D"
@@ -15,7 +15,7 @@ Use [Perplexity](https://www.perplexity.ai) to generate chat responses with web
15
15
16
16
## Use the block [#usage-instructions]
17
17
18
-
Generate completions using Perplexity AI chat models or perform web searches with advanced filtering.
18
+
Generate completions using Perplexity AI chat models, perform web searches with advanced filtering, or run Perplexity and third-party models with built-in web search and URL fetch through the Agent API.
19
19
20
20
## Actions
21
21
@@ -89,4 +89,43 @@ Get ranked search results from Perplexity's continuously refreshed index with ad
89
89
90
90
</ReferenceDetails>
91
91
92
+
### Perplexity Agent
93
+
94
+
Run a Perplexity or third-party model through the Perplexity Agent API with built-in web search and URL fetch, returning the answer, its sources and usage
95
+
96
+
<ReferenceDetails>
97
+
98
+
#### Input
99
+
100
+
| Parameter | Type | Required | Description |
101
+
| --------- | ---- | -------- | ----------- |
102
+
|`content`| string | Yes | The question or task for the agent |
103
+
|`model`| string | Yes | Agent API model \(e.g., "anthropic/claude-opus-5-5", "openai/gpt-5.5"\)|
104
+
|`systemPrompt`| string | No | Instructions that guide the agent behavior |
105
+
|`web_search`| boolean | No | Let the agent search the web \(default: true\)|
106
+
|`fetch_url`| boolean | No | Let the agent fetch the full content of URLs \(default: false\)|
107
+
|`max_steps`| number | No | Maximum number of agent steps, including tool calls \(e.g., 3\)|
108
+
|`max_tokens`| number | No | Maximum number of output tokens to generate \(e.g., 1024, 4096\)|
109
+
|`apiKey`| string | Yes | Perplexity API key |
110
+
111
+
#### Output
112
+
113
+
| Parameter | Type | Description |
114
+
| --------- | ---- | ----------- |
115
+
|`content`| string | The answer produced by the agent |
116
+
|`model`| string | Model used for the run |
117
+
|`status`| string | Final status of the run \(completed, or incomplete when a limit was reached\)|
118
+
|`search_results`| array | Web search results the agent retrieved |
119
+
| ↳ `title`| string | Title of the source |
120
+
| ↳ `url`| string | URL of the source |
121
+
| ↳ `snippet`| string | Excerpt of the source content |
122
+
| ↳ `date`| string | Publication date of the source \(null if unavailable\)|
123
+
| ↳ `last_updated`| string | Date the page was last updated in Perplexity's index \(null if unavailable\)|
124
+
|`usage`| object | Token usage information |
125
+
| ↳ `input_tokens`| number | Number of input tokens |
126
+
| ↳ `output_tokens`| number | Number of output tokens |
127
+
| ↳ `total_tokens`| number | Total number of tokens used |
description: 'Use Perplexity AI for chatand search',
8
+
description: 'Use Perplexity AI for chat, search and agent runs',
9
9
longDescription:
10
-
'Generate completions using Perplexity AI chat models or perform web searches with advanced filtering.',
10
+
'Generate completions using Perplexity AI chat models, perform web searches with advanced filtering, or run Perplexity and third-party models with built-in web search and URL fetch through the Agent API.',
0 commit comments