Skip to content

Commit f157e90

Browse files
committed
fix(integrations): declare arxiv echo outputs, nullable result fields, and validate linkup max results
1 parent f5908b2 commit f157e90

8 files changed

Lines changed: 14 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Search for academic papers on ArXiv by keywords, authors, titles, or other field
4646
| ↳ `journalRef` | string | |
4747
| ↳ `doi` | string | |
4848
| `totalResults` | number | Total number of results found for the search query |
49+
| `query` | string | The search query that was executed |
4950

5051
</ReferenceDetails>
5152

@@ -98,6 +99,7 @@ Search for papers by a specific author on ArXiv.
9899
| ↳ `journalRef` | string | |
99100
| ↳ `doi` | string | |
100101
| `totalResults` | number | Total number of papers found for the author |
102+
| `authorName` | string | The author name that was searched |
101103

102104
</ReferenceDetails>
103105

‎apps/sim/tools/arxiv/get_author_papers.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,6 @@ export const getAuthorPapersTool: ToolConfig<
9090
type: 'number',
9191
description: 'Total number of papers found for the author',
9292
},
93+
authorName: { type: 'string', description: 'The author name that was searched' },
9394
},
9495
}

‎apps/sim/tools/arxiv/get_paper.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const getPaperTool: ToolConfig<ArxivGetPaperParams, ArxivGetPaperResponse
5252
paper: {
5353
type: 'object',
5454
description: 'Detailed information about the requested ArXiv paper',
55-
optional: true,
55+
nullable: true,
5656
properties: {
5757
id: { type: 'string' },
5858
title: { type: 'string' },

‎apps/sim/tools/arxiv/search.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,6 @@ export const searchTool: ToolConfig<ArxivSearchParams, ArxivSearchResponse> = {
120120
type: 'number',
121121
description: 'Total number of results found for the search query',
122122
},
123+
query: { type: 'string', description: 'The search query that was executed' },
123124
},
124125
}

‎apps/sim/tools/exa/types.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export interface ExaFreshnessParams {
2727
* still honors, kept so workflows saved against the old dropdown keep running.
2828
*/
2929
type ExaSearchType =
30+
| 'lite'
3031
| 'instant'
3132
| 'fast'
3233
| 'auto'

‎apps/sim/tools/generated/tool-outputs.ts‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎apps/sim/tools/linkup/search.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ export const searchTool: ToolConfig<LinkupSearchParams, LinkupSearchToolResponse
152152
if (params.includeSources !== undefined) body.includeSources = params.includeSources
153153

154154
if (params.maxResults !== undefined && String(params.maxResults).trim() !== '') {
155-
body.maxResults = Number(params.maxResults)
155+
const maxResults = Number(params.maxResults)
156+
if (!Number.isInteger(maxResults) || maxResults < 1) {
157+
throw new Error('Linkup Max Results must be a whole number of at least 1')
158+
}
159+
body.maxResults = maxResults
156160
}
157161

158162
return body

‎apps/sim/tools/perplexity/chat.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@ export const chatTool: ToolConfig<PerplexityChatParams, PerplexityChatResponse>
253253
properties: {
254254
title: { type: 'string', description: 'Title of the result page' },
255255
url: { type: 'string', description: 'URL of the result page' },
256-
date: { type: 'string', description: 'Publication date', optional: true },
257-
last_updated: { type: 'string', description: 'Last update date', optional: true },
256+
date: { type: 'string', description: 'Publication date', nullable: true },
257+
last_updated: { type: 'string', description: 'Last update date', nullable: true },
258258
snippet: { type: 'string', description: 'Text snippet from the page' },
259259
},
260260
},

0 commit comments

Comments
 (0)