Integrations
Vercel AI SDK
Learn how to integrate KeywordsAI tracing with Vercel AI SDK to monitor and analyze your AI application performance. Step-by-step guide for setting up environment variables and creating traced workflows.
Set up environment variables
Create a .env
file in your project root and add the following variables:
Create a task with Vercel AI SDK
In this example, we create 2 tasks: getUserInput
and getLLMResponse
and annotate them with KeywordsAI tracing.
Vercel AI SDK
Combine tasks into a workflow
In this example, we create a workflow vercelWithTracing
that combines the getUserInput
and getLLMResponse
tasks.