Skip to main content
The Vercel provider wraps Composio tools for use with the Vercel AI SDK.

Installation

Quick Start

Streaming

Next.js API Route

Client Component

Strict Mode

Enable strict mode to remove non-required properties:

Tool Results

Tool Format

The Vercel provider wraps tools in this format:

Best Practices

  1. Streaming: Use streamText for better UX
  2. Error Handling: Handle tool execution errors
  3. Type Safety: Use TypeScript for type safety
  4. Next.js Integration: Use API routes for server-side execution
  5. Client Hooks: Use useChat for React components

TypeScript Types

Next Steps

OpenAI Provider

Use with OpenAI directly

Tools API

Learn about tools

Connected Accounts

Set up authentication

Examples

View examples