Skip to content

Commit f5908b2

Browse files
committed
fix(integrations): validate exa, tavily, serper, linkup, parallel ai, perplexity, jina, duckduckgo, wikipedia and arxiv
1 parent 62efcee commit f5908b2

52 files changed

Lines changed: 554 additions & 129 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/docs/content/docs/integrations/arxiv.mdx‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ Search for academic papers on ArXiv by keywords, authors, titles, or other field
3939

4040
| Parameter | Type | Description |
4141
| --------- | ---- | ----------- |
42-
| `papers` | json | Array of papers matching the search query |
42+
| `papers` | array | Array of papers matching the search query |
43+
| ↳ `authors` | array | |
44+
| ↳ `categories` | array | |
45+
| ↳ `comment` | string | |
46+
| ↳ `journalRef` | string | |
47+
| ↳ `doi` | string | |
4348
| `totalResults` | number | Total number of results found for the search query |
4449

4550
</ReferenceDetails>
@@ -60,7 +65,12 @@ Get detailed information about a specific ArXiv paper by its ID.
6065

6166
| Parameter | Type | Description |
6267
| --------- | ---- | ----------- |
63-
| `paper` | json | Detailed information about the requested ArXiv paper |
68+
| `paper` | object | Detailed information about the requested ArXiv paper |
69+
| ↳ `authors` | array | |
70+
| ↳ `categories` | array | |
71+
| ↳ `comment` | string | |
72+
| ↳ `journalRef` | string | |
73+
| ↳ `doi` | string | |
6474

6575
</ReferenceDetails>
6676

@@ -81,7 +91,12 @@ Search for papers by a specific author on ArXiv.
8191

8292
| Parameter | Type | Description |
8393
| --------- | ---- | ----------- |
84-
| `authorPapers` | json | Array of papers authored by the specified author |
94+
| `authorPapers` | array | Array of papers authored by the specified author |
95+
| ↳ `authors` | array | |
96+
| ↳ `categories` | array | |
97+
| ↳ `comment` | string | |
98+
| ↳ `journalRef` | string | |
99+
| ↳ `doi` | string | |
85100
| `totalResults` | number | Total number of papers found for the author |
86101

87102
</ReferenceDetails>

‎apps/docs/content/docs/integrations/duckduckgo.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Search the web using DuckDuckGo Instant Answers API. Returns instant answers, ab
4545
| `definition` | string | Dictionary-style definition if available |
4646
| `definitionSource` | string | The source of the definition |
4747
| `definitionURL` | string | URL to the source of the definition |
48-
| `image` | string | URL to an image related to the topic |
48+
| `image` | string | Absolute URL to an image related to the topic |
4949
| `answer` | string | Direct answer if available \(e.g., for calculations\) |
5050
| `answerType` | string | Type of the answer \(e.g., calc, ip, etc.\) |
5151
| `type` | string | Response type: A \(article\), D \(disambiguation\), C \(category\), N \(name\), E \(exclusive\) |

‎apps/docs/content/docs/integrations/exa.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Search the web using Exa AI. Returns relevant search results with titles, URLs,
3333
| --------- | ---- | -------- | ----------- |
3434
| `query` | string | Yes | The search query to execute |
3535
| `numResults` | number | No | Number of results to return \(1-100\). Default: 10 |
36-
| `type` | string | No | Search type: "instant", "fast", "auto", "deep-lite", "deep", or "deep-reasoning". Default: "auto" |
36+
| `type` | string | No | Search type: "auto", "lite", "deep-lite", or "deep" \("instant", "fast", and "deep-reasoning" are legacy\). Default: "auto" |
3737
| `includeDomains` | string | No | Comma-separated list of domains to include in results \(e.g., "github.com, stackoverflow.com"\) |
3838
| `excludeDomains` | string | No | Comma-separated list of domains to exclude from results \(e.g., "reddit.com, pinterest.com"\) |
3939
| `category` | string | No | Filter by category: company, publication, news, personal site, financial report, people |

‎apps/docs/content/docs/integrations/linkup.mdx‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Search the web for information using Linkup
3232
| Parameter | Type | Required | Description |
3333
| --------- | ---- | -------- | ----------- |
3434
| `q` | string | Yes | The search query \(e.g., "latest AI research papers 2024"\) |
35-
| `depth` | string | Yes | Search depth: "standard" for quick results, "deep" for comprehensive search |
35+
| `depth` | string | Yes | Search depth: "flash" \(lowest latency\), "fast" \(one-shot retrieval\), "standard" \(single agentic pass\), or "deep" \(multi-step, most thorough\) |
3636
| `outputType` | string | Yes | Output format: "sourcedAnswer" for AI-generated answer with citations, "searchResults" for raw results |
3737
| `apiKey` | string | Yes | Enter your Linkup API key |
3838
| `includeImages` | boolean | No | Whether to include images in search results |
@@ -42,13 +42,26 @@ Search the web for information using Linkup
4242
| `includeDomains` | string | No | Comma-separated list of domain names to restrict search results to |
4343
| `includeInlineCitations` | boolean | No | Add inline citations to answers \(only applies when outputType is "sourcedAnswer"\) |
4444
| `includeSources` | boolean | No | Include sources in response |
45+
| `maxResults` | number | No | Maximum number of results to return \(at least 1\) |
4546

4647
#### Output
4748

4849
| Parameter | Type | Description |
4950
| --------- | ---- | ----------- |
50-
| `answer` | string | The sourced answer to the search query |
51-
| `sources` | array | Array of sources used to compile the answer, each containing name, url, and snippet |
51+
| `answer` | string | The sourced answer to the search query \(Answer output type\) |
52+
| `sources` | array | Sources used to compile the answer \(Answer output type\) |
53+
| ↳ `name` | string | Title of the source |
54+
| ↳ `url` | string | URL of the source |
55+
| ↳ `snippet` | string | Text extracted from the source |
56+
| ↳ `favicon` | string | Favicon URL |
57+
| ↳ `publishedAt` | string | Publication date |
58+
| `results` | array | Ranked text and image results \(Search output type\) |
59+
| ↳ `type` | string | Result type: text or image |
60+
| ↳ `name` | string | Title of the result |
61+
| ↳ `url` | string | URL of the result |
62+
| ↳ `content` | string | Extracted text content \(text results\) |
63+
| ↳ `favicon` | string | Favicon URL |
64+
| ↳ `publishedAt` | string | Publication date |
5265

5366
</ReferenceDetails>
5467

‎apps/docs/content/docs/integrations/parallel_ai.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Search the web with Parallel AI and return matching pages with content excerpts.
3333
| `objective` | string | No | Natural-language description of the search intent used to rank and excerpt results |
3434
| `mode` | string | No | Search mode: turbo, fast, basic, or advanced \(default: advanced\) |
3535
| `max_results` | number | No | Maximum number of results to return \(default: 10, max: 20\) |
36-
| `max_chars_per_result` | number | No | Maximum characters of excerpts per result |
36+
| `max_chars_per_result` | number | No | Maximum characters of excerpts per result. Sent as a total excerpt budget \(this value times max_results, default 10 results\) |
3737
| `include_domains` | string | No | Comma-separated list of domains to restrict search results to |
3838
| `exclude_domains` | string | No | Comma-separated list of domains to exclude from search results |
3939
| `apiKey` | string | Yes | Parallel AI API Key |

‎apps/docs/content/docs/integrations/perplexity.mdx‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ Generate completions using Perplexity AI chat models
4242
| --------- | ---- | ----------- |
4343
| `content` | string | Generated text content |
4444
| `model` | string | Model used for generation |
45+
| `citations` | array | URLs of the sources the answer cites |
46+
| `search_results` | array | Search results the answer was grounded in |
47+
| ↳ `title` | string | Title of the result page |
48+
| ↳ `url` | string | URL of the result page |
49+
| ↳ `date` | string | Publication date |
50+
| ↳ `last_updated` | string | Last update date |
51+
| ↳ `snippet` | string | Text snippet from the page |
4552
| `usage` | object | Token usage information |
4653
| ↳ `prompt_tokens` | number | Number of tokens in the prompt |
4754
| ↳ `completion_tokens` | number | Number of tokens in the completion |

‎apps/docs/content/docs/integrations/serper.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Search the web.
2121

2222
### Web Search
2323

24-
Search Google through the Serper.dev API for web, news, places, images, videos, shopping, scholar, or patent results. Available response sections include organic results, a knowledge graph, an answer box, related questions, related searches, and top stories.
24+
Search Google through the Serper.dev API for web, news, places, images, videos, shopping, scholar, or patent results. Returns the ranked results for the chosen search type.
2525

2626
<ReferenceDetails>
2727

‎apps/docs/content/docs/integrations/tavily.mdx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Perform AI-powered web searches using Tavily's search API. Returns structured re
3232
| `query` | string | Yes | The search query to execute \(e.g., "latest AI research papers 2024"\) |
3333
| `max_results` | number | No | Maximum number of results \(1-20, e.g., 5\) |
3434
| `topic` | string | No | Category type: general, news, or finance \(e.g., "news"\) |
35-
| `search_depth` | string | No | Search scope: basic \(1 credit\) or advanced \(2 credits\) \(e.g., "advanced"\) |
35+
| `search_depth` | string | No | Search depth: basic \(1 credit\), advanced \(2 credits\), fast \(1 credit\), or ultra-fast \(1 credit\) \(e.g., "advanced"\) |
3636
| `include_answer` | string | No | LLM-generated response: true/basic for quick answer or advanced for detailed \(e.g., "advanced"\) |
3737
| `include_raw_content` | string | No | Parsed HTML content: true/markdown or text format \(e.g., "markdown"\) |
3838
| `include_images` | boolean | No | Include image search results |
@@ -65,6 +65,7 @@ Perform AI-powered web searches using Tavily's search API. Returns structured re
6565
| ↳ `description` | string | Image description |
6666
| `auto_parameters` | object | Automatically selected parameters based on query intent \(if enabled\) |
6767
| `response_time` | number | Time taken for the search request in seconds |
68+
| `request_id` | string | Request identifier to share with Tavily support |
6869

6970
</ReferenceDetails>
7071

@@ -97,6 +98,7 @@ Extract raw content from multiple web pages simultaneously using Tavily's extrac
9798
| ↳ `url` | string | The URL that failed extraction |
9899
| ↳ `error` | string | Error message describing why extraction failed |
99100
| `response_time` | number | Time taken for the extraction request in seconds |
101+
| `request_id` | string | Request identifier to share with Tavily support |
100102

101103
</ReferenceDetails>
102104

@@ -165,8 +167,7 @@ Discover and visualize website structure using Tavily's map API. Maps out all ac
165167
| Parameter | Type | Description |
166168
| --------- | ---- | ----------- |
167169
| `base_url` | string | The base URL that was mapped |
168-
| `results` | array | Array of discovered URLs during mapping |
169-
| ↳ `url` | string | Discovered URL |
170+
| `results` | array | URLs discovered during mapping |
170171
| `response_time` | number | Time taken for the map request in seconds |
171172
| `request_id` | string | Unique identifier for support reference |
172173

‎apps/sim/blocks/blocks/arxiv.ts‎

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export const ArxivBlock: BlockConfig = {
7474
type: 'short-input',
7575
placeholder: '10',
7676
condition: { field: 'operation', value: 'arxiv_search' },
77+
mode: 'advanced',
7778
},
7879
{
7980
id: 'sortBy',
@@ -86,6 +87,7 @@ export const ArxivBlock: BlockConfig = {
8687
],
8788
value: () => 'relevance',
8889
condition: { field: 'operation', value: 'arxiv_search' },
90+
mode: 'advanced',
8991
},
9092
{
9193
id: 'sortOrder',
@@ -97,6 +99,7 @@ export const ArxivBlock: BlockConfig = {
9799
],
98100
value: () => 'descending',
99101
condition: { field: 'operation', value: 'arxiv_search' },
102+
mode: 'advanced',
100103
},
101104
// Get Paper Details operation inputs
102105
{
@@ -122,6 +125,7 @@ export const ArxivBlock: BlockConfig = {
122125
type: 'short-input',
123126
placeholder: '10',
124127
condition: { field: 'operation', value: 'arxiv_get_author_papers' },
128+
mode: 'advanced',
125129
},
126130
],
127131
tools: {
@@ -161,12 +165,24 @@ export const ArxivBlock: BlockConfig = {
161165
},
162166
outputs: {
163167
// Search output
164-
papers: { type: 'json', description: 'Found papers data' },
168+
papers: {
169+
type: 'json',
170+
description:
171+
'Matching papers [{id, title, summary, authors, published, updated, link, pdfLink, categories, primaryCategory, comment, journalRef, doi}]',
172+
},
165173
totalResults: { type: 'number', description: 'Total results count' },
166174
// Get Paper Details output
167-
paper: { type: 'json', description: 'Paper details' },
175+
paper: {
176+
type: 'json',
177+
description:
178+
'Paper details (id, title, summary, authors, published, updated, link, pdfLink, categories, primaryCategory, comment, journalRef, doi)',
179+
},
168180
// Get Author Papers output
169-
authorPapers: { type: 'json', description: 'Author papers list' },
181+
authorPapers: {
182+
type: 'json',
183+
description:
184+
'Papers by the author, newest first [{id, title, summary, authors, published, updated, link, pdfLink, categories, primaryCategory, comment, journalRef, doi}]',
185+
},
170186
},
171187
}
172188

‎apps/sim/blocks/blocks/exa.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export const ExaBlock: BlockConfig = {
106106
type: 'dropdown',
107107
options: [
108108
{ label: 'Auto', id: 'auto' },
109+
{ label: 'Lite', id: 'lite' },
109110
{ label: 'Instant', id: 'instant' },
110111
{ label: 'Fast', id: 'fast' },
111112
{ label: 'Deep Lite', id: 'deep-lite' },

0 commit comments

Comments
 (0)