Build Generative UI applications powered by Vercel AI SDK
useCompletion
from Vercel AI SDK allows you to easily create
Generative UI based capabilities for your agent. useCompletion
enables the streaming of text completions from your AI provider, manages the input state,
and updates the UI automatically as new messages are received.Create a new Vercel project
Initiate the backend endpoint
Render the response