Skip to content

Commit 626daee

Browse files
committed
updated exa to match latest API
1 parent 836a897 commit 626daee

File tree

4 files changed

+11
-19
lines changed

4 files changed

+11
-19
lines changed

apps/docs/content/docs/en/tools/exa.mdx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ Search the web using Exa AI. Returns relevant search results with titles, URLs,
4949
| `type` | string | No | Search type: neural, keyword, auto or fast \(default: auto\) |
5050
| `includeDomains` | string | No | Comma-separated list of domains to include in results |
5151
| `excludeDomains` | string | No | Comma-separated list of domains to exclude from results |
52-
| `category` | string | No | Filter by category: company, research_paper, news_article, pdf, github, tweet, movie, song, personal_site |
52+
| `category` | string | No | Filter by category: company, research paper, news, pdf, github, tweet, personal site, linkedin profile, financial report |
5353
| `text` | boolean | No | Include full text content in results \(default: false\) |
5454
| `highlights` | boolean | No | Include highlighted snippets in results \(default: false\) |
5555
| `summary` | boolean | No | Include AI-generated summaries in results \(default: false\) |
56-
| `livecrawl` | string | No | Live crawling mode: always, fallback, or never \(default: never\) |
56+
| `livecrawl` | string | No | Live crawling mode: never \(default\), fallback, always, or preferred \(always try livecrawl, fall back to cache if fails\) |
5757
| `apiKey` | string | Yes | Exa AI API Key |
5858

5959
#### Output
@@ -76,7 +76,7 @@ Retrieve the contents of webpages using Exa AI. Returns the title, text content,
7676
| `subpages` | number | No | Number of subpages to crawl from the provided URLs |
7777
| `subpageTarget` | string | No | Comma-separated keywords to target specific subpages \(e.g., "docs,tutorial,about"\) |
7878
| `highlights` | boolean | No | Include highlighted snippets in results \(default: false\) |
79-
| `livecrawl` | string | No | Live crawling mode: always, fallback, or never \(default: never\) |
79+
| `livecrawl` | string | No | Live crawling mode: never \(default\), fallback, always, or preferred \(always try livecrawl, fall back to cache if fails\) |
8080
| `apiKey` | string | Yes | Exa AI API Key |
8181

8282
#### Output
@@ -99,10 +99,9 @@ Find webpages similar to a given URL using Exa AI. Returns a list of similar lin
9999
| `includeDomains` | string | No | Comma-separated list of domains to include in results |
100100
| `excludeDomains` | string | No | Comma-separated list of domains to exclude from results |
101101
| `excludeSourceDomain` | boolean | No | Exclude the source domain from results \(default: false\) |
102-
| `category` | string | No | Filter by category: company, research_paper, news_article, pdf, github, tweet, movie, song, personal_site |
103102
| `highlights` | boolean | No | Include highlighted snippets in results \(default: false\) |
104103
| `summary` | boolean | No | Include AI-generated summaries in results \(default: false\) |
105-
| `livecrawl` | string | No | Live crawling mode: always, fallback, or never \(default: never\) |
104+
| `livecrawl` | string | No | Live crawling mode: never \(default\), fallback, always, or preferred \(always try livecrawl, fall back to cache if fails\) |
106105
| `apiKey` | string | Yes | Exa AI API Key |
107106

108107
#### Output

apps/sim/tools/exa/find_similar_links.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ export const findSimilarLinksTool: ToolConfig<
4848
visibility: 'user-only',
4949
description: 'Exclude the source domain from results (default: false)',
5050
},
51-
category: {
52-
type: 'string',
53-
required: false,
54-
visibility: 'user-only',
55-
description:
56-
'Filter by category: company, research_paper, news_article, pdf, github, tweet, movie, song, personal_site',
57-
},
5851
highlights: {
5952
type: 'boolean',
6053
required: false,
@@ -71,7 +64,8 @@ export const findSimilarLinksTool: ToolConfig<
7164
type: 'string',
7265
required: false,
7366
visibility: 'user-only',
74-
description: 'Live crawling mode: always, fallback, or never (default: never)',
67+
description:
68+
'Live crawling mode: never (default), fallback, always, or preferred (always try livecrawl, fall back to cache if fails)',
7569
},
7670
apiKey: {
7771
type: 'string',
@@ -113,9 +107,6 @@ export const findSimilarLinksTool: ToolConfig<
113107
body.excludeSourceDomain = params.excludeSourceDomain
114108
}
115109

116-
// Category filtering
117-
if (params.category) body.category = params.category
118-
119110
// Content options - build contents object
120111
const contents: Record<string, any> = {}
121112
if (params.text !== undefined) contents.text = params.text

apps/sim/tools/exa/get_contents.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export const getContentsTool: ToolConfig<ExaGetContentsParams, ExaGetContentsRes
5151
type: 'string',
5252
required: false,
5353
visibility: 'user-only',
54-
description: 'Live crawling mode: always, fallback, or never (default: never)',
54+
description:
55+
'Live crawling mode: never (default), fallback, always, or preferred (always try livecrawl, fall back to cache if fails)',
5556
},
5657
apiKey: {
5758
type: 'string',

apps/sim/tools/exa/search.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const searchTool: ToolConfig<ExaSearchParams, ExaSearchResponse> = {
5050
required: false,
5151
visibility: 'user-only',
5252
description:
53-
'Filter by category: company, research_paper, news_article, pdf, github, tweet, movie, song, personal_site',
53+
'Filter by category: company, research paper, news, pdf, github, tweet, personal site, linkedin profile, financial report',
5454
},
5555
text: {
5656
type: 'boolean',
@@ -74,7 +74,8 @@ export const searchTool: ToolConfig<ExaSearchParams, ExaSearchResponse> = {
7474
type: 'string',
7575
required: false,
7676
visibility: 'user-only',
77-
description: 'Live crawling mode: always, fallback, or never (default: never)',
77+
description:
78+
'Live crawling mode: never (default), fallback, always, or preferred (always try livecrawl, fall back to cache if fails)',
7879
},
7980
apiKey: {
8081
type: 'string',

0 commit comments

Comments
 (0)