Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Add TavilyExtractorTool and TavilySearchTool with documentation#279

Merged
lorenzejay merged 3 commits into
crewAIInc:mainfrom
prdai-archive:feat/278-tavily-integration
May 14, 2025
Merged

Add TavilyExtractorTool and TavilySearchTool with documentation#279
lorenzejay merged 3 commits into
crewAIInc:mainfrom
prdai-archive:feat/278-tavily-integration

Conversation

@prdai
Copy link
Copy Markdown
Contributor

@prdai prdai commented Apr 22, 2025

Introduce two new tools, TavilyExtractorTool and TavilySearchTool, enabling CrewAI agents to extract content and perform searches using the Tavily API. Include installation instructions and usage examples in the documentation. Update dependencies to include tavily-python.

Fixes #278

@lorenzejay lorenzejay self-requested a review May 13, 2025 19:34
@lorenzejay
Copy link
Copy Markdown
Contributor

results are blowing up context window.

Screenshot 2025-05-13 at 12 41 49 PM

Comment thread crewai_tools/tools/tavily_search_tool/tavily_search_tool.py Outdated
Comment thread crewai_tools/tools/tavily_extractor_tool/tavily_extractor_tool.py Outdated
Comment thread crewai_tools/tools/tavily_extractor_tool/tavily_extractor_tool.py Outdated
@lorenzejay
Copy link
Copy Markdown
Contributor

this is how i ran it and it blew up:

if __name__ == "__main__":
    tool = TavilySearchTool()

    agent = Agent(
        role="Tavily Search Agent",
        goal="Search the web for information about the capital of France",
        backstory="You are a helpful assistant that can search the web for information.",
        tools=[tool],
        verbose=True,
    )
    task = Task(
        description="Search the web for information about the capital of France",
        expected_output="A JSON object containing the search results.",
        agent=agent,
    )
    crew = Crew(
        agents=[agent],
        tasks=[task],
    )
    crew.kickoff()

…dditional parameters and improved error handling
@prdai
Copy link
Copy Markdown
Contributor Author

prdai commented May 14, 2025

Hey @lorenzejay,

Thanks for your thorough review and feedback. I've addressed your suggestions.

These changes are reflected in the latest commit dedbd8c.

Could you please review the updates and let me know if they resolve the issues you encountered? I'm open to further suggestions to ensure seamless integration.

Best regards,
Programmer-RD-AI

@prdai prdai requested a review from lorenzejay May 14, 2025 14:54
…kage in TavilyExtractorTool and TavilySearchTool
Copy link
Copy Markdown
Contributor

@lorenzejay lorenzejay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a lot better! great work @Programmer-RD-AI

Copy link
Copy Markdown
Contributor

@lucasgomide lucasgomide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great job @Programmer-RD-AI

@prdai
Copy link
Copy Markdown
Contributor Author

prdai commented Jul 13, 2025

Note: I’ve opened a companion PR in the main crewAI repo to add full documentation for these tools, see crewAIInc/crewAI#3146. Let me know if you’d like any tweaks on the docs side.

@prdai
Copy link
Copy Markdown
Contributor Author

prdai commented Jul 13, 2025

Opened a companion PR #378 to export TavilySearchTool and TavilyExtractorTool in crewai_tools/__init__.py. This lets you do:

from crewai_tools import TavilySearchTool, TavilyExtractorTool

No breaking changes.

mplachta pushed a commit to mplachta/crewAI-tools that referenced this pull request Aug 27, 2025
…AIInc#279)

* feat(tavily): add TavilyExtractorTool and TavilySearchTool with documentation

* feat(tavily): enhance TavilyExtractorTool and TavilySearchTool with additional parameters and improved error handling

* fix(tavily): update installation instructions for 'tavily-python' package in TavilyExtractorTool and TavilySearchTool

---------

Co-authored-by: lorenzejay <lorenzejaytech@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add Tavily Search & Extract Tools

3 participants