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 be71b07
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
@@ -82,4 +82,43 @@ Get ranked search results from Perplexity's continuously refreshed index with ad
82
82
83
83
</ReferenceDetails>
84
84
85
+
### Perplexity Agent
86
+
87
+
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
88
+
89
+
<ReferenceDetails>
90
+
91
+
#### Input
92
+
93
+
| Parameter | Type | Required | Description |
94
+
| --------- | ---- | -------- | ----------- |
95
+
|`content`| string | Yes | The question or task for the agent |
96
+
|`model`| string | Yes | Agent API model \(e.g., "anthropic/claude-opus-5-5", "openai/gpt-5.5"\)|
97
+
|`systemPrompt`| string | No | Instructions that guide the agent behavior |
98
+
|`web_search`| boolean | No | Let the agent search the web \(default: true\)|
99
+
|`fetch_url`| boolean | No | Let the agent fetch the full content of URLs \(default: false\)|
100
+
|`max_steps`| number | No | Maximum number of agent steps, including tool calls \(e.g., 3\)|
101
+
|`max_tokens`| number | No | Maximum number of output tokens to generate \(e.g., 1024, 4096\)|
102
+
|`apiKey`| string | Yes | Perplexity API key |
103
+
104
+
#### Output
105
+
106
+
| Parameter | Type | Description |
107
+
| --------- | ---- | ----------- |
108
+
|`content`| string | The answer produced by the agent |
109
+
|`model`| string | Model used for the run |
110
+
|`status`| string | Final status of the run \(completed, or incomplete when a limit was reached\)|
111
+
|`sources`| array | Web search results the agent used |
112
+
| ↳ `title`| string | Title of the source |
113
+
| ↳ `url`| string | URL of the source |
114
+
| ↳ `snippet`| string | Excerpt of the source content |
115
+
| ↳ `date`| string | Publication date of the source |
116
+
| ↳ `last_updated`| string | Date the page was last updated in Perplexity's index |
117
+
|`usage`| object | Token usage information |
118
+
| ↳ `input_tokens`| number | Number of input tokens |
119
+
| ↳ `output_tokens`| number | Number of output tokens |
120
+
| ↳ `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