TheDocumentation Index
Fetch the complete documentation index at: https://docs.crewai.com/llms.txt
Use this file to discover all available pages before exploring further.
TavilyGetResearchTool lets CrewAI agents check an existing Tavily research task by request_id. Use it when a research task was started earlier and you need to retrieve its current status or final results.
If you need to start a new research job, use the Tavily Research Tool. This tool is specifically for looking up an existing Tavily research request after you already have its request_id.
Installation
To use theTavilyGetResearchTool, install the tavily-python library alongside crewai-tools:
Environment Variables
Set your Tavily API key:Example Usage
Common Workflow
UseTavilyGetResearchTool when your application or another service has already created a Tavily research task and saved its request_id.
Typical cases include:
- Polling for completion after kicking off research in a background job.
- Looking up the latest status of a long-running research task.
- Fetching final research output from a previously created Tavily request.
Configuration Options
TheTavilyGetResearchTool accepts the following argument when calling the run method:
request_id(str): Required. The existing Tavily research request ID to retrieve.
Async Usage
Use_arun when your application is already running inside an async event loop:
Features
- Research status retrieval: Fetch the current status of an existing Tavily research task.
- Result retrieval: Return available research output once Tavily has completed the task.
- Sync and async: Use either
_run/runor_arundepending on your application’s runtime. - JSON output: Returns Tavily responses as formatted JSON strings.
