u
This commit is contained in:
@@ -89,11 +89,7 @@ export function createWebSearchTool({ googleAuthId }) {
|
||||
return defineTool({
|
||||
name: 'web_search',
|
||||
description:
|
||||
'Search the web using Google Search via Serper.dev. ' +
|
||||
'Returns raw search results as-is from Serper. ' +
|
||||
'Supports filtering fresh content with timePeriod ("day", "week", "month", "year"). ' +
|
||||
'Always use "day" or "week" when searching for news, recent events, or current status. ' +
|
||||
'Each page returns 10 results.',
|
||||
'Search Google via Serper.dev. Use timePeriod "day" or "week" for news/recent events. Returns 10 results per page.',
|
||||
strict: false,
|
||||
parameters: {
|
||||
type: 'object',
|
||||
@@ -102,27 +98,24 @@ export function createWebSearchTool({ googleAuthId }) {
|
||||
properties: {
|
||||
query: {
|
||||
type: 'string',
|
||||
description: 'Search query, e.g. "apple inc" or "vite vue3 release".',
|
||||
description: 'Search query.',
|
||||
},
|
||||
timePeriod: {
|
||||
type: 'string',
|
||||
enum: ['day', 'week', 'month', 'year'],
|
||||
description:
|
||||
'Filter results by time period: "day" (past 24 hours), "week" (past week), ' +
|
||||
'"month" (past month), or "year" (past year). ' +
|
||||
'Always use "day" or "week" when searching for news, recent events, or current status.',
|
||||
description: 'Time filter: "day", "week", "month", or "year".',
|
||||
},
|
||||
gl: {
|
||||
type: 'string',
|
||||
description: 'Geolocation country code. Default "de".',
|
||||
description: 'Country code. Default "de".',
|
||||
},
|
||||
hl: {
|
||||
type: 'string',
|
||||
description: 'Result language code. Default "de".',
|
||||
description: 'Language code. Default "de".',
|
||||
},
|
||||
page: {
|
||||
type: 'number',
|
||||
description: 'Page number of results. Default 1.',
|
||||
description: 'Result page number (10/page). Default 1.',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user