Skip to content

Add Tavily toolkit with Search, Extract, Crawl, and Map#5

Merged
pushpak1300 merged 5 commits into
mainfrom
add-tavily-websearch-tool
Jun 7, 2026
Merged

Add Tavily toolkit with Search, Extract, Crawl, and Map#5
pushpak1300 merged 5 commits into
mainfrom
add-tavily-websearch-tool

Conversation

@pushpak1300

@pushpak1300 pushpak1300 commented Jun 1, 2026

Copy link
Copy Markdown
Member

Currently there isn't a way to interact with Tavily's APIs in the toolkit. This PR adds a complete Tavily toolkit with four tools aligned with the official @tavily/ai-sdk package.

use Shipfastlabs\Toolkit\Tavily\TavilySearch;
use Shipfastlabs\Toolkit\Tavily\TavilyExtract;
use Shipfastlabs\Toolkit\Tavily\TavilyCrawl;
use Shipfastlabs\Toolkit\Tavily\TavilyMap;

$tools = [
    new TavilySearch,   // real-time web search
    new TavilyExtract,  // content extraction from URLs
    new TavilyCrawl,    // intelligent website crawling
    new TavilyMap,      // website structure discovery
];

All tools read credentials from services.tavily.key and support per-tool defaults under ai.toolkit.tavily.*. Search uses body-based auth; Extract, Crawl, and Map use Bearer tokens per the Tavily API specs.

Includes 49 tests covering validation, defaults, boundary clamping, explicit null handling, invalid enum fallback, and error cases. All quality gates pass (Pint, Rector, PHPStan max, 100% type coverage, 100% code coverage).

API reference:

@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
toolkit Ready Ready Preview, Comment Jun 7, 2026 4:12pm

@pushpak1300 pushpak1300 force-pushed the add-tavily-websearch-tool branch from a3959aa to 5d39d4c Compare June 1, 2026 08:00
@pushpak1300 pushpak1300 force-pushed the add-tavily-websearch-tool branch from 5d39d4c to 3802e3d Compare June 1, 2026 08:03
@pushpak1300 pushpak1300 force-pushed the add-tavily-websearch-tool branch from 3802e3d to b47d83e Compare June 1, 2026 08:09
@pushpak1300 pushpak1300 changed the title Add TavilyWebsearch tool for real-time web search Add Tavily toolkit with Search, Extract, Crawl, and Map Jun 1, 2026
@pushpak1300 pushpak1300 force-pushed the add-tavily-websearch-tool branch from b47d83e to 921b16a Compare June 7, 2026 14:13
@pushpak1300 pushpak1300 marked this pull request as ready for review June 7, 2026 16:03
@pushpak1300 pushpak1300 merged commit 808e72e into main Jun 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant