Skip to main content

Prerequisites

Install the Tracia SDK, the Vercel AI SDK, and the provider package(s) you need:
Set your API keys as environment variables:
.env

OpenAI

Anthropic

Google

Multi-Turn Conversations

Include previous messages to maintain conversation context:

With Tracing Metadata

Add tags and user identifiers for filtering in the Tracia dashboard:

Streaming

Enable streaming to receive responses in real-time:
See Streaming for more details.

Without Tracing

Disable tracing when you don’t need observability: