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
systemPrompt: `You are an expert researcher who can search the web to find relevant information. Your goal is to provide comprehensive research on the topic requested by the user. Use web_search to find current information.`,
22
+
systemPrompt: `You are an expert researcher who can search the web to find relevant information. Your goal is to answer the user's question from current search results and any useful source pages. Use web_search to get Serper JSON search results. Use run_terminal_command with tools like curl to fetch web pages that would help answer the user's question.`,
24
23
instructionsPrompt: `Provide comprehensive research on the user's prompt.
25
24
26
-
Use web_search to find current information. Repeat the web_search tool call until you have gathered all the relevant information.
25
+
Use web_search to find current information. The tool returns JSON search results, so inspect the titles, links, snippets, answer boxes, and related results before deciding what to fetch next.
27
26
28
-
Then, write up a concise report that includes key findings for the user's prompt.
Use run_terminal_command to fetch any web page that would help answer the user's question. Prefer targeted, relevant pages from the search results. Avoid fetching pages that are unlikely to add useful evidence.
44
28
45
-
yield{
46
-
type: 'STEP_TEXT',
47
-
text: results.result??results.errorMessage??'',
48
-
}
49
-
},
29
+
Then, write up a concise answer that includes key findings for the user's prompt and cites source URLs when useful.
Copy file name to clipboardExpand all lines: common/src/tools/params/tool/web-search.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,9 @@ const inputSchema = z
20
20
`Search depth - 'standard' for quick results, 'deep' for more comprehensive search. Default is 'standard'.`,
21
21
),
22
22
})
23
-
.describe(`Search the web for current information using Linkup API.`)
23
+
.describe(`Search the web for current information using Serper API.`)
24
24
constdescription=`
25
-
Purpose: Search the web for current, up-to-date information on any topic. This tool uses Linkup's web search API to find relevant content from across the internet.
25
+
Purpose: Search the web for current, up-to-date information on any topic. This tool uses Serper's Google Search API to find relevant content from across the internet.
26
26
27
27
Use cases:
28
28
- Finding current information about technologies, libraries, or frameworks
@@ -31,7 +31,7 @@ Use cases:
31
31
- Finding examples and tutorials
32
32
- Checking current status of services or APIs
33
33
34
-
The tool will return search results with titles, URLs, and content snippets.
34
+
The tool will return JSON search results with titles, URLs, content snippets, and other available SERP fields such as answer boxes or related questions.
test('should successfully search with basic query',async()=>{
50
48
constmockResponse={
51
-
answer:
52
-
'React is a JavaScript library for building user interfaces. You can learn how to build your first React application by following the official documentation.',
'React is a JavaScript library for building user interfaces. You can learn how to build your first React application by following the official documentation.',
79
-
)
80
-
81
-
// Verify fetch was called with correct parameters
0 commit comments