Prerequisites
- A project created with Create project.
- The agent route from Create API.
- The dev server running (
veryfront dev).
Add the chat page
Replaceapp/page.tsx with a client page:
useChat() uses /api/ag-ui by default. Chat renders the composer,
messages, loading state, and streamed assistant response.