Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🔍 feat: Additional Tavily API Tool Parameters (#7232)

glowforge-opensourcee3e796293c11
diff --git a/api/app/clients/tools/structured/TavilySearchResults.js b/api/app/clients/tools/structured/TavilySearchResults.js
index 9a62053ff0..9461293371 100644
--- a/api/app/clients/tools/structured/TavilySearchResults.js
+++ b/api/app/clients/tools/structured/TavilySearchResults.js
@@ -43,9 +43,39 @@ class TavilySearchResults extends Tool {
.boolean()
.optional()
.describe('Whether to include answers in the search results. Default is False.'),
- // include_raw_content: z.boolean().optional().describe('Whether to include raw content in the search results. Default is False.'),
- // include_domains: z.array(z.string()).optional().describe('A list of domains to specifically include in the search results.'),
- // exclude_domains: z.array(z.string()).optional().describe('A list of domains to specifically exclude from the search results.'),
+ include_raw_content: z
+ .boolean()
+ .optional()
+ .describe('Whether to include raw content in the search results. Default is False.'),
+ include_domains: z
+ .array(z.string())
+ .optional()
+ .describe('A list of domains to specifically include in the search results.'),
+ exclude_domains: z
+ .array(z.string())
+ .optional()
+ .describe('A list of domains to specifically exclude from the search results.'),
+ topic: z
+ .enum(['general', 'news', 'finance'])
+ .optional()
+ .describe(
+ 'The category of the search. Use news ONLY if query SPECIFCALLY mentions the word "news".',
+ ),
+ time_range: z
+ .enum(['day', 'week', 'month', 'year', 'd', 'w', 'm', 'y'])
+ .optional()
+ .describe('The time range back from the current date to filter results.'),
+ days: z
+ .number()
+ .min(1)
+ .optional()
+ .describe('Number of days back from the current date to include. Only if topic is news.'),
+ include_image_descriptions: z
+ .boolean()
+ .optional()
+ .describe(
+ 'When include_images is true, also add a descriptive text for each image. Default is false.',
+ ),
});
}