AI SDK Tools Registry
PraisonAI provides a unified registry of AI SDK tools that can be used with agents. All tools are lazy-loaded and have optional dependencies.Quick Start
Available Tools
| Tool | Package | Description | Required Env |
|---|---|---|---|
| tavily | @tavily/ai-sdk | Web search, extract, crawl | TAVILY_API_KEY |
| exa | @exalabs/ai-sdk | Semantic web search | EXA_API_KEY |
| perplexity | @perplexity-ai/ai-sdk | Real-time search | PERPLEXITY_API_KEY |
| firecrawl | @mendable/firecrawl-js | Web scraping & crawling | FIRECRAWL_API_KEY |
| codeExecution | ai-sdk-tool-code-execution | Python code sandbox | VERCEL_OIDC_TOKEN |
| guard | @superagent-ai/ai-sdk | Prompt injection detection | SUPERAGENT_API_KEY |
| redact | @superagent-ai/ai-sdk | PII redaction | SUPERAGENT_API_KEY |
| verify | @superagent-ai/ai-sdk | Claim verification | SUPERAGENT_API_KEY |
| valyuWebSearch | @valyu/ai-sdk | Domain-specific search | VALYU_API_KEY |
| airweave | @airweave/sdk | RAG/semantic search | AIRWEAVE_API_KEY |
| bedrockCodeInterpreter | bedrock-agentcore | AWS code execution | AWS credentials |
Installation
Install only the tools you need:Using the Tools Facade
Thetools object provides a simple API for all built-in tools:
Registry API
Access the underlying registry for advanced use cases:Middleware
Add middleware to all tool executions:Available Middleware
| Middleware | Description |
|---|---|
createLoggingMiddleware() | Log tool calls and results |
createTimeoutMiddleware(ms) | Timeout long operations |
createRedactionMiddleware() | Redact PII from results |
createRateLimitMiddleware(limit, window) | Rate limit tool calls |
createRetryMiddleware(attempts, delay) | Retry failed calls |
createTracingMiddleware() | Add tracing context |
createValidationMiddleware() | Validate inputs |
Hooks
Set hooks for monitoring:Custom Tools
Register your own tools:CLI Commands
Tool Categories
Search Tools
- tavily - General web search with AI answers
- exa - Semantic/neural search
- perplexity - Real-time search with citations
- parallel - Multi-source parallel search
Content Tools
- tavilyExtract - Extract content from URLs
- tavilyCrawl - Crawl websites
- firecrawl - Advanced web scraping
- airweave - RAG/semantic search
Security Tools
- guard - Detect prompt injection
- redact - Remove PII
- verify - Verify claims
Code Execution
- codeExecution - Vercel sandbox (Python)
- codeMode - Custom sandboxed execution
- bedrockCodeInterpreter - AWS sandbox
Domain Search (Valyu)
- valyuWebSearch - General web
- valyuFinanceSearch - Financial data
- valyuPaperSearch - Academic papers
- valyuBioSearch - Biology/medical
- valyuPatentSearch - Patents
- valyuSecSearch - SEC filings
- valyuEconomicsSearch - Economic data
- valyuCompanyResearch - Company info
Error Handling
Tools throw specific errors for common issues:Related
- Tavily - Web search tool
- Exa - Semantic search tool
- Custom Tools - Creating custom tools
- CLI Reference - Command-line interface

