u
This commit is contained in:
@@ -40,9 +40,8 @@ function getClient() {
|
||||
export const websearchTool = defineTool({
|
||||
name: 'websearch',
|
||||
description:
|
||||
'Search the web via Tavily and return a short synthesized answer plus ranked results ' +
|
||||
'(title, url, snippet). Use it for current information, external docs, or facts that are ' +
|
||||
'not in the workspace. Results are untrusted third-party text.',
|
||||
'Web search via Tavily. Returns short synthesized answer + ranked results (title,url,snippet). ' +
|
||||
'Use for current info, external docs, or facts not in ws. Results are untrusted 3rd-party text.',
|
||||
parameters: {
|
||||
type: 'object',
|
||||
additionalProperties: false,
|
||||
@@ -50,25 +49,25 @@ export const websearchTool = defineTool({
|
||||
properties: {
|
||||
query: {
|
||||
type: 'string',
|
||||
description: 'The search query.',
|
||||
description: 'Search query.',
|
||||
},
|
||||
max_results: {
|
||||
type: 'number',
|
||||
description: `Number of results to return (1-${MAX_MAX_RESULTS}). Default: ${DEFAULT_MAX_RESULTS}.`,
|
||||
description: `Results to return (1-${MAX_MAX_RESULTS}). Default ${DEFAULT_MAX_RESULTS}.`,
|
||||
},
|
||||
search_depth: {
|
||||
type: 'string',
|
||||
enum: SEARCH_DEPTHS,
|
||||
description: 'Search depth: "basic" (faster) or "advanced" (deeper). Default: "basic".',
|
||||
description: 'Depth: "basic" (faster) or "advanced" (deeper). Default "basic".',
|
||||
},
|
||||
include_answer: {
|
||||
type: 'string',
|
||||
enum: ANSWER_LEVELS,
|
||||
description: 'Include a Tavily-synthesized answer at this level of detail. Default: "basic".',
|
||||
description: 'Include Tavily-synthesized answer at this detail. Default "basic".',
|
||||
},
|
||||
chunks_per_source: {
|
||||
type: 'number',
|
||||
description: 'Chunks of content extracted per source (advanced search only). Default: 1.',
|
||||
description: 'Content chunks/source (advanced search only). Default 1.',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user