I’m using the Tavily Search Langchain integration to use Tavily as a tool (function) to be called by an agent.
I want (the agent to be able) to provide additional search parameters such as “topic” and “days” as keyword arguments as is described in Github for TavilyClient:
"Methods:
- search(query, **kwargs)
- Performs a Tavily Search query and returns the response as a well-structured
dict
. - Additional parameters** can be provided as keyword arguments (detailed below). The keyword arguments supported by this method are:
search_depth
,topic
,days
,max_results
,include_domains
,exclude_domains
,include_answer
,include_raw_content
,include_images
,include_image_descriptions
.
… "
- Performs a Tavily Search query and returns the response as a well-structured
However, it seems that the tool function exposed to the agent only takes a query string as argument. Is it possible to also pass additional search parameters somehow?