LibreChat/api/app/clients/tools/structured
glowforge-opensource e3e796293c
🔍 feat: Additional Tavily API Tool Parameters (#7232)
* feat: expose additional Tavily API parameters for tool

The following parameters are part of Tavily API but were previously not exposed for agents to use via the tool. Now they are. The source documentation is here: https://docs.tavily.com/documentation/api-reference/endpoint/search

include_raw_content - returns the full text of found web pages (default is false)
include_domains - limit search to this list of domains (default is none)
exclude_domains - exclude this list of domains form search (default is none)
topic - enum of "general", "news", or "finance" (default is "general")
time_range - enum of "day", "week", "month", or "year" (default unlimited)
days - number of days to search (default is 7, but only applicable to topic == "news")
include_image_descriptions - include a description of the image in the search results (default is false)

It is a little odd that they have both time_range and days, but there it is.

I have noticed that this change requires a little bit of care in prompting to make sure that it doesn't use "news" when you wanted "general". I've attemtped to hint that in the tool description.

* correct lint error

* more lint

---------

Co-authored-by: Michael Natkin <michaeln@glowforge.com>
2025-05-06 22:50:11 -04:00
..
specs 🌤️ feat: Add OpenWeather Tool for Weather Data Retrieval (#5246) 2025-01-10 08:54:08 -05:00
AzureAISearch.js 🚧 chore: merge latest dev build (#4288) 2024-09-30 17:17:57 -04:00
credentials.js 🎥 feat: YouTube Tool (#5582) 2025-01-31 19:11:04 -05:00
DALLE3.js 🔗 feat: Agent Chain (Mixture-of-Agents) (#6374) 2025-03-17 16:43:44 -04:00
FluxAPI.js 🐼 feat: Add Flux Image Generation Tool (#6147) 2025-03-02 13:19:53 -05:00
GoogleSearch.js 🚧 chore: merge latest dev build (#4288) 2024-09-30 17:17:57 -04:00
OpenAIImageTools.js 🎨 feat: OpenAI Image Tools (GPT-Image-1) (#7079) 2025-04-26 04:30:58 -04:00
OpenWeather.js 🌤️ feat: Add OpenWeather Tool for Weather Data Retrieval (#5246) 2025-01-10 08:54:08 -05:00
StableDiffusion.js 🖼️ refactor: Enhance Env Extraction & Agent Image Handling (#6131) 2025-03-01 07:51:12 -05:00
TavilySearch.js 🎥 feat: YouTube Tool (#5582) 2025-01-31 19:11:04 -05:00
TavilySearchResults.js 🔍 feat: Additional Tavily API Tool Parameters (#7232) 2025-05-06 22:50:11 -04:00
TraversaalSearch.js 🔎 fix(Traversaal): Recognize authField during Tool Initialization 2024-03-06 10:59:00 -05:00
Wolfram.js 🚧 chore: merge latest dev build (#4288) 2024-09-30 17:17:57 -04:00
YouTube.js 🎥 feat: YouTube Tool (#5582) 2025-01-31 19:11:04 -05:00