44 New AI Components
The AI Components library grew from a handful of chat pieces to a full kit for agent apps. Every component reads AI SDK message or tool parts directly, installs with the shadcn CLI, and now has its own page under /ai-components.
New AI Components
Inputs
- Mention Menu: an @ menu for files, docs, people, and tools. Mentions delete as one piece and send as data parts.
- Slash Command Menu: a / menu with recent commands first and the remaining arguments shown in the field.
- Starter Prompts: the first screen of a chat, as a list or a row of cards, chosen by connected tools and recent work.
- Attachments Tray: file and image chips with upload progress, retry, a media viewer, and drop or paste to add.
- Model Picker: choose a model and a reasoning level, with context window and relative cost per model.
- Generative Form: a form that fills itself in from a streaming object, then lets the user correct it and send.
- Line Items: rows that stream in for invoices and orders, with editable amounts, tax, and a running total.
- Point and Ask: drop a pin or draw a box on an image, then ask about that spot.
- Voice Session: voice mode in one card, with a live wave, transcript, mute, interrupt, and end.
Responses
- AI Answer: a grounded answer with numbered citations that light up their source cards, plus follow-ups and feedback.
- Source Viewer: opens a document at the cited passage and warns when a quote is not in the text.
- Artifact Panel: a side panel for documents, code, and charts, with version history and live streaming.
- Live Preview: runs model-written HTML in a frame and sends runtime errors back to the model in one click.
- Model Compare: one prompt answered by two or three models side by side, with time and cost on each.
- Message Actions: copy, edit and resend, retry on another model, ratings, and a version switcher.
- Selection Actions: select text in an answer to ask about it, explain it, quote it, or copy it.
Tool Results
- Tool Call Card: a compact row per tool call that expands to highlighted input and output.
- Data Table Result: query rows as a sortable table with typed columns and copy as CSV.
- Chart Result: a tool result drawn as a line, area, column, bar, or pie chart, with no chart library.
- Image Results: generated images that fade in as they arrive, with a large view, download, and reuse.
Approvals
- Agent Plan: a plan the user edits before approving, which then becomes the run log.
- Edit Before Run: correct a tool call's arguments before it runs, and get back what changed.
- Decision Inbox: one place for the approvals background agents are waiting on.
- Guardrail Notice: one sentence on what a guardrail caught, with a way to ask for review.
- Schedule Card: a recurring job with a live countdown, past runs to scrub, and pause or run now.
- Prose Diff: review an AI rewrite in place and accept or reject each suggestion by click or key.
Feedback
- Thinking State: reasoning, tool calls, and sources as a step list or a one-line pill.
- Agent Run Tree: parallel subagents as a live tree with step, time, tokens, and status per agent.
- Research Job: a long-running task the user can walk away from, with progress, sources, and findings so far.
- Task Tray: a small pill for background agents that says who needs you, what is running, or what finished.
- Browser Session: watch an agent drive a browser, review each step, and take over.
- Context Window: a map of the token budget by system prompt, tools, files, conversation, and memory.
- Run Receipt: what a run cost and where it went, priced per line with cache savings.
- Eval Scorecard: cases passing, averages per criterion, and what was fixed or regressed since the last run.
- Review Queue: grade real outputs from the keyboard and get back labeled rows for an eval set.
- Memory Manager: what the agent remembers, one sentence per memory, with edit, delete, and undo.
- Knowledge Sources: the files and sites an agent can search, with indexing progress and citation counts.
- MCP Server List: connection status, a switch per server and per tool, and reconnect for the ones that dropped.
Code
- File Diff: a unified diff with word-level highlights, collapsed hunks, and optional accept and reject.
- Terminal Result: a command the agent ran, with exit status, a live timer, and output that keeps its ANSI colors.
- Test Run Result: only what failed, with expected and received values diffed and a Fix action.
Navigation
- Session List: chat history for a sidebar with search, pinning, inline rename, and a confirmed delete.
- Session Tabs: open chats as draggable tabs with a running or unread mark on each.
- Message Branches: a version pager that opens a tree of every edit and retry of a message.