Quick Start
Install the plugin:corsair.ts
Authentication
Supported Auth Types
The Tavily plugin supports:api_key(default) - Use a Tavily API key
Default Auth Type
If noauthType is specified, the plugin defaults to api_key.
Configuring API Key Authentication
Store credentials with the CLI:corsair.ts
Options
| Option | Type | Description |
|---|---|---|
authType | 'api_key' | Authentication method (defaults to 'api_key') |
key | string | API key (optional, uses database if not provided) |
hooks | object | Endpoint hooks for custom logic |
errorHandlers | object | Custom error handlers |
permissions | object | Permission configuration for AI agent access |
Hooks
Error Handling
The plugin includes built-in error handlers for common scenarios. For complete documentation, see the Error Handlers reference.Usage
Accessing the API
Multi-Tenancy
Examples
Example 1: AI Research Assistant
inngest/functions.ts
Example 2: Real-time News Aggregation
inngest/functions.ts