Skip to content

Add JigsawStack toolkit with 18 AI SDK tools#9

Merged
pushpak1300 merged 4 commits into
mainfrom
add-jigsawstack-tools
Jun 7, 2026
Merged

Add JigsawStack toolkit with 18 AI SDK tools#9
pushpak1300 merged 4 commits into
mainfrom
add-jigsawstack-tools

Conversation

@pushpak1300

Copy link
Copy Markdown
Member

Currently the toolkit covers web search via Tavily, but there's no integration for JigsawStack's AI APIs. This adds a single shipfastlabs/toolkit-jigsawstack package exposing all 18 tools from JigsawStack's AI SDK integration (sentiment, summary, embedding, prediction, text-to-SQL, text/image translation, web search, AI scrape, HTML-to-any, search suggestions, vOCR, object detection, speech-to-text, and the NSFW/profanity/spell/spam validators).

Register them the same way as Tavily:

use Shipfastlabs\Toolkit\JigsawStack\JigsawStack;

$tools = JigsawStack::all(); // Collection<int, Tool>

or pick individual ones:

use Shipfastlabs\Toolkit\JigsawStack\JigsawStackWebSearch;
use Shipfastlabs\Toolkit\JigsawStack\JigsawStackSentiment;

$tools = [new JigsawStackWebSearch, new JigsawStackSentiment];

Notes

  • Structure mirrors the Tavily package: one mirror, a JigsawStack::all() helper, and a shared InteractsWithJigsawStack trait for the HTTP call and error handling so each tool stays tiny.
  • API key is read from config('services.jigsawstack.key') (sent as the x-api-key header), documented in the package README.
  • Tools return errors to the model as strings and never throw, per the toolkit conventions.
  • Added the package to the coverage gate; it's at 100% (PHPStan max, type + code coverage), composer test green.
  • Wired into the workbench agent so you can try it with vendor/bin/testbench agent:run "..." once JIGSAWSTACK_API_KEY is set.

Descriptions are authored to match the AI SDK tool set since JigsawStack's SDK doesn't expose literal description strings. Open to tweaking wording.

@vercel

vercel Bot commented Jun 7, 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 7:29pm

# Conflicts:
#	.env.example
#	composer.json
#	workbench/app/Ai/Agents/ToolkitAgent.php
#	workbench/app/Providers/WorkbenchServiceProvider.php
@pushpak1300 pushpak1300 marked this pull request as ready for review June 7, 2026 19:32
@pushpak1300 pushpak1300 merged commit e3728cf into main Jun 7, 2026
7 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