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
- Streaming: Use streamText for better UX
- Error Handling: Handle tool execution errors
- Type Safety: Use TypeScript for type safety
- Next.js Integration: Use API routes for server-side execution
- 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