feat(tavily): search updates #4108
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request enhances the
TavilySearchToolby expanding its configuration options, improving documentation, and ensuring support for new parameters introduced by tavily-python. The changes make the tool more flexible and future-proof, allowing both users and agents to fine-tune search behavior at runtime or initialization, and to pass through new options as needed.Key changes:
Feature Enhancements
TavilySearchTooland its schema, includingstart_date,end_date,country,auto_parameters,include_favicon,include_usage, and support forextra_kwargsto pass arbitrary arguments to tavily-python. Also,include_raw_contentnow accepts"markdown"and"text"in addition tobool. [1] [2] [3]_run) and asynchronous (_arun) search methods to accept and forward the new parameters andextra_kwargsto the underlying tavily-python client. [1] [2] [3] [4] [5] [6]Documentation Updates
extra_kwargsin both the main README and tool documentation, explaining how to forward new tavily-python parameters not yet explicitly supported. [1] [2]Minor Improvements
These updates make the tool easier to use, more adaptable to future API changes, and better documented for both English and Korean users.
Note
Adds new Tavily parameters (dates, country, auto-tuning, favicon/usage), runtime overrides for depth/time,
extra_kwargspassthrough, and updates EN/KO docs accordingly.lib/crewai-tools/.../tavily_search_tool.py):TavilySearchToolSchemawith runtimesearch_depthandtime_range.start_date,end_date,country,auto_parameters,include_favicon,include_usage, andextra_kwargs.include_raw_contentto accept"markdown" | "text"in addition tobool._runand_arunto accept runtimesearch_depth/time_range, forward all new params, and pass through**extra_kwargsto tavily-python.docs/en/.../tavilysearchtool.mdx,docs/ko/.../tavilysearchtool.mdx): clarify agent-settable vs. user-settable params; document new options; update examples; switch phrasing to "raw content" and add link to Tavily API response docs.lib/crewai-tools/.../README.md): documentextra_kwargsargument and provide usage example.Written by Cursor Bugbot for commit 65becd1. This will update automatically on new commits. Configure here.